Eric Dumazet
952fad8e32
bpf: fix sock_map_alloc() error path
...
In case user program provides silly parameters, we want
a map_alloc() handler to return an error, not a NULL pointer,
otherwise we crash later in find_and_alloc_map()
Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-02-13 19:19:15 -08:00
..
2018-02-13 19:19:15 -08:00
2018-02-06 18:32:47 -08:00
2018-02-10 13:16:35 -08:00
2018-01-03 18:01:08 -06:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:47 -08:00
2018-01-31 16:36:38 +01:00
2018-01-30 10:44:56 -08:00
2018-02-02 23:33:50 +01:00
2018-02-11 14:34:03 -08:00
2018-01-31 11:23:28 -08:00
2018-02-06 22:15:42 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-04 16:45:09 -08:00
2018-02-06 18:32:44 -08:00
2017-05-03 11:05:15 -07:00
2017-11-14 14:08:20 -08:00
2017-08-16 16:48:34 -07:00
2017-11-10 16:08:47 -05:00
2017-11-15 13:28:48 -08:00
2017-11-10 16:08:56 -05:00
2017-11-15 13:28:48 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:45 -08:00
2016-12-24 11:46:01 -08:00
2017-07-31 13:09:49 +02:00
2017-12-31 12:30:34 -08:00
2018-01-13 10:42:48 -08:00
2017-05-18 10:30:19 -06:00
2018-01-16 03:29:36 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-04 16:45:09 -08:00
2017-11-07 12:20:09 +01:00
2018-01-12 17:33:38 -08:00
2018-02-06 22:15:42 -08:00
2016-07-28 16:07:41 -07:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:46 -08:00
2017-12-14 16:00:49 -08:00
2017-05-08 17:15:10 -07:00
2018-01-08 19:43:15 +01:00
2018-01-24 10:03:44 +01:00
2018-02-01 13:36:15 -08:00
2017-11-02 11:10:55 +01:00
2016-10-25 11:31:51 +02:00
2018-02-06 18:32:46 -08:00
2017-07-18 11:38:04 +02:00
2017-11-07 15:35:57 +01:00
2017-11-02 11:10:55 +01:00
2017-07-12 16:26:00 -07:00
2017-09-08 18:26:51 -07:00
2018-01-12 17:33:38 -08:00
2017-07-12 16:25:59 -07:00
2017-11-21 16:35:54 -08:00
2017-03-02 08:42:39 +01:00
2018-01-12 17:33:38 -08:00
2018-01-19 16:29:56 -08:00
2018-02-07 14:29:34 -08:00
2017-02-24 17:46:56 -08:00
2017-03-13 15:57:41 -03:00
2018-01-05 18:43:00 +11:00
2017-11-17 16:10:04 -08:00
2017-10-03 17:54:26 -07:00
2017-11-17 16:10:04 -08:00
2018-02-06 18:32:46 -08:00
2017-03-02 08:42:39 +01:00
2018-02-06 18:32:46 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2018-02-11 14:34:03 -08:00
2018-02-06 22:15:42 -08:00
2018-01-31 13:44:45 -08:00
2018-01-31 13:02:18 -08:00
2017-11-08 11:13:50 +01:00
2017-10-04 10:53:54 +02:00
2017-11-02 11:10:55 +01:00
2017-12-04 10:28:58 -08:00
2017-03-08 09:18:02 +01:00
2017-05-26 10:10:36 +02:00
2017-11-02 11:10:55 +01:00
2017-12-14 16:01:45 -06:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:47 -08:00
2017-12-17 13:57:15 +01:00
2018-02-06 18:32:46 -08:00
2017-10-20 11:02:54 +02:00
2017-12-11 09:18:30 -08:00
2017-12-04 10:52:56 -08:00
2017-03-02 08:42:39 +01:00
2017-03-06 15:26:37 -06:00
2017-12-14 16:00:49 -08:00
2017-11-17 16:10:01 -08:00
2017-08-29 15:14:38 +02:00
2017-11-16 12:20:15 -08:00
2017-10-31 17:22:58 -05:00
2017-03-03 01:45:36 +01:00
2017-03-02 08:42:38 +01:00
2017-11-04 08:53:04 +01:00
2017-11-08 10:17:15 +01:00
2017-11-06 12:26:49 -08:00
2018-02-01 09:51:57 -08:00