syzbot


KCSAN: data-race in unix_poll / unix_release_sock (4)

Status: auto-closed as invalid on 2022/09/28 03:19
Subsystems: net
[Documentation on labels]
First crash: 545d, last: 545d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_poll / unix_release_sock (6) net 5 317d 412d 0/26 auto-obsoleted due to no activity on 2023/05/14 22:15
upstream KCSAN: data-race in unix_poll / unix_release_sock (3) net 1 592d 592d 0/26 auto-closed as invalid on 2022/08/12 09:16
upstream KCSAN: data-race in unix_poll / unix_release_sock (5) net 1 508d 508d 0/26 auto-obsoleted due to no activity on 2022/11/04 19:08
upstream KCSAN: data-race in unix_poll / unix_release_sock net 1 1040d 1040d 0/26 auto-closed as invalid on 2021/05/21 02:26
upstream KCSAN: data-race in unix_poll / unix_release_sock (2) net 1 1000d 1000d 0/26 auto-closed as invalid on 2021/06/30 15:16

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

write to 0xffff8881230db122 of 1 bytes by task 29593 on cpu 1:
 unix_release_sock+0x384/0x760 net/unix/af_unix.c:629
 unix_release+0x4e/0x70 net/unix/af_unix.c:1010
 __sock_release net/socket.c:650 [inline]
 sock_close+0x6c/0x150 net/socket.c:1365
 __fput+0x292/0x510 fs/file_table.c:320
 ____fput+0x11/0x20 fs/file_table.c:353
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881230db122 of 1 bytes by task 29594 on cpu 0:
 unix_poll+0x98/0x250 net/unix/af_unix.c:3141
 sock_poll+0x23e/0x260 net/socket.c:1353
 vfs_poll include/linux/poll.h:88 [inline]
 do_select+0x951/0x1020 fs/select.c:538
 core_sys_select+0x368/0x520 fs/select.c:681
 kern_select fs/select.c:722 [inline]
 __do_sys_select fs/select.c:729 [inline]
 __se_sys_select+0x1b7/0x1f0 fs/select.c:726
 __x64_sys_select+0x63/0x70 fs/select.c:726
 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 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29594 Comm: syz-executor.5 Not tainted 6.0.0-rc2-syzkaller-00044-gdf0219d11b6f-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/24 03:12 upstream df0219d11b6f cea8b0f7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_poll / unix_release_sock
* Struck through repros no longer work on HEAD.