syzbot


KCSAN: data-race in unix_dgram_poll / unix_shutdown (3)

Status: auto-closed as invalid on 2021/11/10 18:44
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 454d, last: 422d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_dgram_poll / unix_shutdown (2) 1 491d 491d 0/24 auto-closed as invalid on 2021/09/02 11:31
upstream KCSAN: data-race in unix_dgram_poll / unix_shutdown 1 537d 537d 0/24 auto-closed as invalid on 2021/07/18 20:05

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

write to 0xffff888128c71a78 of 1 bytes by task 11535 on cpu 0:
 unix_shutdown+0x21d/0x3f0 net/unix/af_unix.c:2904
 __sys_shutdown_sock net/socket.c:2248 [inline]
 __sys_shutdown net/socket.c:2260 [inline]
 __do_sys_shutdown net/socket.c:2268 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2266
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2266
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888128c71a78 of 1 bytes by task 11486 on cpu 1:
 unix_dgram_poll+0xdf/0x3e0 net/unix/af_unix.c:3085
 sock_poll+0x23e/0x260 net/socket.c:1302
 vfs_poll include/linux/poll.h:90 [inline]
 __io_arm_poll_handler+0x1af/0x5c0 fs/io_uring.c:5569
 io_arm_poll_handler+0x317/0x480 fs/io_uring.c:5644
 __io_queue_sqe+0xa7/0x460 fs/io_uring.c:6983
 io_queue_sqe fs/io_uring.c:7011 [inline]
 io_submit_sqe+0x88b/0x3eb0 fs/io_uring.c:7187
 io_submit_sqes+0x505/0xde0 fs/io_uring.c:7293
 __do_sys_io_uring_enter fs/io_uring.c:9986 [inline]
 __se_sys_io_uring_enter+0x20d/0xb30 fs/io_uring.c:9928
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:9928
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

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

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/06 18:37 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in unix_dgram_poll / unix_shutdown
ci2-upstream-kcsan-gce 2021/09/21 11:42 upstream d9fb678414c0 af796c18 .config log report info KCSAN: data-race in unix_dgram_poll / unix_shutdown
ci2-upstream-kcsan-gce 2021/09/10 10:30 upstream bf9f243f23e6 5ae8508a .config log report info KCSAN: data-race in unix_dgram_poll / unix_shutdown
ci2-upstream-kcsan-gce 2021/09/04 09:18 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in unix_dgram_poll / unix_shutdown
* Struck through repros no longer work on HEAD.