EXT4-fs error (device loop5): ext4_validate_block_bitmap:405: comm syz-executor351: bg 0: block 5: invalid block bitmap EXT4-fs error (device loop4): ext4_validate_block_bitmap:405: comm syz-executor351: bg 0: block 5: invalid block bitmap EXT4-fs error (device loop2): ext4_validate_block_bitmap:405: comm syz-executor351: bg 0: block 5: invalid block bitmap ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:231! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 8040 Comm: syz-executor351 Not tainted 4.14.298-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 EXT4-fs error (device loop0) in ext4_free_blocks:5010: Corrupt filesystem task: ffff88809532a240 task.stack: ffff8880b3bf8000 RIP: 0010:ext4_write_inline_data+0x2e6/0x380 fs/ext4/inline.c:231 RSP: 0018:ffff8880b3bff460 EFLAGS: 00010297 EXT4-fs (loop0): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1022 with error 28 RAX: ffff88809532a240 RBX: ffff8880a3fb1930 RCX: 000000000000000b RDX: 0000000000000000 RSI: ffff8880b3bff4e8 RDI: ffff8880a3fb1df8 RBP: 000000000000000b R08: 0000000000000ff5 R09: 0000000000000000 R10: ffff8880b3bff438 R11: 0000000000000000 R12: 0000000000000ff5 R13: ffff8880b3bff4e8 R14: ffff8880a3fb1df6 R15: ffff8880a3fb1798 FS: 00007f5b2f89c700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b81db93c8 CR3: 00000000b3dd5000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 EXT4-fs (loop0): This should not happen!! Data will be lost Call Trace: ext4_write_inline_data_end+0x1db/0x490 fs/ext4/inline.c:769 ext4_write_end+0x18d/0xca0 fs/ext4/inode.c:1429 ext4_da_write_end+0x6da/0x8e0 fs/ext4/inode.c:3216 generic_perform_write+0x268/0x420 mm/filemap.c:3066 EXT4-fs (loop0): Total free blocks count 0 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 EXT4-fs error (device loop5) in ext4_free_blocks:5010: Corrupt filesystem EXT4-fs (loop5): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 774 with error 28 EXT4-fs (loop5): This should not happen!! Data will be lost call_write_iter include/linux/fs.h:1780 [inline] do_iter_readv_writev+0x4cf/0x5f0 fs/read_write.c:675 do_iter_write+0x152/0x550 fs/read_write.c:954 vfs_iter_write+0x70/0xa0 fs/read_write.c:967 iter_file_splice_write+0x52b/0xa90 fs/splice.c:749 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop5): Total free blocks count 0 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1018 splice_direct_to_actor+0x27c/0x730 fs/splice.c:973 EXT4-fs (loop5): Free/Dirty block details do_splice_direct+0x164/0x210 fs/splice.c:1061 do_sendfile+0x47f/0xb30 fs/read_write.c:1441 SYSC_sendfile64 fs/read_write.c:1502 [inline] SyS_sendfile64+0xff/0x110 fs/read_write.c:1488 audit: type=1804 audit(1667652064.078:4): pid=7996 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor351" name="/root/file0/bus" dev="loop1" ino=18 res=1 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Code: EXT4-fs error (device loop2) in ext4_free_blocks:5010: Corrupt filesystem 5f e9 0f 15 9c ff e8 0a 15 9c ff 45 8d 64 2c c4 b8 3c 00 00 00 29 e8 89 04 24 e9 e7 fe ff ff EXT4-fs (loop0): free_blocks=0 e8 f1 14 9c ff 0f 0b e8 ea 14 9c ff <0f> 0b e8 c3 d1 EXT4-fs (loop2): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 1060 with error 28 c5 ff e9 2a fe ff ff 4c 89 f7 e8 b6 d1 c5 EXT4-fs (loop2): This should not happen!! Data will be lost ff e9 RIP: ext4_write_inline_data+0x2e6/0x380 fs/ext4/inline.c:231 RSP: ffff8880b3bff460 ---[ end trace 70b46edd3f5dd3ee ]--- EXT4-fs (loop2): Total free blocks count 0