find_entry called with index = 0 jfs_dirty_inode called on read-only volume Is remount racy? jfs_dirty_inode called on read-only volume Is remount racy? Oops: general protection fault, probably for non-canonical address 0xdffffc00000000c7: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000638-0x000000000000063f] CPU: 0 UID: 0 PID: 5750 Comm: syz.0.16 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:JFS_SBI fs/jfs/jfs_incore.h:217 [inline] RIP: 0010:txEnd+0xb4/0x530 fs/jfs/jfs_txnmgr.c:507 Code: 49 8d 5e 20 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 6c 2a d1 fe 41 bf 38 06 00 00 4c 03 3b 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 4d 2a d1 fe 49 8b 1f 48 83 c3 30 RSP: 0018:ffffc90005ad76c0 EFLAGS: 00010202 RAX: 00000000000000c7 RBX: ffffc90000ed1020 RCX: 0000000000000000 RDX: 0000000000000006 RSI: ffffffff8defc169 RDI: 00000000ffffffff RBP: ffffc90005ad7950 R08: ffffffff9011d8b7 R09: 1ffffffff2023b16 R10: dffffc0000000000 R11: fffffbfff2023b17 R12: 00000000ffffffe2 R13: dffffc0000000000 R14: ffffc90000ed1000 R15: 0000000000000638 FS: 00007fe02be296c0(0000) GS:ffff88808ca51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe02afe6800 CR3: 0000000035c7d000 CR4: 0000000000352ef0 Call Trace: jfs_create+0x377/0xb10 fs/jfs/namei.c:160 lookup_open fs/namei.c:4483 [inline] open_last_lookups fs/namei.c:4583 [inline] path_openat+0x1395/0x3860 fs/namei.c:4827 do_file_open+0x23e/0x4a0 fs/namei.c:4859 do_sys_openat2+0x113/0x200 fs/open.c:1366 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1383 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe02af990b9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe02be29028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe02b1c5fa0 RCX: 00007fe02af990b9 RDX: 000000000000275a RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007fe02b02b9c4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe02b1c5fa0 R15: 00007ffd11ff6f88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:JFS_SBI fs/jfs/jfs_incore.h:217 [inline] RIP: 0010:txEnd+0xb4/0x530 fs/jfs/jfs_txnmgr.c:507 Code: 49 8d 5e 20 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 6c 2a d1 fe 41 bf 38 06 00 00 4c 03 3b 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 4d 2a d1 fe 49 8b 1f 48 83 c3 30 RSP: 0018:ffffc90005ad76c0 EFLAGS: 00010202 RAX: 00000000000000c7 RBX: ffffc90000ed1020 RCX: 0000000000000000 RDX: 0000000000000006 RSI: ffffffff8defc169 RDI: 00000000ffffffff RBP: ffffc90005ad7950 R08: ffffffff9011d8b7 R09: 1ffffffff2023b16 R10: dffffc0000000000 R11: fffffbfff2023b17 R12: 00000000ffffffe2 R13: dffffc0000000000 R14: ffffc90000ed1000 R15: 0000000000000638 FS: 00007fe02be296c0(0000) GS:ffff88808ca51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe02afe6800 CR3: 0000000035c7d000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 49 8d 5e 20 lea 0x20(%r14),%rbx 4: 48 89 d8 mov %rbx,%rax 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 10: 74 08 je 0x1a 12: 48 89 df mov %rbx,%rdi 15: e8 6c 2a d1 fe call 0xfed12a86 1a: 41 bf 38 06 00 00 mov $0x638,%r15d 20: 4c 03 3b add (%rbx),%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 4d 2a d1 fe call 0xfed12a86 39: 49 8b 1f mov (%r15),%rbx 3c: 48 83 c3 30 add $0x30,%rbx