syzbot


WARNING in ni_rename

Status: fixed on 2025/11/26 13:30
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+f021aae8866d100f75d5@syzkaller.appspotmail.com
Fix commit: 978aac54e93e fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist
First crash: 138d, last: 66d
Fix bisection: fixed by (bisect log) :
commit 978aac54e93ea35aab20b32ae393d3d33964e7ae
Author: Moon Hee Lee <moonhee.lee.ca@gmail.com>
Date: Tue Jul 22 17:40:16 2025 +0000

  fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist

  
Bug presence (2)
Date Name Commit Repro Result
2025/08/16 upstream (ToT) dfd4b508c8c6 C [report] WARNING in ni_rename
2025/11/15 upstream (ToT) 7a0892d2836e C Didn't crash
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in ni_rename (2) ntfs3 -1 C done 73 2d20h 62d 0/29 upstream: reported C repro on 2025/10/30 22:35
linux-6.6 WARNING in ni_rename (2) origin:upstream -1 C 13 12h04m 32d 0/2 upstream: reported C repro on 2025/11/29 07:50
upstream WARNING in ni_rename ntfs3 -1 C error 233 65d 185d 29/29 fixed on 2025/10/29 21:02

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS sector size (4096) and media sector size (512).
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5914 at fs/ntfs3/frecord.c:3085 ni_rename+0xea/0x100 fs/ntfs3/frecord.c:3084
Modules linked in:
CPU: 0 PID: 5914 Comm: syz.2.15 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:ni_rename+0xea/0x100 fs/ntfs3/frecord.c:3084
Code: 93 bf fe 65 48 8b 04 25 28 00 00 00 48 3b 44 24 10 75 1b 44 89 e0 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 c6 93 bf fe <0f> 0b eb cb e8 ed c0 a8 07 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00
RSP: 0018:ffffc90004dafad8 EFLAGS: 00010287
RAX: ffffffff82c5fbba RBX: 00000000fffffffe RCX: 0000000000080000
RDX: ffffc9000cfba000 RSI: 000000000000a9bf RDI: 000000000000a9c0
RBP: 00000000fffffffe R08: ffffffff90da860f R09: 1ffffffff21b50c1
R10: dffffc0000000000 R11: fffffbfff21b50c2 R12: 0000000000000000
R13: ffff88802636e600 R14: ffff88805d356740 R15: ffff88805d355880
FS:  00007fbe037066c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000002d460000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 ntfs_rename+0x6dc/0xb30 fs/ntfs3/namei.c:333
 vfs_rename+0xb96/0xec0 fs/namei.c:4880
 do_renameat2+0x8a1/0xc70 fs/namei.c:5033
 __do_sys_renameat2 fs/namei.c:5066 [inline]
 __se_sys_renameat2 fs/namei.c:5063 [inline]
 __x64_sys_renameat2+0xd2/0xe0 fs/namei.c:5063
 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:0x7fbe0278efc9
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:00007fbe03706038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007fbe029e5fa0 RCX: 00007fbe0278efc9
RDX: ffffffffffffff9c RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007fbe02811f91 R08: 0000000000000000 R09: 0000000000000000
R10: 00002000000004c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbe029e6038 R14: 00007fbe029e5fa0 R15: 00007ffc3d1f2998
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/27 01:21 linux-6.6.y 4a243110dc88 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/10/27 01:19 linux-6.6.y 4a243110dc88 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/10/11 15:59 linux-6.6.y e617101e5626 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/10/11 14:06 linux-6.6.y e617101e5626 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/30 10:43 linux-6.6.y 147338df3487 86341da6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/30 10:43 linux-6.6.y 147338df3487 86341da6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/11 05:44 linux-6.6.y fe9731e10004 fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/11 05:44 linux-6.6.y fe9731e10004 fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/08 13:07 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/08 13:07 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/01 19:28 linux-6.6.y cc1a1c5b404a 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/09/01 19:27 linux-6.6.y cc1a1c5b404a 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/08/16 01:27 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan WARNING in ni_rename
2025/08/15 17:06 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
2025/08/15 14:39 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ni_rename
* Struck through repros no longer work on HEAD.