syzbot


KCSAN: data-race in unix_poll / unix_shutdown

Status: auto-closed as invalid on 2022/09/10 13:42
Subsystems: net
[Documentation on labels]
First crash: 668d, last: 626d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_poll / unix_shutdown (3) net 1 368d 368d 0/26 auto-obsoleted due to no activity on 2023/05/27 01:36
upstream KCSAN: data-race in unix_poll / unix_shutdown (2) net 11 429d 537d 0/26 auto-obsoleted due to no activity on 2023/04/10 13:22

Sample crash report:
==================================================================
BUG: KCSAN: data-race in unix_poll / unix_shutdown

read-write to 0xffff888102cb6ce2 of 1 bytes by task 23109 on cpu 0:
 unix_shutdown+0x6d/0x380 net/unix/af_unix.c:2982
 __sys_shutdown_sock net/socket.c:2324 [inline]
 __sys_shutdown net/socket.c:2336 [inline]
 __do_sys_shutdown net/socket.c:2344 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2342
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2342
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888102cb6ce2 of 1 bytes by task 23106 on cpu 1:
 unix_poll+0x98/0x250 net/unix/af_unix.c:3141
 sock_poll+0x23e/0x260 net/socket.c:1353
 vfs_poll include/linux/poll.h:88 [inline]
 __io_arm_poll_handler+0x216/0x6f0 io_uring/poll.c:532
 io_arm_poll_handler+0x460/0x590 io_uring/poll.c:655
 io_queue_async+0x7e/0x260 io_uring/io_uring.c:1728
 io_queue_sqe io_uring/io_uring.c:1762 [inline]
 io_submit_sqe+0x705/0xa40 io_uring/io_uring.c:2011
 io_submit_sqes+0x274/0x530 io_uring/io_uring.c:2122
 __do_sys_io_uring_enter io_uring/io_uring.c:3053 [inline]
 __se_sys_io_uring_enter+0x254/0xa50 io_uring/io_uring.c:2983
 __x64_sys_io_uring_enter+0x74/0x80 io_uring/io_uring.c:2983
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23106 Comm: syz-executor.0 Tainted: G        W          5.19.0-syzkaller-10895-g6614a3c3164a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================
cgroup: fork rejected by pids controller in /syz0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/06 13:33 upstream 6614a3c3164a 88e3a122 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_poll / unix_shutdown
2022/08/04 22:30 upstream b44f2fd87919 1c9013ac .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_poll / unix_shutdown
2022/07/12 12:34 upstream 5a29232d870d da3d6955 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_poll / unix_shutdown
2022/06/25 10:02 upstream 8c23f235a6a8 a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_poll / unix_shutdown
* Struck through repros no longer work on HEAD.