syzbot


KCSAN: data-race in unix_dgram_poll / unix_release_sock

Status: auto-closed as invalid on 2021/06/23 23:39
Subsystems: net
[Documentation on labels]
First crash: 1094d, last: 1071d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock (6) net 1 407d 407d 0/26 auto-obsoleted due to no activity on 2023/04/26 09:35
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock (3) net 6 891d 948d 0/26 auto-closed as invalid on 2021/12/20 20:13
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock (5) net 1 719d 719d 0/26 auto-closed as invalid on 2022/06/11 02:26
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock (2) net 14 986d 1026d 0/26 auto-closed as invalid on 2021/09/16 16:01
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock (4) net 1 764d 764d 0/26 auto-closed as invalid on 2022/04/27 04:20

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

write to 0xffff888104643e30 of 4 bytes by task 23465 on cpu 0:
 unix_release_sock+0x2e9/0x6e0 net/unix/af_unix.c:550
 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 0xffff888104643e30 of 4 bytes by task 23485 on cpu 1:
 unix_dgram_poll+0x6e/0x3e0 net/unix/af_unix.c:2693
 sock_poll+0x23e/0x260 net/socket.c:1246
 vfs_poll include/linux/poll.h:90 [inline]
 io_poll_rewait fs/io_uring.c:4850 [inline]
 io_async_task_func+0x135/0x590 fs/io_uring.c:5064
 __tctx_task_work fs/io_uring.c:1910 [inline]
 tctx_task_work+0x1d4/0x3d0 fs/io_uring.c:1924
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_signal include/linux/tracehook.h:212 [inline]
 handle_signal_work kernel/entry/common.c:145 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0xf8/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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23485 Comm: syz-executor.0 Tainted: G        W         5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/19 23:38 upstream c3d0e3fd41b7 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
2021/05/17 15:26 upstream d07f6ca923ea a2eb125d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
2021/05/15 04:31 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
2021/05/11 13:22 upstream 1140ab592e2e ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
2021/05/08 08:11 upstream 1ad77a05cfae bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
2021/04/26 23:20 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
* Struck through repros no longer work on HEAD.