audit: type=1804 audit(1677837266.399:24): pid=14414 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir3605094348/syzkaller.gMnNit/234/file0/bus" dev="loop0" ino=18 res=1 EXT4-fs error (device loop0): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:222! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 14414 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 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:ffff8880982d7390 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888046b36830 RCX: ffffc90006b2b000 RDX: 0000000000040000 RSI: ffffffff81ddad37 RDI: 0000000000000006 RBP: 0000000000002000 R08: 0000000000000005 R09: 0000000000002005 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000005 R13: 0000000000002005 R14: ffff8880982d7418 R15: ffff888046b36cee FS: 00007f9b50bda700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f82a000 CR3: 00000000971c5000 CR4: 00000000003406e0 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 ext4_da_write_inline_data_end+0x30/0x4d0 fs/ext4/inline.c:957 ext4_da_write_end+0x4ba/0xa70 fs/ext4/inode.c:3198 generic_perform_write+0x2ae/0x4d0 mm/filemap.c:3181 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 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:0x7f9b526680f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007f9b50bda168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f9b52787f80 RCX: 00007f9b526680f9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f9b526c3ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc08984d8f R14: 00007f9b50bda300 R15: 0000000000022000 Modules linked in: ---[ end trace 04afd8cc7b024446 ]--- 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:ffff8880982d7390 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888046b36830 RCX: ffffc90006b2b000 RDX: 0000000000040000 RSI: ffffffff81ddad37 RDI: 0000000000000006 RBP: 0000000000002000 R08: 0000000000000005 R09: 0000000000002005 R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000005 R13: 0000000000002005 R14: ffff8880982d7418 R15: ffff888046b36cee FS: 00007f9b50bda700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f82a000 CR3: 00000000971c5000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400