loop0: detected capacity change from 0 to 512 EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none. ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3329! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5240 Comm: syz-executor308 Not tainted 6.1.0-rc3-next-20221104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3329 Code: ff 48 c7 c2 80 42 03 8a be f8 02 00 00 48 c7 c7 80 3f 03 8a c6 05 8a 1a ae 0b 01 e8 7e 49 3b 07 e9 d9 fd ff ff e8 72 db 5d ff <0f> 0b e8 0b 68 aa ff e9 ea fc ff ff e8 01 68 aa ff e9 24 fd ff ff RSP: 0018:ffffc90003c5f3e8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888027053a80 RSI: ffffffff821ef49e RDI: 0000000000000004 RBP: ffff88802a754000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: 000000000008e001 R12: ffff88802a6ee000 R13: ffff88802a6ee678 R14: 0000000000000001 R15: ffffc90003c5f7c8 FS: 0000555556f87300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05393f5a70 CR3: 0000000020646000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_load_buddy_gfp+0xc9/0x1c90 fs/ext4/mballoc.c:1448 ext4_mb_load_buddy fs/ext4/mballoc.c:1570 [inline] ext4_mballoc_query_range+0xa1/0x860 fs/ext4/mballoc.c:6579 ext4_getfsmap_datadev+0x17f4/0x2a10 fs/ext4/fsmap.c:537 ext4_getfsmap+0x6ca/0x990 fs/ext4/fsmap.c:708 ext4_ioc_getfsmap+0x344/0x990 fs/ext4/ioctl.c:902 __ext4_ioctl+0x348/0x49d0 fs/ext4/ioctl.c:1223 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe8829acf99 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe0b216158 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe8829acf99 RDX: 0000000020000200 RSI: 00000000c0c0583b RDI: 0000000000000003 RBP: 00007fe88296c760 R08: 0000000000000000 R09: 0000000000000000 R10: 0000555556f872c0 R11: 0000000000000246 R12: 00007fe88296c7f0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3329 Code: ff 48 c7 c2 80 42 03 8a be f8 02 00 00 48 c7 c7 80 3f 03 8a c6 05 8a 1a ae 0b 01 e8 7e 49 3b 07 e9 d9 fd ff ff e8 72 db 5d ff <0f> 0b e8 0b 68 aa ff e9 ea fc ff ff e8 01 68 aa ff e9 24 fd ff ff RSP: 0018:ffffc90003c5f3e8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888027053a80 RSI: ffffffff821ef49e RDI: 0000000000000004 RBP: ffff88802a754000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: 000000000008e001 R12: ffff88802a6ee000 R13: ffff88802a6ee678 R14: 0000000000000001 R15: ffffc90003c5f7c8 FS: 0000555556f87300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05393f5a70 CR3: 0000000020646000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400