Daniel Borkmann
97bc402db7
bpf, mlx5: fix mlx5e_create_rq taking reference on prog
...
In mlx5e_create_rq(), when creating a new queue, we call bpf_prog_add() but
without checking the return value. bpf_prog_add() can fail since 92117d8443bc
("bpf: fix refcnt overflow"), so we really must check it. Take the reference
right when we assign it to the rq from priv->xdp_prog, and just drop the
reference on error path. Destruction in mlx5e_destroy_rq() looks good, though.
Fixes: 86994156c736 ("net/mlx5e: XDP fast RX drop bpf programs support")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-21 11:25:57 -05:00
..
2016-11-21 11:25:57 -05:00
2016-10-11 15:06:32 -07:00
2016-10-28 16:27:16 -07:00
2016-07-15 14:54:27 +09:00
2016-11-08 15:15:19 +01:00
2016-08-26 14:42:08 +02:00
2016-09-22 15:25:56 +02:00
2016-11-02 05:10:04 +01:00
2016-11-14 09:31:52 -08:00
2016-10-15 10:03:15 -07:00
2016-11-03 07:31:34 +01:00
2016-10-25 16:32:50 +02:00
2016-10-22 17:05:52 -04:00
2016-04-04 09:46:47 -04:00
2016-09-01 15:55:56 -07:00
2016-11-18 10:59:15 -05:00
2016-07-29 17:54:17 -07:00
2016-06-27 11:01:00 -04:00
2016-10-04 14:21:41 -07:00
2016-06-06 20:16:18 +10:00
2016-06-21 15:03:36 -04:00
2016-10-14 12:18:50 -07:00
2016-10-16 11:09:32 +02:00
2016-10-14 12:18:50 -07:00
2016-06-30 18:05:09 -05:00
2016-10-07 18:46:28 -07:00
2016-11-01 07:39:17 +01:00
2016-07-28 16:07:41 -07:00
2016-09-05 17:20:18 +02:00
2016-10-07 18:46:30 -07:00
2016-10-11 15:06:33 -07:00
2016-08-05 09:00:54 -04:00
2016-10-27 18:43:42 -07:00
2016-08-02 19:35:31 -04:00
2016-09-01 17:52:01 -07:00
2016-08-02 19:35:27 -04:00
2016-10-11 15:06:31 -07:00
2016-08-02 19:35:30 -04:00
2016-10-11 15:06:33 -07:00
2016-08-08 13:18:58 -05:00
2016-09-09 17:34:46 -07:00
2016-04-11 22:43:43 +01:00
2016-08-26 14:42:08 +02:00
2016-09-19 21:44:30 +02:00
2016-10-11 15:06:32 -07:00
2016-09-22 20:00:36 -05:00
2016-05-27 15:26:11 -07:00
2016-07-15 10:41:42 +02:00
2016-10-19 08:31:25 -07:00
2016-10-11 15:06:32 -07:00
2016-04-14 12:56:09 -07:00
2016-08-30 16:12:46 -07:00
2016-09-14 21:28:11 +02:00
2016-09-22 14:49:10 +02:00
2016-10-11 15:06:33 -07:00
2016-10-21 15:45:47 -06:00
2016-10-03 13:39:00 -07:00
2016-09-13 14:41:36 +02:00
2016-05-23 17:04:14 -07:00
2016-05-20 17:58:30 -07:00
2016-10-10 13:04:49 -07:00
2016-08-02 19:35:02 -04:00
2016-11-15 10:54:36 -05:00
2016-08-22 10:01:49 -07:00
2016-03-22 15:36:02 -07:00
2016-08-31 07:28:35 -05:00
2016-10-07 18:46:30 -07:00
2016-09-05 13:52:39 +02:00
2016-09-22 20:00:36 -05:00
2016-09-22 20:00:36 -05:00
2016-07-10 20:58:36 +02:00
2016-10-11 15:06:33 -07:00