syzbot


WARNING in sock_map_destroy

Status: upstream: reported C repro on 2024/08/27 10:46
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+f363afac6b0ace576f45@syzkaller.appspotmail.com
First crash: 125d, last: 32d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [bpf?] [net?] WARNING in sock_map_destroy 0 (7) 2024/09/29 09:28
[PATCH net v2] net: sockmap: avoid race between sock_map_destroy() and sk_psock_put() 6 (6) 2024/09/27 13:04
[PATCH RFC net] net: sockmap: avoid race between sock_map_destroy() and sk_psock_put() 2 (2) 2024/09/08 18:36
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/09/29 09:28 23m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git c824deb1a89755f70156b5cdaf569fca80698719 OK log
2024/09/29 09:28 23m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git d505d3593b52b6c43507f119572409087416ba28 OK log
2024/09/29 09:26 30m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3efc57369a0ce8f76bf0804f7e673982384e4ac9 OK log
2024/09/29 07:43 0m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git c824deb1a89755f70156b5cdaf569fca80698719 error
2024/09/29 07:43 0m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git d505d3593b52b6c43507f119572409087416ba28 error
2024/09/29 07:42 9m dmantipov@yandex.ru patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3efc57369a0ce8f76bf0804f7e673982384e4ac9 error
2024/08/27 06:23 1h30m edumazet@google.com bpf report log
2024/08/20 06:43 24m retest repro bpf report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/11/02 23:04 2h20m bisect fix bpf OK (0) job log log
2024/09/27 19:34 3h08m bisect fix bpf OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 12 at net/core/sock_map.c:1663 sock_map_destroy+0x286/0x2b0 net/core/sock_map.c:1663
Modules linked in:
CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.10.0-syzkaller-12642-gb9e7fc0aeda7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: krdsd rds_tcp_accept_worker
RIP: 0010:sock_map_destroy+0x286/0x2b0 net/core/sock_map.c:1663
Code: 48 8b 1b 48 83 c3 38 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 a8 f8 5b f8 4c 8b 23 e9 7a ff ff ff e8 2b c0 f4 f7 90 <0f> 0b 90 eb 9f e8 20 c0 f4 f7 48 89 df be 03 00 00 00 e8 b3 35 11
RSP: 0018:ffffc90000a17fd8 EFLAGS: 00010246
RAX: ffffffff899ec335 RBX: ffffffff95305938 RCX: ffff888017ad5a00
RDX: 0000000080000102 RSI: ffffffff8c0ae720 RDI: ffffffff8c606920
RBP: dffffc0000000000 R08: ffffffff90179daf R09: 1ffffffff202f3b5
R10: dffffc0000000000 R11: fffffbfff202f3b6 R12: ffffffff899ec0b0
R13: 1ffff110050e87ad R14: ffff888028743d40 R15: ffffffff899ec0d2
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd6b18c398 CR3: 0000000077166000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 inet_csk_destroy_sock+0x15b/0x380 net/ipv4/inet_connection_sock.c:1292
 tcp_fin+0x14a/0x520 net/ipv4/tcp_input.c:4581
 tcp_data_queue+0xf12/0x76c0 net/ipv4/tcp_input.c:5267
 tcp_rcv_state_process+0x17cc/0x4570 net/ipv4/tcp_input.c:6935
 tcp_v4_do_rcv+0x77d/0xc70 net/ipv4/tcp_ipv4.c:1932
 tcp_v4_rcv+0x2dbd/0x37f0 net/ipv4/tcp_ipv4.c:2344
 ip_protocol_deliver_rcu+0x22b/0x440 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x341/0x5f0 net/ipv4/ip_input.c:233
 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314
 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314
 __netif_receive_skb_one_core net/core/dev.c:5661 [inline]
 __netif_receive_skb+0x2bf/0x650 net/core/dev.c:5775
 process_backlog+0x662/0x15b0 net/core/dev.c:6108
 __napi_poll+0xcb/0x490 net/core/dev.c:6772
 napi_poll net/core/dev.c:6841 [inline]
 net_rx_action+0x89b/0x1240 net/core/dev.c:6963
 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554
 do_softirq+0x11b/0x1e0 kernel/softirq.c:455
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:908 [inline]
 __dev_queue_xmit+0x1763/0x3e90 net/core/dev.c:4450
 dev_queue_xmit include/linux/netdevice.h:3105 [inline]
 neigh_hh_output include/net/neighbour.h:526 [inline]
 neigh_output include/net/neighbour.h:540 [inline]
 ip_finish_output2+0xd41/0x1390 net/ipv4/ip_output.c:235
 ip_local_out net/ipv4/ip_output.c:129 [inline]
 __ip_queue_xmit+0x118c/0x1b80 net/ipv4/ip_output.c:535
 __tcp_transmit_skb+0x2544/0x3b30 net/ipv4/tcp_output.c:1466
 tcp_transmit_skb net/ipv4/tcp_output.c:1484 [inline]
 tcp_write_xmit+0x18b4/0x6a10 net/ipv4/tcp_output.c:2829
 __tcp_push_pending_frames+0x9b/0x360 net/ipv4/tcp_output.c:3014
 __tcp_close+0xa76/0xdd0 net/ipv4/tcp.c:2871
 tcp_close+0x28/0x110 net/ipv4/tcp.c:2962
 inet_release+0x17d/0x200 net/ipv4/af_inet.c:437
 __sock_release net/socket.c:659 [inline]
 sock_release+0x82/0x150 net/socket.c:687
 rds_tcp_accept_one+0x1b3/0xbe0 net/rds/tcp_listen.c:234
 rds_tcp_accept_worker+0x3f/0xa0 net/rds/tcp.c:531
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/02 12:17 bpf b9e7fc0aeda7 1e9c4cf3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_destroy
2024/08/06 06:17 upstream b446a2dae984 e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in sock_map_destroy
2024/08/02 01:20 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in sock_map_destroy
2024/08/02 04:10 bpf b9e7fc0aeda7 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_destroy
2024/08/05 21:16 net-next c89cca307b20 e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_destroy
2024/08/03 03:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 53683cf2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in sock_map_destroy
* Struck through repros no longer work on HEAD.