syzbot


KCSAN: data-race in sk_psock_verdict_data_ready / unix_release_sock

Status: auto-obsoleted due to no activity on 2024/09/03 01:53
Subsystems: net
[Documentation on labels]
First crash: 198d, last: 198d

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

write to 0xffff8881042f2d20 of 8 bytes by task 8104 on cpu 0:
 sk_set_socket include/net/sock.h:1982 [inline]
 sock_orphan include/net/sock.h:2001 [inline]
 unix_release_sock+0x233/0x770 net/unix/af_unix.c:682
 unix_release+0x57/0x80 net/unix/af_unix.c:1112
 __sock_release net/socket.c:659 [inline]
 sock_close+0x68/0x150 net/socket.c:1421
 __fput+0x192/0x6f0 fs/file_table.c:422
 ____fput+0x15/0x20 fs/file_table.c:450
 task_work_run+0x13a/0x1a0 kernel/task_work.c:228
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881042f2d20 of 8 bytes by task 8105 on cpu 1:
 sk_psock_verdict_data_ready+0x1e/0x220 net/core/skmsg.c:1213
 unix_stream_sendmsg+0x534/0x880 net/unix/af_unix.c:2352
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 ____sys_sendmsg+0x312/0x410 net/socket.c:2597
 ___sys_sendmsg net/socket.c:2651 [inline]
 __sys_sendmsg+0x1e9/0x280 net/socket.c:2680
 __do_sys_sendmsg net/socket.c:2689 [inline]
 __se_sys_sendmsg net/socket.c:2687 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2687
 x64_sys_call+0x26f8/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff88810656b0c0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8105 Comm: syz.4.1321 Tainted: G        W          6.11.0-rc1-syzkaller-00043-g94ede2a3e913 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/30 01:47 upstream 94ede2a3e913 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sk_psock_verdict_data_ready / unix_release_sock
* Struck through repros no longer work on HEAD.