syzbot


KCSAN: data-race in datagram_poll / inet_shutdown (2)

Status: auto-closed as invalid on 2021/06/30 16:26
Subsystems: net
[Documentation on labels]
First crash: 1554d, last: 1554d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in datagram_poll / inet_shutdown net 6 1 2106d 2106d 0/29 auto-closed as invalid on 2020/01/31 06:57
upstream KCSAN: data-race in datagram_poll / inet_shutdown (3) net 6 2 1460d 1481d 0/29 auto-closed as invalid on 2021/10/02 11:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in datagram_poll / inet_shutdown

write to 0xffff88813edc54aa of 1 bytes by task 17754 on cpu 0:
 inet_shutdown+0x148/0x200 net/ipv4/af_inet.c:891
 __sys_shutdown_sock net/socket.c:2189 [inline]
 __sys_shutdown net/socket.c:2201 [inline]
 __do_sys_shutdown net/socket.c:2209 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2207
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2207
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813edc54aa of 1 bytes by task 17735 on cpu 1:
 datagram_poll+0xe4/0x290 net/core/datagram.c:811
 udp_poll+0x24/0x100 net/ipv4/udp.c:2840
 sock_poll+0x23e/0x260 net/socket.c:1246
 vfs_poll include/linux/poll.h:90 [inline]
 io_poll_rewait fs/io_uring.c:4850 [inline]
 io_poll_task_func+0xf4/0x7c0 fs/io_uring.c:4929
 __tctx_task_work fs/io_uring.c:1910 [inline]
 tctx_task_work+0x1d4/0x3d0 fs/io_uring.c:1924
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_signal include/linux/tracehook.h:212 [inline]
 handle_signal_work kernel/entry/common.c:145 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0xf8/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17735 Comm: syz-executor.1 Not tainted 5.13.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/26 16:17 upstream ad9f25d33860 750ce164 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in datagram_poll / inet_shutdown
* Struck through repros no longer work on HEAD.