Daniel Borkmann
8c5c2a4898
bpf, sockmap: Revert buggy deadlock fix in the sockhash and sockmap
...
syzbot reported a splat and bisected it to recent commit ed17aa92dc56 ("bpf,
sockmap: fix deadlocks in the sockhash and sockmap"):
[...]
WARNING: CPU: 1 PID: 9280 at kernel/softirq.c:376 __local_bh_enable_ip+0xbe/0x130 kernel/softirq.c:376
Modules linked in:
CPU: 1 PID: 9280 Comm: syz-executor.1 Not tainted 6.2.0-syzkaller-13249-gd319f344561d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:__local_bh_enable_ip+0xbe/0x130 kernel/softirq.c:376
[...]
Call Trace:
<TASK>
spin_unlock_bh include/linux/spinlock.h:395 [inline]
sock_map_del_link+0x2ea/0x510 net/core/sock_map.c:165
sock_map_unref+0xb0/0x1d0 net/core/sock_map.c:184
sock_hash_delete_elem+0x1ec/0x2a0 net/core/sock_map.c:945
map_delete_elem kernel/bpf/syscall.c:1536 [inline]
__sys_bpf+0x2edc/0x53e0 kernel/bpf/syscall.c:5053
__do_sys_bpf kernel/bpf/syscall.c:5166 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5164 [inline]
__x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5164
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe8f7c8c169
</TASK>
[...]
Revert for now until we have a proper solution.
Fixes: ed17aa92dc56 ("bpf, sockmap: fix deadlocks in the sockhash and sockmap")
Reported-by: syzbot+49f6cef45247ff249498@syzkaller.appspotmail.com
Cc: Hsin-Wei Hung <hsinweih@uci.edu>
Cc: Xin Liu <liuxin350@huawei.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/000000000000f1db9605f939720e@google.com/
2023-04-13 20:36:32 +02:00
..
2023-04-04 16:57:16 -07:00
2022-09-02 12:29:02 +01:00
2022-10-27 02:40:14 -06:00
2022-04-07 20:32:09 -07:00
2022-10-25 11:44:20 -07:00
2023-03-07 23:57:19 -08:00
2023-02-09 17:45:55 -08:00
2022-11-07 12:30:16 +00:00
2021-11-29 19:50:45 -08:00
2023-01-13 20:59:14 -08:00
2022-12-12 15:18:25 -08:00
2021-12-16 07:18:35 -08:00
2023-04-04 16:57:16 -07:00
2022-11-29 13:04:52 -08:00
2022-11-14 11:24:16 +00:00
2022-12-25 13:38:09 -08:00
2022-10-28 20:13:54 -07:00
2022-09-28 18:57:14 -07:00
2023-02-02 14:49:55 -08:00
2022-11-16 09:45:00 +00:00
2022-04-22 17:45:25 +02:00
2022-10-12 10:45:51 +02:00
2023-02-02 20:48:23 -08:00
2023-02-09 12:25:40 -08:00
2023-02-09 22:49:25 -08:00
2022-04-07 20:32:09 -07:00
2023-02-20 11:22:54 +00:00
2023-02-06 08:48:25 +00:00
2022-08-31 09:40:34 +01:00
2023-02-02 20:48:23 -08:00
2023-02-02 20:48:23 -08:00
2023-02-02 20:48:23 -08:00
2021-03-28 17:56:56 -07:00
2023-01-27 23:24:07 -08:00
2021-09-13 16:35:58 -07:00
2022-11-29 10:45:53 +01:00
2023-02-06 09:15:22 +00:00
2022-11-18 02:18:02 +01:00
2022-03-07 11:31:34 +00:00
2023-02-06 08:48:26 +00:00
2023-02-20 11:39:59 +00:00
2022-07-20 10:14:49 +01:00
2021-10-24 13:59:44 +01:00
2023-02-20 08:28:49 +00:00
2023-01-23 11:26:50 +00:00
2021-10-22 12:35:51 -07:00
2022-11-21 20:36:30 -08:00
2023-04-13 20:36:32 +02:00
2022-10-25 11:35:16 +02:00
2023-02-15 10:25:21 +00:00
2023-02-10 19:53:42 -08:00
2023-02-20 11:22:54 +00:00
2022-12-12 15:04:39 -08:00
2022-11-01 21:14:39 -07:00
2023-03-14 15:20:05 -07:00