BUG at fs/jfs/jfs_dmap.c:2975 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:2975!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 6605 Comm: syz.5.77 Not tainted 6.16.0-rc7-syzkaller-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:dbFindLeaf+0x51d/0x520 fs/jfs/jfs_dmap.c:2975
Code: e9 4c ff ff ff e8 a3 e9 83 fe 48 c7 c7 80 bf c3 8b 48 c7 c6 c0 bc c3 8b ba 9f 0b 00 00 48 c7 c1 40 ca c3 8b e8 64 5f eb fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57
RSP: 0018:ffffc900039de9b0 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: a8be45fd075f4200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffc900039de6c7 R09: 1ffff9200073bcd8
R10: dffffc0000000000 R11: fffff5200073bcd9 R12: 0000000000000002
R13: 0000000000000060 R14: 000000000000005d R15: 0000000000000155
FS:  00007f62760976c0(0000) GS:ffff8880b8623000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6276096fc8 CR3: 0000000027a9e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 dbAllocDmapLev+0x60/0x3c0 fs/jfs/jfs_dmap.c:1961
 dbAllocCtl+0x14a/0x9b0 fs/jfs/jfs_dmap.c:1817
 dbAllocAG+0x1e8/0xf10 fs/jfs/jfs_dmap.c:1353
 dbAlloc+0x5a8/0xba0 fs/jfs/jfs_dmap.c:877
 diNewExt+0x9af/0x3150 fs/jfs/jfs_imap.c:2261
 diAllocExt fs/jfs/jfs_imap.c:1952 [inline]
 diAllocAG+0xe86/0x1df0 fs/jfs/jfs_imap.c:1669
 diAlloc+0x1d5/0x1680 fs/jfs/jfs_imap.c:1590
 ialloc+0x8c/0x8f0 fs/jfs/jfs_inode.c:56
 jfs_create+0x18d/0xa80 fs/jfs/namei.c:92
 lookup_open fs/namei.c:3717 [inline]
 open_last_lookups fs/namei.c:3816 [inline]
 path_openat+0x14f4/0x3830 fs/namei.c:4052
 do_filp_open+0x1fa/0x410 fs/namei.c:4082
 file_open_name fs/open.c:1381 [inline]
 filp_open+0x176/0x1d0 fs/open.c:1401
 do_coredump+0x1bd3/0x3440 fs/coredump.c:754
 get_signal+0x1109/0x1340 kernel/signal.c:3019
 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline]
 irqentry_exit_to_user_mode+0x81/0x120 kernel/entry/common.c:184
 exc_page_fault+0x9f/0xf0 arch/x86/mm/fault.c:1535
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:00002000000003e8 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007f62753b6080 RCX: 00007f627518e9a9
RDX: 00002000000002c0 RSI: 00002000000003e0 RDI: 0000000000020400
RBP: 00007f6275210d69 R08: 0000200000000480 R09: 0000200000000480
R10: 0000200000000440 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f62753b6080 R15: 00007ffc84deee58
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFindLeaf+0x51d/0x520 fs/jfs/jfs_dmap.c:2975
Code: e9 4c ff ff ff e8 a3 e9 83 fe 48 c7 c7 80 bf c3 8b 48 c7 c6 c0 bc c3 8b ba 9f 0b 00 00 48 c7 c1 40 ca c3 8b e8 64 5f eb fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57
RSP: 0018:ffffc900039de9b0 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: a8be45fd075f4200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffc900039de6c7 R09: 1ffff9200073bcd8
R10: dffffc0000000000 R11: fffff5200073bcd9 R12: 0000000000000002
R13: 0000000000000060 R14: 000000000000005d R15: 0000000000000155
FS:  00007f62760976c0(0000) GS:ffff8880b8623000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7ff4829000 CR3: 0000000027a9e000 CR4: 00000000000006f0
