syzbot


KCSAN: data-race in unix_release_sock / unix_stream_sendmsg (2)

Status: auto-closed as invalid on 2021/11/02 18:48
Subsystems: net
[Documentation on labels]
First crash: 983d, last: 934d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_release_sock / unix_stream_sendmsg net 1 1236d 1229d 0/26 auto-closed as invalid on 2021/01/04 17:08

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

write to 0xffff888133b56270 of 1 bytes by task 22144 on cpu 0:
 unix_release_sock+0x2d0/0x700 net/unix/af_unix.c:565
 unix_release+0x4e/0x70 net/unix/af_unix.c:915
 __sock_release net/socket.c:649 [inline]
 sock_close+0x6c/0x150 net/socket.c:1314
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 get_signal+0x155c/0x15d0 kernel/signal.c:2641
 arch_do_signal_or_restart+0x8c/0x280 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888133b56270 of 1 bytes by task 22160 on cpu 1:
 unix_stream_sendmsg+0x261/0xfb0 net/unix/af_unix.c:2011
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmmsg+0x388/0x520 net/socket.c:2549
 __do_sys_sendmmsg net/socket.c:2578 [inline]
 __se_sys_sendmmsg net/socket.c:2575 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2575
 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 -> 0x03

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/28 18:46 upstream d33bec7b3dfa d82cb927 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_stream_sendmsg
2021/09/01 23:33 upstream 835d31d319d9 7eb7e152 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_stream_sendmsg
2021/08/10 08:14 upstream 9a73fa375d58 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_release_sock / unix_stream_sendmsg
* Struck through repros no longer work on HEAD.