syzbot


KCSAN: data-race in io_req_task_work_add / unix_stream_read_generic

Status: auto-closed as invalid on 2021/06/15 23:30
Subsystems: net
[Documentation on labels]
First crash: 1052d, last: 1052d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_req_task_work_add / unix_stream_read_generic

write to 0xffff88812d55006c of 4 bytes by task 9639 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule_timeout include/linux/freezer.h:193 [inline]
 unix_stream_data_wait net/unix/af_unix.c:2213 [inline]
 unix_stream_read_generic+0xc32/0x1260 net/unix/af_unix.c:2321
 unix_stream_recvmsg+0x63/0x90 net/unix/af_unix.c:2466
 sock_recvmsg_nosec net/socket.c:888 [inline]
 sock_recvmsg net/socket.c:906 [inline]
 sock_read_iter+0x19e/0x1e0 net/socket.c:979
 call_read_iter include/linux/fs.h:2108 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812d55006c of 4 bytes by task 9633 on cpu 1:
 io_req_task_work_add+0x3f/0x310 fs/io_uring.c:1935
 __io_async_wake+0x132/0x260 fs/io_uring.c:4832
 io_async_wake+0x77/0x110 fs/io_uring.c:5086
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:108
 __wake_up_common_lock kernel/sched/wait.c:138 [inline]
 __wake_up+0x80/0xc0 kernel/sched/wait.c:157
 sock_def_wakeup+0x54/0x70 net/core/sock.c:2887
 unix_release_sock+0x32f/0x6e0 net/unix/af_unix.c:552
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9633 Comm: syz-executor.5 Not tainted 5.13.0-rc1-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/11 23:26 upstream 88b06399c9c7 b3c3bb8e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in io_req_task_work_add / unix_stream_read_generic
* Struck through repros no longer work on HEAD.