Sasha Levin
c0d1379a19
net: bpf: correctly handle errors in sk_attach_filter()
...
Commit "net: bpf: make eBPF interpreter images read-only" has changed bpf_prog
to be vmalloc()ed but never handled some of the errors paths of the old code.
On error within sk_attach_filter (which userspace can easily trigger), we'd
kfree() the vmalloc()ed memory, and leak the internal bpf_work_struct.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-13 17:37:49 -04:00
..
2014-08-07 11:44:18 -07:00
2014-07-15 16:27:00 -07:00
2014-07-15 16:12:48 -07:00
2014-08-11 12:16:51 -07:00
2014-07-16 14:09:34 -07:00
2014-09-10 12:40:10 -07:00
2014-04-11 16:15:36 -04:00
2014-08-16 19:19:08 -07:00
2014-09-08 11:14:56 -04:00
2014-09-10 12:46:32 -07:00
2014-07-15 16:27:01 -07:00
2014-05-19 09:38:24 +02:00
2014-08-13 17:43:29 -06:00
2014-09-13 17:37:49 -04:00
2014-07-30 17:21:05 -07:00
2014-07-01 23:46:21 -07:00
2014-08-22 12:23:11 -07:00
2014-08-06 08:06:39 -07:00
2014-09-13 17:04:35 -04:00
2014-09-05 17:47:02 -07:00
2014-07-11 15:04:40 -07:00
2014-09-08 11:14:56 -04:00
2014-09-12 17:55:41 -04:00
2014-09-13 16:39:40 -04:00
2014-05-23 16:28:53 -04:00
2014-08-13 20:05:52 -07:00
2014-09-10 12:40:10 -07:00
2014-07-15 16:27:00 -07:00
2014-09-07 21:41:53 -07:00
2013-09-23 16:52:45 -04:00
2014-01-28 18:01:32 -08:00
2014-09-12 17:51:25 -04:00
2014-09-08 11:14:56 -04:00
2014-06-04 22:46:38 -07:00
2014-09-10 12:46:32 -07:00
2014-08-06 09:38:14 -07:00
2014-08-14 15:13:40 -07:00
2014-07-15 16:12:48 -07:00
2014-08-05 13:18:20 -07:00
2014-09-09 11:48:07 -07:00
2014-09-01 17:39:55 -07:00
2014-07-15 16:12:48 -07:00
2014-06-12 14:27:40 -07:00
2014-08-29 13:10:44 +02:00
2014-09-07 16:07:25 -07:00
2014-09-01 21:49:08 -07:00
2014-09-13 12:30:26 -04:00
2014-09-09 11:27:09 -07:00
2014-08-13 18:13:19 -06:00
2014-09-10 14:00:58 -07:00
2014-06-12 14:27:40 -07:00
2014-05-05 13:13:50 -04:00
2013-11-21 13:09:42 -05:00
2014-09-04 13:41:33 -04:00
2014-04-11 16:15:36 -04:00
2014-09-09 20:10:45 -07:00
2014-07-29 12:20:22 -07:00
2014-07-12 01:53:30 +02:00
2014-07-12 01:53:30 +02:00
2014-09-09 17:34:41 -07:00
2013-10-07 15:57:56 -04:00