loop0: detected capacity change from 0 to 32768 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5102 Comm: syz-executor102 Not tainted 6.11.0-rc7-syzkaller-00149-g0babf683783d #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368 Code: 57 39 49 fe 31 ff 4c 89 e6 e8 6d b1 6d 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 82 f4 d4 fe 48 8b 14 24 48 8b 1a RSP: 0018:ffffc90002c1fbb0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88803cdb44a0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000 RBP: ffff888034034000 R08: ffffffff8325e023 R09: 1ffff1100827d268 R10: dffffc0000000000 R11: ffffed100827d269 R12: 0000000000000200 R13: 0000000000000200 R14: 0000000000000400 R15: ffff8880413eb270 FS: 00007f6dc29446c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6dc2924000 CR3: 0000000035260000 CR4: 0000000000350ef0 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:0x7f6dc298ee19 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6dc2944218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6dc2a1c708 RCX: 00007f6dc298ee19 RDX: 0000000020000080 RSI: 00000000c0185879 RDI: 0000000000000005 RBP: 00007f6dc2a1c700 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6dc29e9034 R13: 00007f6dc29e306b R14: 00007f6dc29e307b R15: c21418431439518c Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368 Code: 57 39 49 fe 31 ff 4c 89 e6 e8 6d b1 6d 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 82 f4 d4 fe 48 8b 14 24 48 8b 1a RSP: 0018:ffffc90002c1fbb0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88803cdb44a0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000 RBP: ffff888034034000 R08: ffffffff8325e023 R09: 1ffff1100827d268 R10: dffffc0000000000 R11: ffffed100827d269 R12: 0000000000000200 R13: 0000000000000200 R14: 0000000000000400 R15: ffff8880413eb270 FS: 00007f6dc29446c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6dc29cad10 CR3: 0000000035260000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 57 push %rdi 1: 39 49 fe cmp %ecx,-0x2(%rcx) 4: 31 ff xor %edi,%edi 6: 4c 89 e6 mov %r12,%rsi 9: e8 6d b1 6d fe call 0xfe6db17b 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 82 f4 d4 fe call 0xfed4f4bb 39: 48 8b 14 24 mov (%rsp),%rdx 3d: 48 8b 1a mov (%rdx),%rbx