EXT4-fs error (device loop0): ext4_find_dest_de:2093: inode #2: block 13: comm syz-executor.0: bad entry in directory: inode out of bounds - offset=24, inode=61, rec_len=20, size=1024 fake=0 ================================================================== BUG: KCSAN: data-race in data_push_tail / vsnprintf write to 0xffffffff86f1cd98 of 1 bytes by task 21692 on cpu 1: vsnprintf+0xdd0/0xe20 vscnprintf+0x42/0x80 lib/vsprintf.c:2902 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2137 vprintk_store+0x567/0x800 kernel/printk/printk.c:2251 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2297 vprintk_default+0x26/0x30 kernel/printk/printk.c:2327 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2337 set_capacity_and_notify+0x178/0x1d0 block/genhd.c:90 loop_set_size+0x2e/0x70 drivers/block/loop.c:237 loop_configure+0xafb/0xc20 drivers/block/loop.c:1100 lo_ioctl+0x688/0x12f0 blkdev_ioctl+0x3a0/0x490 block/ioctl.c:615 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856 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 read to 0xffffffff86f1cd98 of 8 bytes by task 21681 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x536/0x800 kernel/printk/printk.c:2241 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2297 vprintk_default+0x26/0x30 kernel/printk/printk.c:2327 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2337 __ext4_error_inode+0x306/0x400 fs/ext4/super.c:795 __ext4_check_dir_entry+0x474/0x4f0 fs/ext4/dir.c:117 ext4_find_dest_de+0xf1/0x2a0 fs/ext4/namei.c:2092 add_dirent_to_buf+0x2b5/0x440 fs/ext4/namei.c:2164 ext4_add_entry+0x3d6/0x1e70 fs/ext4/namei.c:2424 ext4_add_nondir+0x50/0x190 fs/ext4/namei.c:2772 ext4_create+0x20e/0x2f0 fs/ext4/namei.c:2817 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0xd96/0x1d00 fs/namei.c:3712 do_filp_open+0xf6/0x200 fs/namei.c:3742 do_sys_openat2+0xb5/0x2a0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1375 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: 0x000000010001f03c -> 0x000000010001f000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 21681 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller-00242-g81ff855485a3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 ==================================================================