Is remount racy? jfs_dirty_inode called on read-only volume Is remount racy? jfs_dirty_inode called on read-only volume Is remount racy? INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 1 PID: 10929 Comm: syz-executor.1 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 assign_lock_key kernel/locking/lockdep.c:976 [inline] register_lock_class+0xc2a/0x1230 kernel/locking/lockdep.c:1289 __lock_acquire+0x111/0x3b30 kernel/locking/lockdep.c:5014 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:105 [inline] __wake_up+0x1c/0x60 kernel/sched/wait.c:127 txEnd+0x98/0x5a0 fs/jfs/jfs_txnmgr.c:504 jfs_rename+0xb46/0x19d0 fs/jfs/namei.c:1305 vfs_rename+0xf84/0x20a0 fs/namei.c:4880 do_renameat2+0xc54/0xdc0 fs/namei.c:5037 __do_sys_rename fs/namei.c:5084 [inline] __se_sys_rename fs/namei.c:5082 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5082 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed7b67dd69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007fed7c3ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fed7b7abf80 RCX: 00007fed7b67dd69 RDX: 0000000000000000 RSI: 0000000020000f00 RDI: 0000000020000400 RBP: 00007fed7b6ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fed7b7abf80 R15: 00007ffc8fdaa498 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 10929 Comm: syz-executor.1 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__wake_up_common+0x9a/0x1e0 kernel/sched/wait.c:85 Code: 02 00 0f 85 59 01 00 00 48 8b 5b 40 48 8d 43 e8 4c 39 fb 0f 84 b3 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 d9 48 c1 e9 03 <80> 3c 11 00 0f 85 16 01 00 00 49 bc 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc900033df858 EFLAGS: 00010046 RAX: ffffffffffffffe8 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffffc90002628030 RBP: 0000000000000000 R08: 0000000000000000 R09: fffff5200067bf02 R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000003 R13: 0000000000000246 R14: 0000000000000000 R15: ffffc90002628070 FS: 00007fed7c3ff6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e24e000 CR3: 0000000045546000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock kernel/sched/wait.c:106 [inline] __wake_up+0x31/0x60 kernel/sched/wait.c:127 txEnd+0x98/0x5a0 fs/jfs/jfs_txnmgr.c:504 jfs_rename+0xb46/0x19d0 fs/jfs/namei.c:1305 vfs_rename+0xf84/0x20a0 fs/namei.c:4880 do_renameat2+0xc54/0xdc0 fs/namei.c:5037 __do_sys_rename fs/namei.c:5084 [inline] __se_sys_rename fs/namei.c:5082 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5082 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed7b67dd69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007fed7c3ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fed7b7abf80 RCX: 00007fed7b67dd69 RDX: 0000000000000000 RSI: 0000000020000f00 RDI: 0000000020000400 RBP: 00007fed7b6ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fed7b7abf80 R15: 00007ffc8fdaa498 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__wake_up_common+0x9a/0x1e0 kernel/sched/wait.c:85 Code: 02 00 0f 85 59 01 00 00 48 8b 5b 40 48 8d 43 e8 4c 39 fb 0f 84 b3 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 d9 48 c1 e9 03 <80> 3c 11 00 0f 85 16 01 00 00 49 bc 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc900033df858 EFLAGS: 00010046 RAX: ffffffffffffffe8 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffffc90002628030 RBP: 0000000000000000 R08: 0000000000000000 R09: fffff5200067bf02 R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000003 R13: 0000000000000246 R14: 0000000000000000 R15: ffffc90002628070 FS: 00007fed7c3ff6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e24e000 CR3: 0000000045546000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 0f 85 59 01 00 00 jne 0x161 8: 48 8b 5b 40 mov 0x40(%rbx),%rbx c: 48 8d 43 e8 lea -0x18(%rbx),%rax 10: 4c 39 fb cmp %r15,%rbx 13: 0f 84 b3 00 00 00 je 0xcc 19: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 20: fc ff df 23: 48 89 d9 mov %rbx,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 16 01 00 00 jne 0x14a 34: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 3b: fc ff df 3e: 4c rex.WR 3f: 8b .byte 0x8b