syzbot


KCSAN: data-race in unix_dgram_poll / unix_release_sock (6)

Status: auto-obsoleted due to no activity on 2023/04/26 09:35
Subsystems: net
[Documentation on labels]
First crash: 414d, last: 414d
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 (3) net 6 899d 955d 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 726d 726d 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 994d 1034d 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 771d 771d 0/26 auto-closed as invalid on 2022/04/27 04:20
upstream KCSAN: data-race in unix_dgram_poll / unix_release_sock net 6 1078d 1101d 0/26 auto-closed as invalid on 2021/06/23 23:39

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

write to 0xffff888104835bec of 1 bytes by task 5724 on cpu 0:
 unix_release_sock+0x3af/0x780 net/unix/af_unix.c:631
 unix_release+0x52/0x70 net/unix/af_unix.c:1042
 __sock_release net/socket.c:653 [inline]
 sock_close+0x70/0x150 net/socket.c:1395
 __fput+0x245/0x570 fs/file_table.c:321
 ____fput+0x15/0x20 fs/file_table.c:349
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888104835bec of 1 bytes by task 5715 on cpu 1:
 unix_dgram_poll+0xe3/0x3e0 net/unix/af_unix.c:3215
 sock_poll+0x253/0x270 net/socket.c:1383
 vfs_poll include/linux/poll.h:88 [inline]
 __io_arm_poll_handler+0x205/0xe30 io_uring/poll.c:600
 io_arm_poll_handler+0x44a/0x5a0 io_uring/poll.c:734
 io_queue_async+0x85/0x4a0 io_uring/io_uring.c:2057
 io_queue_sqe io_uring/io_uring.c:2088 [inline]
 io_submit_sqe io_uring/io_uring.c:2340 [inline]
 io_submit_sqes+0xa26/0xfe0 io_uring/io_uring.c:2450
 __do_sys_io_uring_enter io_uring/io_uring.c:3458 [inline]
 __se_sys_io_uring_enter+0x1e5/0x1b70 io_uring/io_uring.c:3392
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3392
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5715 Comm: syz-executor.0 Not tainted 6.3.0-rc2-syzkaller-00047-g6015b1aca1a2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/15 09:01 upstream 6015b1aca1a2 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_poll / unix_release_sock
* Struck through repros no longer work on HEAD.