EXT4-fs error (device loop4): ext4_validate_block_bitmap:392: comm syz-executor157: bg 0: block 5: invalid block bitmap EXT4-fs error (device loop5): ext4_validate_block_bitmap:392: comm syz-executor157: bg 0: block 5: invalid block bitmap audit: type=1804 audit(1667573019.688:3): pid=8112 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor157" name="/root/file0/bus" dev="loop0" ino=18 res=1 ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:222! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8121 Comm: syz-executor157 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:ext4_write_inline_data+0x337/0x3d0 fs/ext4/inline.c:222 Code: 5f e9 5d d8 84 ff e8 58 d8 84 ff 45 8d 64 2c c4 41 bd 3c 00 00 00 41 29 ed e9 df fe ff ff e8 40 d8 84 ff 0f 0b e8 39 d8 84 ff <0f> 0b e8 02 b4 ba ff e9 f5 fd ff ff 4c 89 ff e8 f5 b3 ba ff e9 99 EXT4-fs error (device loop4) in ext4_free_blocks:4973: Corrupt filesystem RSP: 0018:ffff8880b2fb7338 EFLAGS: 00010293 RAX: ffff8880affc64c0 RBX: ffff88808b4b6270 RCX: ffffffff81ddab4e RDX: 0000000000000000 RSI: ffffffff81ddad37 RDI: 0000000000000006 RBP: 000000000000000b R08: 0000000000000ff5 R09: 0000000000001000 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000ff5 R13: 0000000000001000 R14: ffff8880b2fb73c0 R15: ffff88808b4b672e FS: 00007f6c63acb700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c63a89718 CR3: 000000009b7c1000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 audit: type=1804 audit(1667573019.688:4): pid=8112 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor157" name="/root/file0/bus" dev="loop0" ino=18 res=1 Call Trace: ext4_write_inline_data_end+0x228/0x650 fs/ext4/inline.c:760 ext4_write_end+0x1de/0xec0 fs/ext4/inode.c:1423 ext4_da_write_end+0x860/0xa70 fs/ext4/inode.c:3170 generic_perform_write+0x2ae/0x4d0 mm/filemap.c:3181 audit: type=1804 audit(1667573019.688:5): pid=8137 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor157" name="/root/file0/bus" dev="loop4" ino=18 res=1 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 EXT4-fs error (device loop0) in ext4_free_blocks:4973: Corrupt filesystem ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:222! call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x668/0x790 fs/read_write.c:681 do_iter_write+0x182/0x5d0 fs/read_write.c:960 vfs_iter_write+0x70/0xa0 fs/read_write.c:973 iter_file_splice_write+0x60d/0xbb0 fs/splice.c:750 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f6c63b28439 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6c63acb208 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6c63ba63e8 RCX: 00007f6c63b28439 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 00007f6c63ba63e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 00007f6c63ba63ec R13: 00007ffd70124eef R14: 00007f6c63acb300 R15: 0000000000022000 Modules linked in: invalid opcode: 0000 [#2] PREEMPT SMP KASAN ---[ end trace adacbca91787a6d7 ]--- CPU: 1 PID: 8167 Comm: syz-executor157 Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:ext4_write_inline_data+0x337/0x3d0 fs/ext4/inline.c:222 Code: 5f e9 5d d8 84 ff e8 58 d8 84 ff 45 8d 64 2c c4 41 bd 3c 00 00 00 41 29 ed e9 df fe ff ff e8 40 d8 84 ff 0f 0b e8 39 d8 84 ff <0f> 0b e8 02 b4 ba ff e9 f5 fd ff ff 4c 89 ff e8 f5 b3 ba ff e9 99 RSP: 0018:ffff888094caf338 EFLAGS: 00010293 RIP: 0010:ext4_write_inline_data+0x337/0x3d0 fs/ext4/inline.c:222 RAX: ffff8880af7a42c0 RBX: ffff88808b4a8230 RCX: ffffffff81ddab4e RDX: 0000000000000000 RSI: ffffffff81ddad37 RDI: 0000000000000006 RBP: 000000000000000b R08: 0000000000000ff5 R09: 0000000000001000 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000ff5 R13: 0000000000001000 R14: ffff888094caf3c0 R15: ffff88808b4a86ee FS: 00007f6c63a89700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f97f5844000 CR3: 0000000097d96000 CR4: 00000000003406e0 Code: 5f e9 5d d8 84 ff e8 58 d8 84 ff 45 8d 64 2c c4 41 bd 3c 00 00 00 41 29 ed e9 df fe ff ff e8 40 d8 84 ff 0f 0b e8 39 d8 84 ff <0f> 0b e8 02 b4 ba ff e9 f5 fd ff ff 4c 89 ff e8 f5 b3 ba ff e9 99 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_write_inline_data_end+0x228/0x650 fs/ext4/inline.c:760 RSP: 0018:ffff8880b2fb7338 EFLAGS: 00010293 RAX: ffff8880affc64c0 RBX: ffff88808b4b6270 RCX: ffffffff81ddab4e RDX: 0000000000000000 RSI: ffffffff81ddad37 RDI: 0000000000000006 ext4_write_end+0x1de/0xec0 fs/ext4/inode.c:1423 ext4_da_write_end+0x860/0xa70 fs/ext4/inode.c:3170 RBP: 000000000000000b R08: 0000000000000ff5 R09: 0000000000001000 generic_perform_write+0x2ae/0x4d0 mm/filemap.c:3181 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000ff5 R13: 0000000000001000 R14: ffff8880b2fb73c0 R15: ffff88808b4b672e __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 FS: 00007f6c63acb700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c63a89718 CR3: 000000009b7c1000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400