(syz.4.1597,10539,0):ocfs2_inode_is_valid_to_delete:872 ERROR: Skipping delete of system file 22
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: 10539 Comm: syz.4.1597 Not tainted 6.1.129-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
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:3515
ocfs2_simple_drop_lockres fs/ocfs2/dlmglue.c:3571 [inline]
ocfs2_drop_osb_locks fs/ocfs2/dlmglue.c:3579 [inline]
ocfs2_dlm_shutdown+0x36/0x230 fs/ocfs2/dlmglue.c:3389
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:0x7ff09a78d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff09b562038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007ff09a9a6080 RCX: 00007ff09a78d169
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00004000000002c0
RBP: 00007ff09a80e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007ff09a9a6080 R15: 00007fffdb731178
ocfs2: Unmounting device (7,4) 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: 10539 Comm: syz.4.1597 Not tainted 6.1.129-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
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 4a 24 76 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 21 24 76 fe 49 8b 3e 48 8b 34 24 48
RSP: 0018:ffffc90003367300 EFLAGS: 00010202
RAX: 0000000000000001 RBX: fffff5200066ce74 RCX: dffffc0000000000
RDX: ffffc90011e56000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90003367a50 R08: ffffffff836bca1e R09: ffffed100a89444f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880544a23e0
R13: 1ffff1100a89447c R14: 0000000000000008 R15: ffff8880544a1c80
FS: 00007ff09b5626c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31909ff8 CR3: 00000000732af000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
evict+0x529/0x930 fs/inode.c:705
__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:2504
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:0x7ff09a78d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff09b562038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007ff09a9a6080 RCX: 00007ff09a78d169
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00004000000002c0
RBP: 00007ff09a80e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007ff09a9a6080 R15: 00007fffdb731178
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 4a 24 76 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 21 24 76 fe 49 8b 3e 48 8b 34 24 48
RSP: 0018:ffffc90003367300 EFLAGS: 00010202
RAX: 0000000000000001 RBX: fffff5200066ce74 RCX: dffffc0000000000
RDX: ffffc90011e56000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90003367a50 R08: ffffffff836bca1e R09: ffffed100a89444f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880544a23e0
R13: 1ffff1100a89447c R14: 0000000000000008 R15: ffff8880544a1c80
FS: 00007ff09b5626c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31909ff8 CR3: 00000000732af000 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 4a 24 76 fe call 0xfe762459
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 21 24 76 fe call 0xfe762459
38: 49 8b 3e mov (%r14),%rdi
3b: 48 8b 34 24 mov (%rsp),%rsi
3f: 48 rex.W