syzbot


INFO: trying to register non-static key in ocfs2_dlm_shutdown

Status: upstream: reported C repro on 2024/10/12 01:18
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+cf10996a1bb1b4cbfa63@syzkaller.appspotmail.com
First crash: 196d, last: 46d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2025/01/07 upstream (ToT) fbfd64d25c7a C [report] INFO: trying to register non-static key in ocfs2_dlm_shutdown
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: trying to register non-static key in ocfs2_dlm_shutdown origin:upstream missing-backport C inconclusive 150 1d00h 224d 0/3 upstream: reported C repro on 2024/09/14 00:27
upstream INFO: trying to register non-static key in ocfs2_dlm_shutdown ocfs2 C done 632 2h18m 220d 0/28 upstream: reported C repro on 2024/09/17 13:24

Sample crash report:
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: 4295 Comm: syz-executor544 Not tainted 6.1.123-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call trace:
 dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 assign_lock_key+0x274/0x2a8 kernel/locking/lockdep.c:974
 register_lock_class+0x148/0x6a8 kernel/locking/lockdep.c:1287
 __lock_acquire+0x184/0x7680 kernel/locking/lockdep.c:4928
 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162
 ocfs2_mark_lockres_freeing+0x164/0x788 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+0x44/0x230 fs/ocfs2/dlmglue.c:3389
 ocfs2_dismount_volume+0x404/0x99c fs/ocfs2/super.c:1920
 ocfs2_put_super+0x110/0x3e8 fs/ocfs2/super.c:1609
 generic_shutdown_super+0x130/0x328 fs/super.c:501
 kill_block_super+0x70/0xdc fs/super.c:1470
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xf0/0x110 fs/super.c:363
 cleanup_mnt+0x394/0x41c fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x240/0x2f0 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2080/0x2cb8 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
ocfs2: Unmounting device (7,4) on (node local)
Unable to handle kernel paging request at virtual address dfff800000000001
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
[dfff800000000001] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4295 Comm: syz-executor544 Not tainted 6.1.123-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_clear_inode fs/ocfs2/inode.c:1208 [inline]
pc : ocfs2_evict_inode+0xd7c/0x497c fs/ocfs2/inode.c:1220
lr : ocfs2_clear_inode fs/ocfs2/inode.c:1199 [inline]
lr : ocfs2_evict_inode+0xd08/0x497c fs/ocfs2/inode.c:1220
sp : ffff800021136de0
x29: ffff800021137500 x28: ffff700004226dd0 x27: 1fffe0001c3f866c
x26: ffff0000e1fc3360 x25: 1fffe0001c3f8670 x24: ffff800021136e80
x23: ffff0000e1fc2ac0 x22: ffff0000d9d1c000 x21: dfff800000000000
x20: ffff0000d9d1c290 x19: 0000000000000008 x18: 1fffe0003679bf76
x17: ffff800015a8d000 x16: ffff80001232d384 x15: ffff800008ad8710
x14: ffff800008a4c04c x13: ffff800008a4bee4 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff0000e1fc3338
x8 : 0000000000000001 x7 : 0000000000000000 x6 : ffff800009f6ae00
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000082f9d58
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 ocfs2_clear_inode fs/ocfs2/inode.c:1208 [inline]
 ocfs2_evict_inode+0xd7c/0x497c fs/ocfs2/inode.c:1220
 evict+0x418/0x894 fs/inode.c:705
 iput_final fs/inode.c:1834 [inline]
 iput+0x7c0/0x8a4 fs/inode.c:1860
 __ocfs2_free_slot_info fs/ocfs2/slot_map.c:307 [inline]
 ocfs2_free_slot_info+0x80/0x20c fs/ocfs2/slot_map.c:443
 ocfs2_delete_osb+0x64/0x150 fs/ocfs2/super.c:2504
 ocfs2_dismount_volume+0x4e0/0x99c fs/ocfs2/super.c:1938
 ocfs2_put_super+0x110/0x3e8 fs/ocfs2/super.c:1609
 generic_shutdown_super+0x130/0x328 fs/super.c:501
 kill_block_super+0x70/0xdc fs/super.c:1470
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xf0/0x110 fs/super.c:363
 cleanup_mnt+0x394/0x41c fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x240/0x2f0 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2080/0x2cb8 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 97a82975 f9400288 91002113 d343fe68 (38756908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	97a82975 	bl	0xfffffffffea0a5d4
   4:	f9400288 	ldr	x8, [x20]
   8:	91002113 	add	x19, x8, #0x8
   c:	d343fe68 	lsr	x8, x19, #3
* 10:	38756908 	ldrb	w8, [x8, x21] <-- trapping instruction

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/06 06:20 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/10 19:04 linux-6.1.y 6ae7ac5c4251 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/08 00:15 linux-6.1.y 6ae7ac5c4251 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/08 00:12 linux-6.1.y 6ae7ac5c4251 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/07 21:52 linux-6.1.y 6ae7ac5c4251 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/06 02:55 linux-6.1.y 3a8358583626 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/06 02:54 linux-6.1.y 3a8358583626 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/06 02:53 linux-6.1.y 3a8358583626 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/03/01 20:53 linux-6.1.y 3a8358583626 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/26 12:37 linux-6.1.y 3a8358583626 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/25 01:25 linux-6.1.y 3a8358583626 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/22 16:12 linux-6.1.y 3a8358583626 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/03 09:48 linux-6.1.y 0cbb5f65e52f 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/03 09:46 linux-6.1.y 0cbb5f65e52f 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/01/13 15:00 linux-6.1.y c63962be84ef 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/01/09 02:31 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/01/01 09:41 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/01/01 09:22 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/12/08 15:38 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/12/02 15:57 linux-6.1.y e4d90d63d385 b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/30 04:53 linux-6.1.y e4d90d63d385 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/27 11:54 linux-6.1.y e4d90d63d385 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/27 11:54 linux-6.1.y e4d90d63d385 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/26 03:17 linux-6.1.y e4d90d63d385 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/25 23:51 linux-6.1.y e4d90d63d385 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/23 01:48 linux-6.1.y e4d90d63d385 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/23 01:48 linux-6.1.y e4d90d63d385 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/13 08:34 linux-6.1.y d7039b844a1c 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/05 05:36 linux-6.1.y 7c15117f9468 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/05 05:36 linux-6.1.y 7c15117f9468 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/10/15 13:02 linux-6.1.y aa4cd140bba5 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/10/12 01:17 linux-6.1.y aa4cd140bba5 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/02/09 05:16 linux-6.1.y 0cbb5f65e52f ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: trying to register non-static key in ocfs2_dlm_shutdown
2025/01/06 04:10 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: trying to register non-static key in ocfs2_dlm_shutdown
2024/11/11 08:55 linux-6.1.y d7039b844a1c 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: trying to register non-static key in ocfs2_dlm_shutdown
* Struck through repros no longer work on HEAD.