ERROR: (device loop2): txCommit:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 8663 Comm: syz.2.756 Not tainted 6.6.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:metapage_writepage+0xa8/0x1170 fs/jfs/jfs_metapage.c:340
Code: f3 e8 ec 78 85 fe 4c 8d 73 18 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 f2 1f de fe 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 d9 1f de fe 4d 8b 26 4c 8d 73 20
RSP: 0018:ffffc90004fd73e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffea00006fd900 RCX: 0000000000080000
RDX: ffffc9000d76d000 RSI: 0000000000038a55 RDI: 0000000000038a56
RBP: ffffc90004fd74d0 R08: ffffea00006fd937 R09: 1ffffd40000dfb26
R10: dffffc0000000000 R11: fffff940000dfb27 R12: 0000000000000081
R13: ffffea00006fd934 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007fb8bef266c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe492004e9c CR3: 000000002619a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
metapage_write_one+0x2b1/0x760 fs/jfs/jfs_metapage.c:710
force_metapage+0x15d/0x320 fs/jfs/jfs_metapage.c:732
txForce fs/jfs/jfs_txnmgr.c:2215 [inline]
txCommit+0x4a6b/0x5250 fs/jfs/jfs_txnmgr.c:1315
duplicateIXtree+0x293/0x480 fs/jfs/jfs_imap.c:3019
diNewIAG fs/jfs/jfs_imap.c:2597 [inline]
diAllocExt fs/jfs/jfs_imap.c:1905 [inline]
diAllocAG+0x1795/0x1de0 fs/jfs/jfs_imap.c:1669
diAlloc+0x1d5/0x1660 fs/jfs/jfs_imap.c:1590
ialloc+0x8c/0x950 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x191/0xa30 fs/jfs/namei.c:225
vfs_mkdir+0x296/0x440 fs/namei.c:4113
do_mkdirat+0x1d4/0x440 fs/namei.c:4136
__do_sys_mkdirat fs/namei.c:4151 [inline]
__se_sys_mkdirat fs/namei.c:4149 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4149
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb8be18e929
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:00007fb8bef26038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fb8be3b5fa0 RCX: 00007fb8be18e929
RDX: 0000000000000000 RSI: 0000200000000840 RDI: ffffffffffffff9c
RBP: 00007fb8be210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb8be3b5fa0 R15: 00007ffcb6e39198
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:metapage_writepage+0xa8/0x1170 fs/jfs/jfs_metapage.c:340
Code: f3 e8 ec 78 85 fe 4c 8d 73 18 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 f2 1f de fe 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 d9 1f de fe 4d 8b 26 4c 8d 73 20
RSP: 0018:ffffc90004fd73e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffea00006fd900 RCX: 0000000000080000
RDX: ffffc9000d76d000 RSI: 0000000000038a55 RDI: 0000000000038a56
RBP: ffffc90004fd74d0 R08: ffffea00006fd937 R09: 1ffffd40000dfb26
R10: dffffc0000000000 R11: fffff940000dfb27 R12: 0000000000000081
R13: ffffea00006fd934 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007fb8bef266c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f935b8d2000 CR3: 000000002619a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f3 e8 ec 78 85 fe repz call 0xfe8578f2
6: 4c 8d 73 18 lea 0x18(%rbx),%r14
a: 4c 89 f0 mov %r14,%rax
d: 48 c1 e8 03 shr $0x3,%rax
11: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1)
16: 74 08 je 0x20
18: 4c 89 f7 mov %r14,%rdi
1b: e8 f2 1f de fe call 0xfede2012
20: 4d 8b 36 mov (%r14),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 f7 mov %r14,%rdi
34: e8 d9 1f de fe call 0xfede2012
39: 4d 8b 26 mov (%r14),%r12
3c: 4c 8d 73 20 lea 0x20(%rbx),%r14