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: 30d, last: 1d17h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bdev_statx / queue_limits_commit_update block 6 1 88d 88d 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 0xffff8881023a0488 of 4 bytes by task 3295 on cpu 0:
 queue_io_min include/linux/blkdev.h:1383 [inline]
 bdev_io_min include/linux/blkdev.h:1388 [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_statx_path fs/stat.c:299 [inline]
 vfs_statx+0x113/0x390 fs/stat.c:356
 vfs_fstatat+0x115/0x170 fs/stat.c:375
 __do_sys_newfstatat fs/stat.c:542 [inline]
 __se_sys_newfstatat+0x55/0x260 fs/stat.c:536
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536
 x64_sys_call+0x135a/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:263
 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 0xffff8881023a0448 of 192 bytes by task 6773 on cpu 1:
 queue_limits_commit_update+0x4c/0x110 block/blk-settings.c:509
 loop_configure+0x79c/0xa50 drivers/block/loop.c:1052
 lo_ioctl+0x1e1/0x1350 drivers/block/loop.c:1523
 blkdev_ioctl+0x352/0x440 block/ioctl.c:705
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:584
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:584
 x64_sys_call+0x1816/0x2ff0 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: 6773 Comm: syz.1.833 Not tainted 6.16.0-syzkaller-11241-g186f3edfdd41 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================
loop1: detected capacity change from 0 to 512
EXT4-fs (loop1): encrypted files will use data=ordered instead of data journaling mode
EXT4-fs (loop1): 1 truncate cleaned up
9pnet_fd: Insufficient options for proto=fd

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/03 05:33 upstream 186f3edfdd41 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bdev_statx / queue_limits_commit_update
2025/07/27 10:48 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bdev_statx / queue_limits_commit_update
2025/07/23 01:50 upstream 89be9a83ccf1 8e9d1dc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bdev_statx / queue_limits_commit_update
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.