BUG at fs/jfs/jfs_dmap.c:2983 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2983! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 11665 Comm: syz.4.2017 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:dbFindLeaf+0x513/0x520 fs/jfs/jfs_dmap.c:2983 Code: fe e9 53 ff ff ff e8 0c c2 88 fe 48 c7 c7 60 d4 22 8b 48 c7 c6 a0 d1 22 8b ba a7 0b 00 00 48 c7 c1 40 df 22 8b e8 cd 16 8d 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90003226de0 EFLAGS: 00010246 RAX: 000000000000002b RBX: 00000000ffffffff RCX: 1912c5e52ef25300 RDX: ffffc9001a0ea000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: 0000000000000002 R08: ffffc90003226ae7 R09: 1ffff92000644d5c R10: dffffc0000000000 R11: fffff52000644d5d R12: 0000000000000000 R13: 0000000000000021 R14: 0000000000000024 R15: 0000000000000155 FS: 00007f5b905336c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f01efbfb4b8 CR3: 0000000067352000 CR4: 00000000003506e0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0x61/0x3b0 fs/jfs/jfs_dmap.c:1969 dbAlloc+0x98e/0xba0 fs/jfs/jfs_dmap.c:844 extBalloc fs/jfs/jfs_extent.c:336 [inline] extAlloc+0x57c/0x1010 fs/jfs/jfs_extent.c:127 jfs_get_block+0x352/0xad0 fs/jfs/inode.c:254 get_more_blocks fs/direct-io.c:647 [inline] do_direct_IO fs/direct-io.c:935 [inline] __blockdev_direct_IO+0x1628/0x32e0 fs/direct-io.c:1248 blockdev_direct_IO include/linux/fs.h:3086 [inline] jfs_direct_IO+0x11b/0x220 fs/jfs/inode.c:337 generic_file_direct_write+0x1c9/0x3e0 mm/filemap.c:3952 __generic_file_write_iter+0x11b/0x230 mm/filemap.c:4108 generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4148 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x747/0xc50 fs/read_write.c:860 iter_file_splice_write+0x6b6/0xcf0 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xe8/0x130 fs/splice.c:1142 splice_direct_to_actor+0x30b/0x8e0 fs/splice.c:1088 do_splice_direct+0x1d5/0x2f0 fs/splice.c:1194 do_sendfile+0x52b/0xe80 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f5b8f5a94d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5b90533028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5b8f826090 RCX: 00007f5b8f5a94d9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f5b8f63804e R08: 0000000000000000 R09: 0000000000000000 R10: 00000000018ad414 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5b8f826128 R14: 00007f5b8f826090 R15: 00007ffffa59e5e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindLeaf+0x513/0x520 fs/jfs/jfs_dmap.c:2983 Code: fe e9 53 ff ff ff e8 0c c2 88 fe 48 c7 c7 60 d4 22 8b 48 c7 c6 a0 d1 22 8b ba a7 0b 00 00 48 c7 c1 40 df 22 8b e8 cd 16 8d 07 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90003226de0 EFLAGS: 00010246 RAX: 000000000000002b RBX: 00000000ffffffff RCX: 1912c5e52ef25300 RDX: ffffc9001a0ea000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: 0000000000000002 R08: ffffc90003226ae7 R09: 1ffff92000644d5c R10: dffffc0000000000 R11: fffff52000644d5d R12: 0000000000000000 R13: 0000000000000021 R14: 0000000000000024 R15: 0000000000000155 FS: 00007f5b905336c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbc1a62546e CR3: 0000000067352000 CR4: 00000000003506f0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400