lbmIODone: I/O error in JFS log 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: 6507 Comm: syz.2.20 Not tainted 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:metapage_write_folio+0xb7/0x10e0 fs/jfs/jfs_metapage.c:346 Code: 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 1d 7d cf fe 48 8b 1b 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 fb 7c cf fe 4c 8b 2b 48 8d 84 24 b0 RSP: 0018:ffffc9000328f2a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffc9000328f400 RDI: ffffea000192ed00 RBP: ffffc9000328f3b0 R08: ffffea000192ed37 R09: 1ffffd4000325da6 R10: dffffc0000000000 R11: fffff94000325da7 R12: ffffea000192ed34 R13: ffffea000192ed00 R14: dffffc0000000000 R15: ffffc9000328f400 FS: 00007fe1ce2416c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe780e52ba8 CR3: 0000000066292000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: metapage_write_one+0x2c7/0x680 fs/jfs/jfs_metapage.c:710 force_metapage+0x10a/0x2b0 fs/jfs/jfs_metapage.c:732 txForce fs/jfs/jfs_txnmgr.c:2215 [inline] txCommit+0x6250/0x6b90 fs/jfs/jfs_txnmgr.c:1315 diNewIAG fs/jfs/jfs_imap.c:2592 [inline] diAllocExt fs/jfs/jfs_imap.c:1905 [inline] diAllocAG+0x17ab/0x1e50 fs/jfs/jfs_imap.c:1669 diAlloc+0x1d2/0x1630 fs/jfs/jfs_imap.c:1590 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4257 do_mkdirat+0x264/0x3a0 fs/namei.c:4280 __do_sys_mkdirat fs/namei.c:4295 [inline] __se_sys_mkdirat fs/namei.c:4293 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4293 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:0x7fe1cd37dff9 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:00007fe1ce241038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fe1cd536058 RCX: 00007fe1cd37dff9 RDX: 0000000000000135 RSI: 0000000020000140 RDI: ffffffffffffff9c RBP: 00007fe1cd3f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fe1cd536058 R15: 00007ffdce828978 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:metapage_write_folio+0xb7/0x10e0 fs/jfs/jfs_metapage.c:346 Code: 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 1d 7d cf fe 48 8b 1b 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 fb 7c cf fe 4c 8b 2b 48 8d 84 24 b0 RSP: 0018:ffffc9000328f2a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffc9000328f400 RDI: ffffea000192ed00 RBP: ffffc9000328f3b0 R08: ffffea000192ed37 R09: 1ffffd4000325da6 R10: dffffc0000000000 R11: fffff94000325da7 R12: ffffea000192ed34 R13: ffffea000192ed00 R14: dffffc0000000000 R15: ffffc9000328f400 FS: 00007fe1ce2416c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3886d37a8c CR3: 0000000066292000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 d8 mov %rbx,%rax 3: 48 c1 e8 03 shr $0x3,%rax 7: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) c: 74 08 je 0x16 e: 48 89 df mov %rbx,%rdi 11: e8 1d 7d cf fe call 0xfecf7d33 16: 48 8b 1b mov (%rbx),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 fb 7c cf fe call 0xfecf7d33 38: 4c 8b 2b mov (%rbx),%r13 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 84 24 b0 test %ah,(%rax,%rsi,4)