syzbot


INFO: trying to register non-static key in ntfs_set_size

Status: upstream: reported C repro on 2025/12/16 16:35
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+72512dec2c8a45e1d53e@syzkaller.appspotmail.com
First crash: 1d06h, last: 23h15m
Bug presence (2)
Date Name Commit Repro Result
2025/12/16 linux-5.15.y (ToT) 68efe5a6c16a C [report] INFO: trying to register non-static key in ntfs_set_size
2025/12/16 upstream (ToT) 40fbbd64bba6 C Didn't crash
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 INFO: trying to register non-static key in ntfs_set_size origin:lts-only -1 C 2 1h02m 19h22m 0/2 upstream: reported C repro on 2025/12/17 03:14
linux-6.1 INFO: trying to register non-static key in ntfs_set_size -1 C 4 1d08h 1d10h 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 2d17h 93d 25/29 upstream: reported C repro on 2025/09/15 18:17

Sample crash report:
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: 4446 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+0x168/0x230 lib/dump_stack.c:106
 assign_lock_key+0x1e0/0x1f0 kernel/locking/lockdep.c:937
 register_lock_class+0x20e/0x880 kernel/locking/lockdep.c:1250
 __lock_acquire+0x160/0x7c60 kernel/locking/lockdep.c:4891
 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623
 down_write+0x38/0x60 kernel/locking/rwsem.c:1551
 ntfs_set_size+0x13c/0x1f0 fs/ntfs3/inode.c:845
 ntfs_extend+0x15c/0x510 fs/ntfs3/file.c:434
 ntfs3_setattr+0x2fa/0xc00 fs/ntfs3/file.c:774
 notify_change+0xbcd/0xee0 fs/attr.c:505
 do_truncate+0x197/0x220 fs/open.c:65
 vfs_truncate+0x262/0x2f0 fs/open.c:111
 do_sys_truncate+0xdc/0x190 fs/open.c:134
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f55f7ad7749
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:00007ffc2d5896c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f55f7d2dfa0 RCX: 00007f55f7ad7749
RDX: 0000000000000000 RSI: 0000000000000f62 RDI: 0000200000000080
RBP: 00007f55f7b5bf91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f55f7d2dfa0 R14: 00007f55f7d2dfa0 R15: 0000000000000002
 </TASK>
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff8880766abb80, curr 0xffff8880766abb80, list not empty
WARNING: CPU: 0 PID: 4446 at kernel/locking/rwsem.c:1344 __up_write kernel/locking/rwsem.c:1344 [inline]
WARNING: CPU: 0 PID: 4446 at kernel/locking/rwsem.c:1344 up_write+0x2d6/0x420 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 0 PID: 4446 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:1344 [inline]
RIP: 0010:up_write+0x2d6/0x420 kernel/locking/rwsem.c:1604
Code: 48 c7 c7 60 0f 0b 8a 48 c7 c6 80 10 0b 8a 48 8b 54 24 08 48 8b 0c 24 4c 8b 44 24 10 4d 89 e1 41 52 e8 8e d1 3b 08 48 83 c4 08 <0f> 0b e9 9d fd ff ff 0f 0b e9 86 fe ff ff c6 05 52 39 fa 0b 01 48
RSP: 0018:ffffc900033efa80 EFLAGS: 00010292
RAX: b4f9e3d9b4c3ad00 RBX: ffff88805eee5260 RCX: ffff8880766abb80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed10172067b0
R10: ffffed10172067b0 R11: 1ffff110172067af R12: ffff8880766abb80
R13: ffff88805eee52c8 R14: 1ffff1100bddca59 R15: ffff88805eee52b8
FS:  0000555586e45500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055875be52950 CR3: 0000000076554000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_set_size+0x16e/0x1f0 fs/ntfs3/inode.c:850
 ntfs_extend+0x15c/0x510 fs/ntfs3/file.c:434
 ntfs3_setattr+0x2fa/0xc00 fs/ntfs3/file.c:774
 notify_change+0xbcd/0xee0 fs/attr.c:505
 do_truncate+0x197/0x220 fs/open.c:65
 vfs_truncate+0x262/0x2f0 fs/open.c:111
 do_sys_truncate+0xdc/0x190 fs/open.c:134
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f55f7ad7749
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:00007ffc2d5896c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f55f7d2dfa0 RCX: 00007f55f7ad7749
RDX: 0000000000000000 RSI: 0000000000000f62 RDI: 0000200000000080
RBP: 00007f55f7b5bf91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f55f7d2dfa0 R14: 00007f55f7d2dfa0 R15: 0000000000000002
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/16 19:00 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan INFO: trying to register non-static key in ntfs_set_size
2025/12/16 18:13 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan INFO: trying to register non-static key in ntfs_set_size
2025/12/16 17:24 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan INFO: trying to register non-static key in ntfs_set_size
2025/12/16 16:35 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: trying to register non-static key in ntfs_set_size
* Struck through repros no longer work on HEAD.