Kernel bug: kernel BUG in ext4_mb_use_inode_pa (2)
Subsystem: ext4
Status: open

Crash report:
EXT4-fs error (device loop0): ext4_mb_mark_diskspace_used:4113: comm syz-executor314: Allocating blocks 1-17 which overlap fs metadata
------------[ cut here ]------------
kernel BUG at fs/ext4/mballoc.c:4685!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5318 Comm: syz-executor314 Not tainted 6.15.0-syzkaller-12141-gec7714e49479 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ext4_mb_use_inode_pa+0x6c1/0x720 fs/ext4/mballoc.c:4685
Code: e8 d4 57 ab ff 48 ba 00 00 00 00 00 fc ff df e9 da fa ff ff e8 30 e6 47 ff 90 0f 0b e8 28 e6 47 ff 90 0f 0b e8 20 e6 47 ff 90 <0f> 0b e8 18 e6 47 ff 90 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc9000d3cf3c8 EFLAGS: 00010293
RAX: ffffffff827875b0 RBX: 00000000ffffffff RCX: ffff888035674880
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: 1ffff11008d2a23d R08: ffff8880468298a3 R09: 1ffff11008d05314
R10: dffffc0000000000 R11: ffffed1008d05315 R12: 0000000000000004
R13: 0000000000000002 R14: 1ffff11008d05317 R15: ffff8880468298b8
FS:  00007efeefd106c0(0000) GS:ffff88808d255000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efeefd10d58 CR3: 0000000044136000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_mb_use_preallocated+0x660/0x13f0 fs/ext4/mballoc.c:4902
 ext4_mb_new_blocks+0x5b4/0x46a0 fs/ext4/mballoc.c:6206
 ext4_ext_map_blocks+0x161a/0x6ac0 fs/ext4/extents.c:4383
 ext4_map_create_blocks fs/ext4/inode.c:609 [inline]
 ext4_map_blocks+0x931/0x18d0 fs/ext4/inode.c:813
 ext4_alloc_file_blocks+0x3b8/0xc60 fs/ext4/extents.c:4538
 ext4_zero_range+0x39b/0xb90 fs/ext4/extents.c:4618
 ext4_fallocate+0x74c/0xcd0 fs/ext4/extents.c:4790
 vfs_fallocate+0x6a0/0x830 fs/open.c:341
 ksys_fallocate fs/open.c:365 [inline]
 __do_sys_fallocate fs/open.c:370 [inline]
 __se_sys_fallocate fs/open.c:368 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:368
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efeefd7c649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efeefd10218 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007efeefe03618 RCX: 00007efeefd7c649
RDX: 0000000000000fff RSI: 0000000000000011 RDI: 0000000000000004
RBP: 00007efeefe03610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008800000 R11: 0000000000000246 R12: 00007efeefdd0614
R13: 6273752f7665642f R14: 0000200000000080 R15: 00002000000002c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_mb_use_inode_pa+0x6c1/0x720 fs/ext4/mballoc.c:4685
Code: e8 d4 57 ab ff 48 ba 00 00 00 00 00 fc ff df e9 da fa ff ff e8 30 e6 47 ff 90 0f 0b e8 28 e6 47 ff 90 0f 0b e8 20 e6 47 ff 90 <0f> 0b e8 18 e6 47 ff 90 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc9000d3cf3c8 EFLAGS: 00010293
RAX: ffffffff827875b0 RBX: 00000000ffffffff RCX: ffff888035674880
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: 1ffff11008d2a23d R08: ffff8880468298a3 R09: 1ffff11008d05314
R10: dffffc0000000000 R11: ffffed1008d05315 R12: 0000000000000004
R13: 0000000000000002 R14: 1ffff11008d05317 R15: ffff8880468298b8
FS:  00007efeefd106c0(0000) GS:ffff88808d255000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efeefd10d58 CR3: 0000000044136000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400