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 UID: 0 PID: 8915 Comm: syz.4.970 Not tainted 6.15.0-rc2-syzkaller-00087-gcfb2e2c57aef #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
assign_lock_key+0x135/0x150 kernel/locking/lockdep.c:986
register_lock_class+0xd6/0x330 kernel/locking/lockdep.c:1300
__lock_acquire+0x80/0xd80 kernel/locking/lockdep.c:5110
lock_acquire+0x116/0x2f0 kernel/locking/lockdep.c:5866
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xd8/0x130 kernel/locking/spinlock.c:162
ocfs2_mark_lockres_freeing+0x160/0x6a0 fs/ocfs2/dlmglue.c:3513
ocfs2_simple_drop_lockres fs/ocfs2/dlmglue.c:3569 [inline]
ocfs2_drop_osb_locks fs/ocfs2/dlmglue.c:3577 [inline]
ocfs2_dlm_shutdown+0x3a/0x240 fs/ocfs2/dlmglue.c:3387
ocfs2_dismount_volume+0x499/0x910 fs/ocfs2/super.c:1863
generic_shutdown_super+0x13b/0x2d0 fs/super.c:642
kill_block_super+0x44/0x90 fs/super.c:1710
deactivate_locked_super+0xc6/0x130 fs/super.c:473
cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435
task_work_run+0x253/0x310 kernel/task_work.c:227
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0xa11/0x27f0 kernel/exit.c:953
do_group_exit+0x207/0x2c0 kernel/exit.c:1102
get_signal+0x1696/0x1730 kernel/signal.c:3034
arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9fdc58e169
Code: Unable to access opcode bytes at 0x7f9fdc58e13f.
RSP: 002b:00007f9fdd4dc0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f9fdc7b5fa8 RCX: 00007f9fdc58e169
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9fdc7b5fa8
RBP: 00007f9fdc7b5fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9fdc7b5fac
R13: 0000000000000000 R14: 00007ffcd6976a30 R15: 00007ffcd6976b18
ocfs2: Unmounting device (7,4) on (node local)
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 UID: 0 PID: 8915 Comm: syz.4.970 Not tainted 6.15.0-rc2-syzkaller-00087-gcfb2e2c57aef #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:ocfs2_clear_inode fs/ocfs2/inode.c:1222 [inline]
RIP: 0010:ocfs2_evict_inode+0x30f5/0x47c0 fs/ocfs2/inode.c:1234
Code: 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 e7 e8 9d a8 65 fe 4c 01 fb 4d 8b 24 24 49 83 c4 08 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 7c a8 65 fe 49 8b 3c 24 49 81 c6
RSP: 0018:ffffc9000d88eee0 EFLAGS: 00010212
RAX: 0000000000000001 RBX: fffff52001b11df0 RCX: ffff888027e6bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d88f630 R08: ffffffff83c7ec8a R09: 1ffff1100b0309a6
R10: dffffc0000000000 R11: ffffed100b0309a7 R12: 0000000000000008
R13: 1ffff1100b0309d4 R14: ffff888058184fb8 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff888125093000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c33d2a1 CR3: 000000006053c000 CR4: 0000000000350ef0
Call Trace:
evict+0x4fb/0x9b0 fs/inode.c:810
__ocfs2_free_slot_info fs/ocfs2/slot_map.c:307 [inline]
ocfs2_free_slot_info+0x94/0x270 fs/ocfs2/slot_map.c:443
ocfs2_delete_osb+0x58/0x170 fs/ocfs2/super.c:2447
ocfs2_dismount_volume+0x5a6/0x910 fs/ocfs2/super.c:1881
generic_shutdown_super+0x13b/0x2d0 fs/super.c:642
kill_block_super+0x44/0x90 fs/super.c:1710
deactivate_locked_super+0xc6/0x130 fs/super.c:473
cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435
task_work_run+0x253/0x310 kernel/task_work.c:227
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0xa11/0x27f0 kernel/exit.c:953
do_group_exit+0x207/0x2c0 kernel/exit.c:1102
get_signal+0x1696/0x1730 kernel/signal.c:3034
arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9fdc58e169
Code: Unable to access opcode bytes at 0x7f9fdc58e13f.
RSP: 002b:00007f9fdd4dc0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f9fdc7b5fa8 RCX: 00007f9fdc58e169
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9fdc7b5fa8
RBP: 00007f9fdc7b5fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9fdc7b5fac
R13: 0000000000000000 R14: 00007ffcd6976a30 R15: 00007ffcd6976b18
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_clear_inode fs/ocfs2/inode.c:1222 [inline]
RIP: 0010:ocfs2_evict_inode+0x30f5/0x47c0 fs/ocfs2/inode.c:1234
Code: 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 e7 e8 9d a8 65 fe 4c 01 fb 4d 8b 24 24 49 83 c4 08 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 7c a8 65 fe 49 8b 3c 24 49 81 c6
RSP: 0018:ffffc9000d88eee0 EFLAGS: 00010212
RAX: 0000000000000001 RBX: fffff52001b11df0 RCX: ffff888027e6bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d88f630 R08: ffffffff83c7ec8a R09: 1ffff1100b0309a6
R10: dffffc0000000000 R11: ffffed100b0309a7 R12: 0000000000000008
R13: 1ffff1100b0309d4 R14: ffff888058184fb8 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff888124f93000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30614ff8 CR3: 00000000358c6000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 4c 89 e0 mov %r12,%rax
5: 48 c1 e8 03 shr $0x3,%rax
9: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1)
e: 74 08 je 0x18
10: 4c 89 e7 mov %r12,%rdi
13: e8 9d a8 65 fe call 0xfe65a8b5
18: 4c 01 fb add %r15,%rbx
1b: 4d 8b 24 24 mov (%r12),%r12
1f: 49 83 c4 08 add $0x8,%r12
23: 4c 89 e0 mov %r12,%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 e7 mov %r12,%rdi
34: e8 7c a8 65 fe call 0xfe65a8b5
39: 49 8b 3c 24 mov (%r12),%rdi
3d: 49 rex.WB
3e: 81 .byte 0x81
3f: c6 .byte 0xc6