syzbot


KCSAN: data-race in __tty_hangup / io_uring_get_socket

Status: auto-closed as invalid on 2022/09/20 10:15
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 113d, last: 113d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __tty_hangup / io_uring_get_socket

write to 0xffff8881042dcf28 of 8 bytes by task 21872 on cpu 1:
 __tty_hangup+0x22a/0x5b0 drivers/tty/tty_io.c:628
 tty_vhangup+0x13/0x20 drivers/tty/tty_io.c:707
 pty_close+0x25e/0x280 drivers/tty/pty.c:79
 tty_release+0x255/0x9d0 drivers/tty/tty_io.c:1758
 __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 0xffff8881042dcf28 of 8 bytes by task 21899 on cpu 0:
 io_is_uring_fops io_uring/io_uring.c:3126 [inline]
 io_uring_get_socket+0x12/0x70 io_uring/io_uring.c:153
 unix_get_socket+0xc9/0xf0 net/unix/scm.c:39
 io_file_need_scm io_uring/rsrc.h:88 [inline]
 io_file_get_flags+0x213/0x230 io_uring/io_uring.c:1426
 io_rw_init_file+0x94/0x340 io_uring/rw.c:662
 io_read+0x136/0xc90 io_uring/rw.c:732
 io_issue_sqe+0x386/0x900 io_uring/io_uring.c:1576
 io_wq_submit_work+0x3de/0x580 io_uring/io_uring.c:1653
 io_worker_handle_work+0x547/0xbf0 io_uring/io-wq.c:587
 io_wqe_worker+0x202/0x930 io_uring/io-wq.c:634
 ret_from_fork+0x1f/0x30

value changed: 0xffffffff850b9490 -> 0xffffffff850b9388

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21899 Comm: iou-wrk-21884 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/08/16 10:14 upstream 7ebfc85e2cd7 7a7cb304 .config log report info KCSAN: data-race in __tty_hangup / io_uring_get_socket
* Struck through repros no longer work on HEAD.