find_entry called with index >= next_index Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 9988 Comm: syz-executor.1 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:dtInsertEntry.isra.0+0x126f/0x1660 fs/jfs/jfs_dtree.c:3713 Code: 40 04 ff e9 5c f9 ff ff e8 6e 77 86 fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 0f 01 00 00 RSP: 0018:ffffc90006ef7410 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000705a000 RDX: 0000000000000001 RSI: ffffffff83081882 RDI: 0000000000000008 RBP: ffff88802840e8be R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000004 R12: ffff88802ba86224 R13: ffff88802840e8b0 R14: ffff88802840e8c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88802c000000(0063) knlGS:00000000f5e49b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7396644 CR3: 0000000000942000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dtInsert+0x575/0xb00 fs/jfs/jfs_dtree.c:891 jfs_create+0x640/0xb40 fs/jfs/namei.c:137 lookup_open.isra.0+0x10a1/0x13c0 fs/namei.c:3505 open_last_lookups fs/namei.c:3574 [inline] path_openat+0x92f/0x29f0 fs/namei.c:3804 do_filp_open+0x1dc/0x430 fs/namei.c:3834 do_sys_openat2+0x17a/0x1e0 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_compat_sys_openat fs/open.c:1480 [inline] __se_compat_sys_openat fs/open.c:1478 [inline] __ia32_compat_sys_openat+0x16e/0x210 fs/open.c:1478 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7278579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f5e495ac EFLAGS: 00000292 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000020000080 RDX: 000000000000275a RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dtInsertEntry.isra.0+0x126f/0x1660 fs/jfs/jfs_dtree.c:3713 Code: 40 04 ff e9 5c f9 ff ff e8 6e 77 86 fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 0f 01 00 00 RSP: 0018:ffffc90006ef7410 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000705a000 RDX: 0000000000000001 RSI: ffffffff83081882 RDI: 0000000000000008 RBP: ffff88802840e8be R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000004 R12: ffff88802ba86224 R13: ffff88802840e8b0 R14: ffff88802840e8c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88802c000000(0063) knlGS:00000000f5e49b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f5e28da4 CR3: 0000000000942000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 40 04 ff rex add $0xff,%al 3: e9 5c f9 ff ff jmp 0xfffff964 8: e8 6e 77 86 fe call 0xfe86777b d: 48 8b 84 24 b8 00 00 mov 0xb8(%rsp),%rax 14: 00 15: 48 8d 78 08 lea 0x8(%rax),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 0f 01 00 00 jne 0x14f