syzbot


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

Status: auto-closed as invalid on 2021/06/30 15:16
Subsystems: net
[Documentation on labels]
First crash: 1066d, last: 1066d
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 382d 478d 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 658d 658d 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 573d 573d 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 1106d 1106d 0/26 auto-closed as invalid on 2021/05/21 02:26
upstream KCSAN: data-race in unix_poll / unix_release_sock (4) net 1 611d 611d 0/26 auto-closed as invalid on 2022/09/28 03:19

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

write to 0xffff88810620866a of 1 bytes by task 2491 on cpu 1:
 unix_release_sock+0x29a/0x6e0 net/unix/af_unix.c:548
 unix_release+0x2f/0x50 net/unix/af_unix.c:859
 __sock_release net/socket.c:599 [inline]
 sock_close+0x6c/0x150 net/socket.c:1258
 __fput+0x25b/0x4e0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810620866a of 1 bytes by task 2492 on cpu 0:
 unix_poll+0x99/0x1f0 net/unix/af_unix.c:2658
 sock_poll+0x23e/0x260 net/socket.c:1246
 vfs_poll include/linux/poll.h:90 [inline]
 do_select+0x901/0xf80 fs/select.c:534
 core_sys_select+0x403/0x690 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6+0x1bf/0x220 fs/select.c:800
 __se_sys_pselect6 fs/select.c:791 [inline]
 __x64_sys_pselect6+0x74/0x80 fs/select.c:791
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/26 15:07 upstream ad9f25d33860 750ce164 .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.