syzbot


INFO: trying to register non-static key in ntfs_set_size

Status: upstream: reported C repro on 2025/12/16 11:54
Reported-by: syzbot+e3c6a20fde2a56b180df@syzkaller.appspotmail.com
First crash: 1d02h, last: 1d00h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: trying to register non-static key in ntfs_set_size origin:lts-only -1 C 4 15h07m 21h53m 0/3 upstream: reported C repro on 2025/12/16 16:35
linux-6.6 INFO: trying to register non-static key in ntfs_set_size -1 C 2 10h00m 11h14m 0/2 upstream: reported C repro on 2025/12/17 03:14
upstream INFO: trying to register non-static key in ntfs_set_size ntfs3 -1 C done 235 2d08h 92d 25/29 upstream: reported C repro on 2025/09/15 18:17

Sample crash report:
=======================================================
ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512)
ntfs3: loop0: Failed to load $Extend.
ntfs3: loop0: failed to convert "076c" to iso8859-1
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: 4494 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025
Call trace:
 dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 __dump_stack+0x30/0x40 lib/dump_stack.c:88
 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106
 dump_stack+0x1c/0x5c lib/dump_stack.c:113
 assign_lock_key+0x224/0x258 kernel/locking/lockdep.c:974
 register_lock_class+0x1ac/0x694 kernel/locking/lockdep.c:1287
 __lock_acquire+0x150/0x6544 kernel/locking/lockdep.c:4928
 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662
 down_write+0x5c/0x88 kernel/locking/rwsem.c:1573
 ntfs_set_size+0x130/0x200 fs/ntfs3/inode.c:845
 ntfs_extend+0x130/0x444 fs/ntfs3/file.c:353
 ntfs3_setattr+0x248/0x924 fs/ntfs3/file.c:712
 notify_change+0xb0c/0xdcc fs/attr.c:499
 do_truncate+0x178/0x1f0 fs/open.c:65
 vfs_truncate+0x23c/0x2b0 fs/open.c:111
 do_sys_truncate+0xe8/0x1b0 fs/open.c:134
 __do_sys_truncate fs/open.c:146 [inline]
 __se_sys_truncate fs/open.c:144 [inline]
 __arm64_sys_truncate+0x5c/0x70 fs/open.c:144
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
ntfs3: loop0: ino=19, "file1" attr_set_size
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000d097d340, curr 0xffff0000d097d340, list not empty
WARNING: CPU: 1 PID: 4494 at kernel/locking/rwsem.c:1366 __up_write kernel/locking/rwsem.c:1366 [inline]
WARNING: CPU: 1 PID: 4494 at kernel/locking/rwsem.c:1366 up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626
Modules linked in:
CPU: 1 PID: 4494 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025
pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : __up_write kernel/locking/rwsem.c:1366 [inline]
pc : up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626
lr : __up_write kernel/locking/rwsem.c:1366 [inline]
lr : up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626
sp : ffff800020d97830
x29: ffff800020d97840 x28: 1fffe0001caf0d3c x27: dfff800000000000
x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000d097d340
x23: ffff0000d097d340 x22: 0000000000000000 x21: ffff0000e57868d8
x20: ffff0000e57868e8 x19: ffff0000e5786880 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800008042d90 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100
x11: ff008000081924a8 x10: 0000000000000000 x9 : 72069c8b6fa35a00
x8 : 72069c8b6fa35a00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800020d972b8 x4 : ffff800015134e00 x3 : ffff800008313428
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 __up_write kernel/locking/rwsem.c:1366 [inline]
 up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626
 ntfs_set_size+0x164/0x200 fs/ntfs3/inode.c:850
 ntfs_extend+0x130/0x444 fs/ntfs3/file.c:353
 ntfs3_setattr+0x248/0x924 fs/ntfs3/file.c:712
 notify_change+0xb0c/0xdcc fs/attr.c:499
 do_truncate+0x178/0x1f0 fs/open.c:65
 vfs_truncate+0x23c/0x2b0 fs/open.c:111
 do_sys_truncate+0xe8/0x1b0 fs/open.c:134
 __do_sys_truncate fs/open.c:146 [inline]
 __se_sys_truncate fs/open.c:144 [inline]
 __arm64_sys_truncate+0x5c/0x70 fs/open.c:144
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 16153
hardirqs last  enabled at (16153): [<ffff8000083c0b24>] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline]
hardirqs last  enabled at (16153): [<ffff8000083c0b24>] ktime_get_coarse_real_ts64+0x114/0x244 kernel/time/timekeeping.c:2261
hardirqs last disabled at (16152): [<ffff8000083c0aac>] seqcount_lockdep_reader_access include/linux/seqlock.h:101 [inline]
hardirqs last disabled at (16152): [<ffff8000083c0aac>] ktime_get_coarse_real_ts64+0x9c/0x244 kernel/time/timekeeping.c:2261
softirqs last  enabled at (16064): [<ffff8000080309e0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (16062): [<ffff8000080309ac>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/16 14:15 linux-6.1.y 50cbba13faa2 d6526ea3 .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 ntfs_set_size
2025/12/16 13:28 linux-6.1.y 50cbba13faa2 d6526ea3 .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 ntfs_set_size
2025/12/16 12:41 linux-6.1.y 50cbba13faa2 d6526ea3 .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 ntfs_set_size
2025/12/16 11:53 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: trying to register non-static key in ntfs_set_size
* Struck through repros no longer work on HEAD.