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: 0 PID: 5069 Comm: syz-executor Not tainted 6.1.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 assign_lock_key+0x230/0x260 kernel/locking/lockdep.c:974 register_lock_class+0x28a/0x990 kernel/locking/lockdep.c:1287 __lock_acquire+0xd3/0x1f80 kernel/locking/lockdep.c:4928 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 ocfs2_mark_lockres_freeing+0x15a/0x690 fs/ocfs2/dlmglue.c:3514 ocfs2_simple_drop_lockres fs/ocfs2/dlmglue.c:3570 [inline] ocfs2_drop_osb_locks fs/ocfs2/dlmglue.c:3578 [inline] ocfs2_dlm_shutdown+0x36/0x230 fs/ocfs2/dlmglue.c:3388 ocfs2_dismount_volume+0x490/0x960 fs/ocfs2/super.c:1920 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1470 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2463f7f327 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffeaedec368 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f2463ff0134 RCX: 00007f2463f7f327 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffeaedec420 RBP: 00007ffeaedec420 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffeaeded4a0 R13: 00007f2463ff0134 R14: 0000000000036252 R15: 00007ffeaeded4e0 ocfs2: Unmounting device (7,0) on (node local) general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 5069 Comm: syz-executor Not tainted 6.1.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ocfs2_clear_inode fs/ocfs2/inode.c:1208 [inline] RIP: 0010:ocfs2_evict_inode+0x32e1/0x4c30 fs/ocfs2/inode.c:1220 Code: 24 98 00 00 00 74 08 4c 89 f7 e8 da 16 80 fe 48 b9 00 00 00 00 00 fc ff df 48 01 cb 4d 8b 36 49 83 c6 08 4c 89 f0 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 f7 e8 b1 16 80 fe 49 8b 3e 48 8b 34 24 48 RSP: 0018:ffffc9000396f300 EFLAGS: 00010202 RAX: 0000000000000001 RBX: fffff5200072de74 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000396fa50 R08: ffffffff836219fe R09: ffffed100e35ab6f R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071ad5ce0 R13: 1ffff1100e35ab9c R14: 0000000000000008 R15: ffff888071ad5580 FS: 0000555566b60500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffff9a24d48 CR3: 0000000068f8d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: evict+0x529/0x930 fs/inode.c:701 __ocfs2_free_slot_info fs/ocfs2/slot_map.c:307 [inline] ocfs2_free_slot_info+0x90/0x260 fs/ocfs2/slot_map.c:443 ocfs2_delete_osb+0x58/0x180 fs/ocfs2/super.c:2499 ocfs2_dismount_volume+0x59d/0x960 fs/ocfs2/super.c:1938 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1470 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2463f7f327 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffeaedec368 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f2463ff0134 RCX: 00007f2463f7f327 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffeaedec420 RBP: 00007ffeaedec420 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffeaeded4a0 R13: 00007f2463ff0134 R14: 0000000000036252 R15: 00007ffeaeded4e0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_clear_inode fs/ocfs2/inode.c:1208 [inline] RIP: 0010:ocfs2_evict_inode+0x32e1/0x4c30 fs/ocfs2/inode.c:1220 Code: 24 98 00 00 00 74 08 4c 89 f7 e8 da 16 80 fe 48 b9 00 00 00 00 00 fc ff df 48 01 cb 4d 8b 36 49 83 c6 08 4c 89 f0 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 f7 e8 b1 16 80 fe 49 8b 3e 48 8b 34 24 48 RSP: 0018:ffffc9000396f300 EFLAGS: 00010202 RAX: 0000000000000001 RBX: fffff5200072de74 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000396fa50 R08: ffffffff836219fe R09: ffffed100e35ab6f R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071ad5ce0 R13: 1ffff1100e35ab9c R14: 0000000000000008 R15: ffff888071ad5580 FS: 0000555566b60500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffff9a24d48 CR3: 0000000068f8d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 24 98 and $0x98,%al 2: 00 00 add %al,(%rax) 4: 00 74 08 4c add %dh,0x4c(%rax,%rcx,1) 8: 89 f7 mov %esi,%edi a: e8 da 16 80 fe call 0xfe8016e9 f: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 16: fc ff df 19: 48 01 cb add %rcx,%rbx 1c: 4d 8b 36 mov (%r14),%r14 1f: 49 83 c6 08 add $0x8,%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 f7 mov %r14,%rdi 33: e8 b1 16 80 fe call 0xfe8016e9 38: 49 8b 3e mov (%r14),%rdi 3b: 48 8b 34 24 mov (%rsp),%rsi 3f: 48 rex.W