BUG at fs/jfs/jfs_dmap.c:3002 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3002! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 20882 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002 Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89 RSP: 0018:ffff888047ffedc0 EFLAGS: 00010286 RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1008fffdaa RBP: 0000000000000018 R08: 000000000000002b R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808d3ff010 R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000002 FS: 00007f8d21d0e700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557f70e77160 CR3: 000000009f728000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0xaf/0x330 fs/jfs/jfs_dmap.c:2010 dbAlloc+0x82b/0xb00 fs/jfs/jfs_dmap.c:830 extBalloc fs/jfs/jfs_extent.c:531 [inline] extAlloc+0x4cb/0xdb0 fs/jfs/jfs_extent.c:138 jfs_get_block+0x1f5/0xae0 fs/jfs/inode.c:258 nobh_write_begin+0x446/0x1030 fs/buffer.c:2619 jfs_write_begin+0x3e/0x1a0 fs/jfs/inode.c:323 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 dump_emit+0x183/0x300 fs/coredump.c:801 elf_core_dump+0x2914/0x4c10 fs/binfmt_elf.c:2335 do_coredump+0x1d4e/0x2d60 fs/coredump.c:765 get_signal+0xed9/0x1f70 kernel/signal.c:2583 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f8d237f2707 Code: 08 89 3c 24 48 89 4c 24 18 e8 e5 f8 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 48 8b 74 24 08 8b 3c 24 b8 12 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 04 24 e8 15 f9 ff ff 48 8b RSP: 002b:00007f8d21d0df00 EFLAGS: 00000293 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffe5 RBX: 000000000000031b RCX: 00007f8d237f2707 RDX: 00000000000000c0 RSI: 000000002001b560 RDI: 0000000000000007 RBP: 0000000000000007 R08: 0000000000000000 R09: 0000000000000000 R10: 0000008000000001 R11: 0000000000000293 R12: 0000000000000007 R13: 00000000200012b0 R14: 00000000000000b2 R15: 00007f8d2388aa20 Modules linked in: ---[ end trace f250e60dda1e7985 ]--- RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002 Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89 RSP: 0018:ffff888047ffedc0 EFLAGS: 00010286 RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1008fffdaa RBP: 0000000000000018 R08: 000000000000002b R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808d3ff010 R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000002 FS: 00007f8d21d0e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f007d6d1000 CR3: 000000009f728000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400