syzbot


KCSAN: data-race in unix_poll / unix_release_sock

Status: auto-closed as invalid on 2021/05/21 02:26
Subsystems: net
[Documentation on labels]
First crash: 1096d, last: 1096d
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 372d 468d 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 648d 648d 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 564d 564d 0/26 auto-obsoleted due to no activity on 2022/11/04 19:08
upstream KCSAN: data-race in unix_poll / unix_release_sock (4) net 1 601d 601d 0/26 auto-closed as invalid on 2022/09/28 03:19
upstream KCSAN: data-race in unix_poll / unix_release_sock (2) net 1 1056d 1056d 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 0xffff88810554a66a of 1 bytes by task 32274 on cpu 0:
 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:140
 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+0x151/0x170 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+0x40/0x50 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810554a66a of 1 bytes by task 32294 on cpu 1:
 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
 kern_select fs/select.c:718 [inline]
 __do_sys_select fs/select.c:725 [inline]
 __se_sys_select+0x17e/0x1c0 fs/select.c:722
 __x64_sys_select+0x63/0x70 fs/select.c:722
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 32294 Comm: syz-executor.0 Not tainted 5.12.0-rc7-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/04/16 02:18 upstream 7f75285ca572 c59079a6 .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.