Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5308 Comm: syz.2.6 Not tainted 6.11.0-rc2-syzkaller-00027-g6a0e38264012 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368 Code: d7 25 4e fe 31 ff 4c 89 e6 e8 2d 99 72 fe 4d 85 e4 0f 84 e2 04 00 00 4c 89 f1 4f 8d 74 25 00 48 8b 14 24 48 89 d0 48 c1 e8 03 <80> 3c 08 00 74 0d 48 8b 3c 24 e8 c2 a7 d6 fe 48 8b 14 24 48 8b 1a RSP: 0018:ffffc90004247bb0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88802e21c0a0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000000000000000 RBP: ffff88807af64000 R08: ffffffff8320e203 R09: 1ffff1100baaa268 R10: dffffc0000000000 R11: ffffed100baaa269 R12: 0000000000000800 R13: 0000000000000400 R14: 0000000000000c00 R15: ffff88805d553270 FS: 00007fe9f595d6c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020008000 CR3: 00000000221fc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbDiscardAG+0x8a9/0xa20 fs/jfs/jfs_dmap.c:1650 jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2d0/0x3e0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe9f4b779f9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe9f595d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe9f4d05f80 RCX: 00007fe9f4b779f9 RDX: 0000000020000080 RSI: 00000000c0185879 RDI: 0000000000000008 RBP: 00007fe9f4be58ee R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe9f4d05f80 R15: 00007ffdac879fe8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368 Code: d7 25 4e fe 31 ff 4c 89 e6 e8 2d 99 72 fe 4d 85 e4 0f 84 e2 04 00 00 4c 89 f1 4f 8d 74 25 00 48 8b 14 24 48 89 d0 48 c1 e8 03 <80> 3c 08 00 74 0d 48 8b 3c 24 e8 c2 a7 d6 fe 48 8b 14 24 48 8b 1a RSP: 0018:ffffc90004247bb0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88802e21c0a0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000000000000000 RBP: ffff88807af64000 R08: ffffffff8320e203 R09: 1ffff1100baaa268 R10: dffffc0000000000 R11: ffffed100baaa269 R12: 0000000000000800 R13: 0000000000000400 R14: 0000000000000c00 R15: ffff88805d553270 FS: 00007fe9f595d6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007eff20cd2000 CR3: 00000000221fc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d7 xlat %ds:(%rbx) 1: 25 4e fe 31 ff and $0xff31fe4e,%eax 6: 4c 89 e6 mov %r12,%rsi 9: e8 2d 99 72 fe call 0xfe72993b e: 4d 85 e4 test %r12,%r12 11: 0f 84 e2 04 00 00 je 0x4f9 17: 4c 89 f1 mov %r14,%rcx 1a: 4f 8d 74 25 00 lea 0x0(%r13,%r12,1),%r14 1f: 48 8b 14 24 mov (%rsp),%rdx 23: 48 89 d0 mov %rdx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 0d je 0x3d 30: 48 8b 3c 24 mov (%rsp),%rdi 34: e8 c2 a7 d6 fe call 0xfed6a7fb 39: 48 8b 14 24 mov (%rsp),%rdx 3d: 48 8b 1a mov (%rdx),%rbx