syzbot


KCSAN: data-race in bdev_statx / queue_limits_commit_update (2)

Status: moderation: reported on 2025/07/05 22:43
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+b3987a634290a5f1bd78@syzkaller.appspotmail.com
First crash: 8d16h, last: 8d16h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bdev_statx / queue_limits_commit_update block 1 66d 66d 0/29 auto-obsoleted due to no activity on 2025/07/03 18:51

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bdev_statx / queue_limits_commit_update

read to 0xffff8881009fc0b8 of 4 bytes by task 3594 on cpu 0:
 queue_io_min include/linux/blkdev.h:1327 [inline]
 bdev_io_min include/linux/blkdev.h:1332 [inline]
 bdev_statx+0x295/0x2d0 block/bdev.c:1342
 vfs_getattr_nosec+0x1b6/0x1e0 fs/stat.c:227
 vfs_getattr fs/stat.c:262 [inline]
 vfs_fstat fs/stat.c:281 [inline]
 __do_sys_newfstat fs/stat.c:555 [inline]
 __se_sys_newfstat+0x96/0x2e0 fs/stat.c:550
 __x64_sys_newfstat+0x31/0x40 fs/stat.c:550
 x64_sys_call+0x27e1/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:6
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff8881009fc078 of 184 bytes by task 22343 on cpu 1:
 queue_limits_commit_update+0x4c/0x110 block/blk-settings.c:456
 loop_configure+0x79c/0xa50 drivers/block/loop.c:1053
 lo_ioctl+0x559/0x15d0 drivers/block/loop.c:-1
 blkdev_ioctl+0x34f/0x440 block/ioctl.c:704
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 22343 Comm: syz.0.4900 Not tainted 6.16.0-rc4-syzkaller-00319-g05df91921da6 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================
loop0: detected capacity change from 0 to 512
EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode
workqueue: Failed to create a rescuer kthread for wq "ext4-rsv-conversion": -EINTR
EXT4-fs: failed to create workqueue
EXT4-fs (loop0): mount failed

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/05 22:43 upstream 05df91921da6 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bdev_statx / queue_limits_commit_update
* Struck through repros no longer work on HEAD.