syzbot


KCSAN: data-race in pipe_poll / pipe_resize_ring (2)

Status: moderation: reported on 2025/03/04 18:52
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f8294130e385e115a5f9@syzkaller.appspotmail.com
First crash: 7d10h, last: 7d10h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_resize_ring fs 1 687d 687d 0/28 auto-obsoleted due to no activity on 2023/05/30 00:40

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pipe_poll / pipe_resize_ring

write to 0xffff8881151ef7d8 of 4 bytes by task 3940 on cpu 1:
 pipe_resize_ring+0x29d/0x330 fs/pipe.c:1327
 pipe_set_size fs/pipe.c:1378 [inline]
 pipe_fcntl+0x2f7/0x360 fs/pipe.c:1417
 do_fcntl+0x5a2/0xe10 fs/fcntl.c:543
 __do_sys_fcntl fs/fcntl.c:591 [inline]
 __se_sys_fcntl+0xbd/0x1b0 fs/fcntl.c:576
 __x64_sys_fcntl+0x43/0x50 fs/fcntl.c:576
 x64_sys_call+0x2129/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:73
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881151ef7d8 of 4 bytes by task 3943 on cpu 0:
 pipe_poll+0x1ee/0x250 fs/pipe.c:695
 vfs_poll include/linux/poll.h:82 [inline]
 __io_arm_poll_handler+0x1e5/0xd50 io_uring/poll.c:582
 io_poll_add+0x6b/0xf0 io_uring/poll.c:892
 io_issue_sqe+0x15f/0xb70 io_uring/io_uring.c:1737
 io_queue_sqe io_uring/io_uring.c:1947 [inline]
 io_submit_sqe io_uring/io_uring.c:2204 [inline]
 io_submit_sqes+0x680/0x1070 io_uring/io_uring.c:2321
 __io_sq_thread io_uring/sqpoll.c:189 [inline]
 io_sq_thread+0x791/0x1100 io_uring/sqpoll.c:312
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000010 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3943 Comm: iou-sqp-3940 Not tainted 6.14.0-rc5-syzkaller-00013-g99fa936e8e4f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/04 18:51 upstream 99fa936e8e4f c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_resize_ring
* Struck through repros no longer work on HEAD.