loop3: detected capacity change from 0 to 512 ================================================================== BUG: KCSAN: data-race in console_flush_all / console_flush_all write to 0xffffffff86a21038 of 8 bytes by task 4848 on cpu 0: console_emit_next_record kernel/printk/printk.c:3099 [inline] console_flush_all+0x35a/0x730 kernel/printk/printk.c:3226 __console_flush_and_unlock kernel/printk/printk.c:3285 [inline] console_unlock+0xa1/0x330 kernel/printk/printk.c:3325 vprintk_emit+0x388/0x650 kernel/printk/printk.c:2450 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x79/0xa0 kernel/printk/printk.c:2475 base_sock_release+0x3a/0x210 drivers/isdn/mISDN/socket.c:622 __sock_release net/socket.c:647 [inline] sock_close+0x6b/0x150 net/socket.c:1391 __fput+0x298/0x650 fs/file_table.c:465 ____fput+0x1c/0x30 fs/file_table.c:493 task_work_run+0x12e/0x1a0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xe4/0x100 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff86a21038 of 8 bytes by task 4881 on cpu 1: console_flush_all+0x563/0x730 kernel/printk/printk.c:3227 __console_flush_and_unlock kernel/printk/printk.c:3285 [inline] console_unlock+0xa1/0x330 kernel/printk/printk.c:3325 vprintk_emit+0x388/0x650 kernel/printk/printk.c:2450 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x79/0xa0 kernel/printk/printk.c:2475 set_capacity_and_notify+0x14c/0x1f0 block/genhd.c:93 loop_set_size+0x2e/0x70 drivers/block/loop.c:210 loop_configure+0x8d3/0xa50 drivers/block/loop.c:1068 lo_ioctl+0x559/0x15d0 drivers/block/loop.c:-1 blkdev_ioctl+0x352/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 value changed: 0x0000000000000b5f -> 0x0000000000000b60 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4881 Comm: syz.3.280 Not tainted 6.16.0-rc2-syzkaller-00318-g739a6c93cc75 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ================================================================== EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ext4 filesystem being mounted at /54/bus supports timestamps until 2038-01-19 (0x7fffffff) EXT4-fs error (device loop3): ext4_do_update_inode:5568: inode #2: comm syz.3.280: corrupted inode contents EXT4-fs error (device loop3): ext4_dirty_inode:6459: inode #2: comm syz.3.280: mark_inode_dirty error EXT4-fs error (device loop3): ext4_do_update_inode:5568: inode #2: comm syz.3.280: corrupted inode contents EXT4-fs error (device loop3): __ext4_ext_dirty:206: inode #2: comm syz.3.280: mark_inode_dirty error