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 UID: 0 PID: 5330 Comm: syz-executor130 Not tainted 6.14.0-syzkaller-13189-ge48e99b6edf4 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
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+0x139/0x2d0 fs/super.c:642
kill_block_super+0x44/0x90 fs/super.c:1710
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435
task_work_run+0x251/0x310 kernel/task_work.c:227
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x13f/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:0x7fcbe8bd2647
Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff63061268 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fcbe8bd2647
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff63061320
RBP: 00007fff63061320 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000202 R12: 00007fff63062390
R13: 000055558f47e6c0 R14: 431bde82d7b634db R15: 00007fff630623b0
ocfs2: Unmounting device (7,0) 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: 0 UID: 0 PID: 5330 Comm: syz-executor130 Not tainted 6.14.0-syzkaller-13189-ge48e99b6edf4 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
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 fd e3 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 dc e3 65 fe 49 8b 3c 24 49 81 c6
RSP: 0018:ffffc9000d36f320 EFLAGS: 00010202
RAX: 0000000000000001 RBX: fffff52001a6de78 RCX: ffff8880006dc880
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d36fa70 R08: ffffffff83c79c5a R09: 1ffff11009202616
R10: dffffc0000000000 R11: ffffed1009202617 R12: 0000000000000008
R13: 1ffff11009202644 R14: ffff888049013338 R15: dffffc0000000000
FS: 000055558f47d380(0000) GS:ffff88808c597000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff63060ff8 CR3: 0000000043b78000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
evict+0x4f9/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+0x139/0x2d0 fs/super.c:642
kill_block_super+0x44/0x90 fs/super.c:1710
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435
task_work_run+0x251/0x310 kernel/task_work.c:227
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x13f/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:0x7fcbe8bd2647
Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff63061268 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fcbe8bd2647
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff63061320
RBP: 00007fff63061320 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000202 R12: 00007fff63062390
R13: 000055558f47e6c0 R14: 431bde82d7b634db R15: 00007fff630623b0
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 fd e3 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 dc e3 65 fe 49 8b 3c 24 49 81 c6
RSP: 0018:ffffc9000d36f320 EFLAGS: 00010202
RAX: 0000000000000001 RBX: fffff52001a6de78 RCX: ffff8880006dc880
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d36fa70 R08: ffffffff83c79c5a R09: 1ffff11009202616
R10: dffffc0000000000 R11: ffffed1009202617 R12: 0000000000000008
R13: 1ffff11009202644 R14: ffff888049013338 R15: dffffc0000000000
FS: 000055558f47d380(0000) GS:ffff88808c597000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff63060ff8 CR3: 0000000043b78000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 fd e3 65 fe call 0xfe65e415
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 dc e3 65 fe call 0xfe65e415
39: 49 8b 3c 24 mov (%r12),%rdi
3d: 49 rex.WB
3e: 81 .byte 0x81
3f: c6 .byte 0xc6