syzbot


INFO: trying to register non-static key in ntfs_set_size

Status: upstream: reported C repro on 2025/12/17 03:14
Reported-by: syzbot+1a5c47cea0dcce729502@syzkaller.appspotmail.com
First crash: 4h43m, last: 3h29m
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 8h36m 15h22m 0/3 upstream: reported C repro on 2025/12/16 16:35
linux-6.1 INFO: trying to register non-static key in ntfs_set_size -1 C 4 17h41m 20h03m 0/3 upstream: reported C repro on 2025/12/16 11:54
upstream INFO: trying to register non-static key in ntfs_set_size ntfs3 -1 C done 235 2d02h 92d 23/29 upstream: reported C repro on 2025/09/15 18:17

Sample crash report:
syz.0.17[5921]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
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: 5921 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 assign_lock_key+0x1f9/0x230 kernel/locking/lockdep.c:976
 register_lock_class+0x212/0x890 kernel/locking/lockdep.c:1289
 __lock_acquire+0x17a/0x7c80 kernel/locking/lockdep.c:5014
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 down_write+0x97/0x1f0 kernel/locking/rwsem.c:1573
 ntfs_set_size+0x140/0x200 fs/ntfs3/inode.c:848
 ntfs_extend+0x157/0x4d0 fs/ntfs3/file.c:335
 ntfs3_setattr+0x2ad/0xb60 fs/ntfs3/file.c:708
 notify_change+0xb0d/0xe10 fs/attr.c:499
 do_truncate+0x19b/0x220 fs/open.c:66
 vfs_truncate+0x266/0x300 fs/open.c:112
 do_sys_truncate+0xe0/0x1a0 fs/open.c:135
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f246c98f749
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:00007ffc4dd76e98 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f246cbe5fa0 RCX: 00007f246c98f749
RDX: 0000000000000000 RSI: 0000000000001bfc RDI: 0000200000000040
RBP: 00007f246ca13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f246cbe5fa0 R14: 00007f246cbe5fa0 R15: 0000000000000002
 </TASK>
ntfs3: loop0: ino=19, "file1" attr_set_size
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff8880765c5a00, curr 0xffff8880765c5a00, list not empty
WARNING: CPU: 1 PID: 5921 at kernel/locking/rwsem.c:1364 __up_write kernel/locking/rwsem.c:1364 [inline]
WARNING: CPU: 1 PID: 5921 at kernel/locking/rwsem.c:1364 up_write+0x2c8/0x410 kernel/locking/rwsem.c:1626
Modules linked in:
CPU: 1 PID: 5921 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__up_write kernel/locking/rwsem.c:1364 [inline]
RIP: 0010:up_write+0x2c8/0x410 kernel/locking/rwsem.c:1626
Code: 48 c7 c7 80 b0 aa 8a 48 c7 c6 20 b2 aa 8a 48 8b 54 24 08 48 8b 0c 24 4c 8b 44 24 10 4d 89 e1 41 52 e8 2c a1 e9 ff 48 83 c4 08 <0f> 0b e9 af fd ff ff 0f 0b e9 98 fe ff ff c6 05 61 5a ce 0c 01 48
RSP: 0018:ffffc900032c7a88 EFLAGS: 00010286
RAX: 256f409c2579af00 RBX: ffff888072bfad80 RCX: ffff8880765c5a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: dffffc0000000000 R08: ffffc900032c7787 R09: 1ffff92000658ef0
R10: dffffc0000000000 R11: fffff52000658ef1 R12: ffff8880765c5a00
R13: ffff888072bfade8 R14: 1ffff1100e57f5bd R15: ffff888072bfadd8
FS:  0000555574e80500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33d63fff CR3: 00000000780be000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ntfs_set_size+0x172/0x200 fs/ntfs3/inode.c:853
 ntfs_extend+0x157/0x4d0 fs/ntfs3/file.c:335
 ntfs3_setattr+0x2ad/0xb60 fs/ntfs3/file.c:708
 notify_change+0xb0d/0xe10 fs/attr.c:499
 do_truncate+0x19b/0x220 fs/open.c:66
 vfs_truncate+0x266/0x300 fs/open.c:112
 do_sys_truncate+0xe0/0x1a0 fs/open.c:135
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f246c98f749
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:00007ffc4dd76e98 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f246cbe5fa0 RCX: 00007f246c98f749
RDX: 0000000000000000 RSI: 0000000000001bfc RDI: 0000200000000040
RBP: 00007f246ca13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f246cbe5fa0 R14: 00007f246cbe5fa0 R15: 0000000000000002
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/17 04:28 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan INFO: trying to register non-static key in ntfs_set_size
2025/12/17 03:14 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in ntfs_set_size
* Struck through repros no longer work on HEAD.