syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (4)

Status: auto-closed as invalid on 2022/08/23 19:49
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 162d, last: 136d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (5) 1 71d 71d 0/24 auto-obsoleted due to no activity on 2022/10/28 02:20
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (2) 1 526d 526d 0/24 auto-closed as invalid on 2021/07/29 06:04
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown 1 885d 885d 0/24 auto-closed as invalid on 2020/08/04 22:26
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown (3) 3 439d 472d 0/24 auto-closed as invalid on 2021/10/24 10:54

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

read-write to 0xffff88810236c422 of 1 bytes by task 8490 on cpu 0:
 unix_shutdown+0x6d/0x380 net/unix/af_unix.c:2968
 __sys_shutdown_sock net/socket.c:2326 [inline]
 __sys_shutdown net/socket.c:2338 [inline]
 __do_sys_shutdown net/socket.c:2346 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2344
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2344
 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 0xffff88810236c422 of 1 bytes by task 8479 on cpu 1:
 sock_alloc_send_pskb+0x113/0x4f0 net/core/sock.c:2647
 unix_stream_sendmsg+0x3a5/0xaa0 net/unix/af_unix.c:2151
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0x75/0xa0 net/socket.c:734
 io_send fs/io_uring.c:6195 [inline]
 io_issue_sqe+0x355d/0xaac0 fs/io_uring.c:8360
 io_queue_sqe fs/io_uring.c:8721 [inline]
 io_submit_sqe+0x2e20/0x3f50 fs/io_uring.c:8985
 io_submit_sqes+0x27b/0x500 fs/io_uring.c:9096
 __do_sys_io_uring_enter fs/io_uring.c:12043 [inline]
 __se_sys_io_uring_enter+0x24b/0xd60 fs/io_uring.c:11969
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:11969
 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: 8479 Comm: syz-executor.0 Not tainted 5.19.0-rc7-syzkaller-00005-gca85855bdcae-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/19 19:42 upstream ca85855bdcae 72a3cc0c .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
ci2-upstream-kcsan-gce 2022/07/11 18:19 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
ci2-upstream-kcsan-gce 2022/07/03 11:48 upstream 69cb6c6556ad 1434eec0 .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
ci2-upstream-kcsan-gce 2022/06/30 23:09 upstream 1a0e93df1e10 1434eec0 .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
ci2-upstream-kcsan-gce 2022/06/23 08:37 upstream de5c208d533a 912f5df7 .config log report info KCSAN: data-race in sock_alloc_send_pskb / unix_shutdown
* Struck through repros no longer work on HEAD.