syzbot


WARNING in wnd_add_free_ext (4)

Status: upstream: reported on 2025/06/19 08:12
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+323f07d372f692a127b3@syzkaller.appspotmail.com
First crash: 95d, last: 10d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in wnd_add_free_ext (4) 0 (1) 2025/06/19 08:12
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in wnd_add_free_ext (3) ntfs3 -1 C done 19 164d 400d 28/29 fixed on 2025/05/06 15:33
linux-6.1 WARNING in wnd_add_free_ext origin:upstream missing-backport -1 C inconclusive 15 336d 766d 0/3 upstream: reported C repro on 2023/08/15 03:08
linux-5.15 WARNING in wnd_add_free_ext missing-backport origin:upstream -1 C error 2 40d 757d 0/3 upstream: reported C repro on 2023/08/23 21:49
upstream WARNING in wnd_add_free_ext (2) ntfs3 -1 C done done 16 701d 806d 0/29 auto-obsoleted due to no activity on 2024/01/24 12:23
upstream WARNING in wnd_add_free_ext ntfs3 -1 2 972d 996d 0/29 auto-obsoleted due to no activity on 2023/05/20 17:24

Sample crash report:
loop0: detected capacity change from 0 to 4096
loop0: detected capacity change from 4096 to 3839
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5359 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 fail_dump lib/fault-inject.c:73 [inline]
 should_fail_ex+0x414/0x560 lib/fault-inject.c:174
 should_failslab+0xa8/0x100 mm/failslab.c:46
 slab_pre_alloc_hook mm/slub.c:4144 [inline]
 slab_alloc_node mm/slub.c:4220 [inline]
 kmem_cache_alloc_noprof+0x73/0x3c0 mm/slub.c:4247
 wnd_add_free_ext+0x85e/0xdb0 fs/ntfs3/bitmap.c:338
 wnd_set_free+0x4bf/0x5c0 fs/ntfs3/bitmap.c:743
 mark_as_free_ex+0x1c8/0x390 fs/ntfs3/fsntfs.c:2495
 run_deallocate_ex+0x187/0x2f0 fs/ntfs3/attrib.c:122
 attr_punch_hole+0xa84/0x1100 fs/ntfs3/attrib.c:2267
 ntfs_fallocate+0xa53/0x10b0 fs/ntfs3/file.c:592
 vfs_fallocate+0x669/0x7e0 fs/open.c:342
 ksys_fallocate fs/open.c:366 [inline]
 __do_sys_fallocate fs/open.c:371 [inline]
 __se_sys_fallocate fs/open.c:369 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:369
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe88398ebe9
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:00007fe884793038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fe883bc5fa0 RCX: 00007fe88398ebe9
RDX: 000000000000001f RSI: 0000000000000003 RDI: 0000000000000007
RBP: 00007fe884793090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000002
R13: 00007fe883bc6038 R14: 00007fe883bc5fa0 R15: 00007ffe05096778
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5359 at fs/ntfs3/bitmap.c:217 rb_insert_start fs/ntfs3/bitmap.c:217 [inline]
WARNING: CPU: 0 PID: 5359 at fs/ntfs3/bitmap.c:217 wnd_add_free_ext+0xafd/0xdb0 fs/ntfs3/bitmap.c:352
Modules linked in:
CPU: 0 UID: 0 PID: 5359 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:rb_insert_start fs/ntfs3/bitmap.c:217 [inline]
RIP: 0010:wnd_add_free_ext+0xafd/0xdb0 fs/ntfs3/bitmap.c:352
Code: 00 00 fc ff df 42 80 3c 28 00 74 08 4c 89 f7 e8 d9 d5 1e ff 49 89 1e 48 89 df 4c 89 e6 e8 0b b3 71 08 eb 18 e8 b4 e4 b9 fe 90 <0f> 0b 90 49 bd 00 00 00 00 00 fc ff df 4c 8b 7c 24 10 48 8b 44 24
RSP: 0018:ffffc9000d5177f0 EFLAGS: 00010293
RAX: ffffffff8305d9dc RBX: ffff888044122360 RCX: ffff888033008000
RDX: 0000000000000000 RSI: 000000000000029f RDI: 000000000000029f
RBP: 0000000000000560 R08: ffff88804411f063 R09: 1ffff11008823e0c
R10: dffffc0000000000 R11: ffffed1008823e0d R12: ffff8880424602d8
R13: ffff888044122300 R14: 000000000000029f R15: 000000000000029f
FS:  00007fe8847936c0(0000) GS:ffff88808d20c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f297f433000 CR3: 0000000040233000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 wnd_zone_set+0xb2/0x160 fs/ntfs3/bitmap.c:1393
 mark_as_free_ex+0x308/0x390 fs/ntfs3/fsntfs.c:-1
 run_deallocate_ex+0x187/0x2f0 fs/ntfs3/attrib.c:122
 attr_punch_hole+0xa84/0x1100 fs/ntfs3/attrib.c:2267
 ntfs_fallocate+0xa53/0x10b0 fs/ntfs3/file.c:592
 vfs_fallocate+0x669/0x7e0 fs/open.c:342
 ksys_fallocate fs/open.c:366 [inline]
 __do_sys_fallocate fs/open.c:371 [inline]
 __se_sys_fallocate fs/open.c:369 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:369
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe88398ebe9
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:00007fe884793038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fe883bc5fa0 RCX: 00007fe88398ebe9
RDX: 000000000000001f RSI: 0000000000000003 RDI: 0000000000000007
RBP: 00007fe884793090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000002
R13: 00007fe883bc6038 R14: 00007fe883bc5fa0 R15: 00007ffe05096778
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/09 01:40 upstream f777d1112ee5 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/08/30 03:11 upstream fb679c832b64 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/08/14 04:05 upstream dfc0f6373094 22ec1469 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/07/22 04:35 upstream 89be9a83ccf1 1555463b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/06/21 16:09 upstream 3f75bfff44be d6cdfb8a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/06/18 04:20 upstream 4663747812d1 e77fae15 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
2025/06/15 08:10 upstream 8c6bc74c7f89 5f4b362d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
* Struck through repros no longer work on HEAD.