syzbot


KCSAN: data-race in unix_shutdown / unix_stream_sendmsg

Status: auto-closed as invalid on 2022/08/16 18:19
Subsystems: net
[Documentation on labels]
First crash: 675d, last: 650d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_shutdown / unix_stream_sendmsg (2) net 7 517d 609d 0/26 auto-obsoleted due to no activity on 2023/01/02 14:46
upstream KCSAN: data-race in unix_shutdown / unix_stream_sendmsg (3) net 3 400d 465d 0/26 auto-obsoleted due to no activity on 2023/04/24 09:42

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

read-write to 0xffff88810318ec62 of 1 bytes by task 19516 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 0xffff88810318ec62 of 1 bytes by task 19515 on cpu 1:
 unix_stream_sendmsg+0x226/0xaa0 net/unix/af_unix.c:2135
 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: 19515 Comm: syz-executor.3 Not tainted 5.19.0-rc6-syzkaller-00104-g72a8e05d4f66-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/12 18:02 upstream 72a8e05d4f66 d91dd8ea .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_shutdown / unix_stream_sendmsg
2022/07/11 08:12 upstream 32346491ddf2 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_shutdown / unix_stream_sendmsg
2022/07/04 17:39 upstream 88084a3df167 bff65f44 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_shutdown / unix_stream_sendmsg
2022/06/22 11:45 upstream ca1fdab7fd27 0fc5c330 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_shutdown / unix_stream_sendmsg
2022/06/18 03:19 upstream 462abc9de7a1 8f633d84 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_shutdown / unix_stream_sendmsg
* Struck through repros no longer work on HEAD.