BUG at fs/jfs/jfs_dmap.c:2933 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2933! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 15799 Comm: syz-executor.3 Not tainted 6.0.0-rc6-syzkaller-00210-gbf682942cd26 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:dbFindLeaf+0x43c/0x440 fs/jfs/jfs_dmap.c:2933 Code: dd fe eb 87 e8 05 1d 8a fe 48 c7 c7 a0 49 cd 8a 48 c7 c6 60 57 cd 8a ba 75 0b 00 00 48 c7 c1 40 54 cd 8a 31 c0 e8 15 34 23 07 <0f> 0b 66 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 49 89 ff 49 RSP: 0018:ffffc900036ef3d8 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000055 RCX: 5cb50556273a0200 RDX: ffffc9000c694000 RSI: 0000000000003f80 RDI: 0000000000003f81 RBP: 00000000ffffffff R08: ffffffff816bd4bd R09: ffffed10173667f1 R10: ffffed10173667f1 R11: 1ffff110173667f0 R12: ffff888024f0a010 R13: 0000000000000000 R14: ffff888024f0a079 R15: 0000000000000058 FS: 00007fab7c85a700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e522000 CR3: 000000004da39000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0xa9/0x420 fs/jfs/jfs_dmap.c:1937 dbAlloc+0xa7b/0xc90 fs/jfs/jfs_dmap.c:825 extBalloc fs/jfs/jfs_extent.c:321 [inline] extAlloc+0x4b9/0xff0 fs/jfs/jfs_extent.c:122 jfs_get_block+0x342/0xce0 fs/jfs/inode.c:248 __block_write_begin_int+0x5f6/0x1ba0 fs/buffer.c:2006 __block_write_begin fs/buffer.c:2056 [inline] block_write_begin+0x93/0x1e0 fs/buffer.c:2117 jfs_write_begin+0x2d/0x60 fs/jfs/inode.c:304 generic_perform_write+0x2a8/0x5b0 mm/filemap.c:3738 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3866 generic_file_write_iter+0xab/0x310 mm/filemap.c:3898 call_write_iter include/linux/fs.h:2187 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7dc/0xc50 fs/read_write.c:578 ksys_write+0x177/0x2a0 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fab7b68a669 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fab7c85a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fab7b7abf80 RCX: 00007fab7b68a669 RDX: 000000000000fd14 RSI: 0000000020001700 RDI: 0000000000000003 RBP: 00007fab7b6e5560 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe028f583f R14: 00007fab7c85a300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindLeaf+0x43c/0x440 fs/jfs/jfs_dmap.c:2933 Code: dd fe eb 87 e8 05 1d 8a fe 48 c7 c7 a0 49 cd 8a 48 c7 c6 60 57 cd 8a ba 75 0b 00 00 48 c7 c1 40 54 cd 8a 31 c0 e8 15 34 23 07 <0f> 0b 66 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 49 89 ff 49 RSP: 0018:ffffc900036ef3d8 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000055 RCX: 5cb50556273a0200 RDX: ffffc9000c694000 RSI: 0000000000003f80 RDI: 0000000000003f81 RBP: 00000000ffffffff R08: ffffffff816bd4bd R09: ffffed10173667f1 R10: ffffed10173667f1 R11: 1ffff110173667f0 R12: ffff888024f0a010 R13: 0000000000000000 R14: ffff888024f0a079 R15: 0000000000000058 FS: 00007fab7c85a700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110f337234 CR3: 000000004da39000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400