Kernel bug: kernel BUG in folio_set_bh
Subsystem: ntfs3
Status: fixed

Crash report:
 loop0: p2 p3 < > p4 < p5 >
loop0: partition table partially beyond EOD, truncated
loop0: p3 start 4284289 is beyond EOD, truncated
------------[ cut here ]------------
kernel BUG at fs/buffer.c:1582!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5496 Comm: syz.0.18 Not tainted syzkaller #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:folio_set_bh+0x1dc/0x1e0 fs/buffer.c:1582
Code: 4c 89 e2 e8 86 21 80 02 e9 42 ff ff ff e8 8c c4 75 ff 48 89 df 48 c7 c6 60 25 7a 8b e8 ed 0e de fe 90 0f 0b e8 75 c4 75 ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f
RSP: 0018:ffffc90002b9f800 EFLAGS: 00010293
RAX: ffffffff8249df2b RBX: ffffea0001312000 RCX: ffff8880339a0000
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000001000
RBP: dffffc0000000000 R08: ffffea0001312007 R09: 1ffffd4000262400
R10: dffffc0000000000 R11: fffff94000262401 R12: 0000000000000000
R13: 0000000000001000 R14: ffff8880458f1910 R15: 0000000000001000
FS:  000055557d4e1500(0000) GS:ffff88808d304000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5b1b33c368 CR3: 000000004e85c000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 folio_alloc_buffers+0x3a0/0x640 fs/buffer.c:946
 grow_dev_folio fs/buffer.c:1075 [inline]
 grow_buffers fs/buffer.c:1116 [inline]
 __getblk_slow fs/buffer.c:1134 [inline]
 bdev_getblk+0x286/0x660 fs/buffer.c:1461
 __bread_gfp+0x89/0x3c0 fs/buffer.c:1515
 sb_bread include/linux/buffer_head.h:346 [inline]
 fat_fill_super+0x5e2/0x3570 fs/fat/inode.c:1600
 get_tree_bdev_flags+0x40b/0x4d0 fs/super.c:1691
 vfs_get_tree+0x8f/0x2b0 fs/super.c:1751
 fc_mount fs/namespace.c:1208 [inline]
 do_new_mount_fc fs/namespace.c:3651 [inline]
 do_new_mount+0x302/0xa10 fs/namespace.c:3727
 do_mount fs/namespace.c:4050 [inline]
 __do_sys_mount fs/namespace.c:4238 [inline]
 __se_sys_mount+0x313/0x410 fs/namespace.c:4215
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff7f658eec9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc0a5318c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff7f67e5fa0 RCX: 00007ff7f658eec9
RDX: 0000200000000080 RSI: 0000200000000040 RDI: 0000200000000000
RBP: 00007ff7f6611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff7f67e5fa0 R14: 00007ff7f67e5fa0 R15: 0000000000000005
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_set_bh+0x1dc/0x1e0 fs/buffer.c:1582
Code: 4c 89 e2 e8 86 21 80 02 e9 42 ff ff ff e8 8c c4 75 ff 48 89 df 48 c7 c6 60 25 7a 8b e8 ed 0e de fe 90 0f 0b e8 75 c4 75 ff 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f
RSP: 0018:ffffc90002b9f800 EFLAGS: 00010293
RAX: ffffffff8249df2b RBX: ffffea0001312000 RCX: ffff8880339a0000
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000001000
RBP: dffffc0000000000 R08: ffffea0001312007 R09: 1ffffd4000262400
R10: dffffc0000000000 R11: fffff94000262401 R12: 0000000000000000
R13: 0000000000001000 R14: ffff8880458f1910 R15: 0000000000001000
FS:  000055557d4e1500(0000) GS:ffff88808d304000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd2dbbc170 CR3: 000000004e85c000 CR4: 0000000000352ef0