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: 14408 Comm: syz.3.968 Not tainted 6.11.0-rc7-syzkaller-00097-g196145c606d0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: e7 5f 4c fe 31 ff 4c 89 e6 e8 fd d7 70 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 a2 f6 d4 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc900037afbb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88801af8d2a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffff888033942000 R08: ffffffff8322b943 R09: 1ffff1100b992a79
R10: dffffc0000000000 R11: ffffed100b992a7a R12: 0000000000000200
R13: 0000000000000200 R14: 0000000000000400 R15: ffff88805cc90d90
FS: 00007fd8ea5296c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f30d5640000 CR3: 000000002663e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7fd8e977def9
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:00007fd8ea529038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd8e9935f80 RCX: 00007fd8e977def9
RDX: 0000000020000000 RSI: 00000000c0185879 RDI: 0000000000000007
RBP: 00007fd8e97f0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd8e9935f80 R15: 00007ffc7cdf5668
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: e7 5f 4c fe 31 ff 4c 89 e6 e8 fd d7 70 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 a2 f6 d4 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc900037afbb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88801af8d2a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffff888033942000 R08: ffffffff8322b943 R09: 1ffff1100b992a79
R10: dffffc0000000000 R11: ffffed100b992a7a R12: 0000000000000200
R13: 0000000000000200 R14: 0000000000000400 R15: ffff88805cc90d90
FS: 00007fd8ea5296c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f30d5640000 CR3: 000000002663e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e7 5f out %eax,$0x5f
2: 4c fe rex.WR (bad)
4: 31 ff xor %edi,%edi
6: 4c 89 e6 mov %r12,%rsi
9: e8 fd d7 70 fe call 0xfe70d80b
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 a2 f6 d4 fe call 0xfed4f6db
39: 48 8b 14 24 mov (%rsp),%rdx
3d: 48 8b 1a mov (%rdx),%rbx