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: 176d, last: 21d
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 244d 480d 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 416d 846d 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 49d 837d 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 781d 887d 0/29 auto-obsoleted due to no activity on 2024/01/24 12:23
upstream WARNING in wnd_add_free_ext ntfs3 -1 2 1053d 1077d 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 4095
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5319 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:4931 [inline]
 slab_alloc_node mm/slub.c:5264 [inline]
 kmem_cache_alloc_noprof+0x74/0x6e0 mm/slub.c:5295
 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:620
 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/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa40658f6c9
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:00007fa4074f7038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fa4067e5fa0 RCX: 00007fa40658f6c9
RDX: 000000000000001f RSI: 0000000000000003 RDI: 0000000000000007
RBP: 00007fa4074f7090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000002
R13: 00007fa4067e6038 R14: 00007fa4067e5fa0 R15: 00007ffef0bce738
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5319 at fs/ntfs3/bitmap.c:217 rb_insert_start fs/ntfs3/bitmap.c:217 [inline]
WARNING: CPU: 0 PID: 5319 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: 5319 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 49 51 1c ff 49 89 1e 48 89 df 4c 89 e6 e8 3b af 38 08 eb 18 e8 74 04 b5 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:ffffc9000f57f7d0 EFLAGS: 00010293
RAX: ffffffff830b0f0c RBX: ffff8880126ad420 RCX: ffff888000b10000
RDX: 0000000000000000 RSI: 0000000000000503 RDI: 0000000000000503
RBP: ffff8880126ad360 R08: ffff88801270bd13 R09: 1ffff110024e17a2
R10: dffffc0000000000 R11: ffffed10024e17a3 R12: ffff888035f0e2d8
R13: ffff8880126ad360 R14: 0000000000000503 R15: 0000000000000503
FS:  00007fa4074f76c0(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f484675d000 CR3: 000000003ee86000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 wnd_zone_set+0xb2/0x160 fs/ntfs3/bitmap.c:1394
 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:620
 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/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa40658f6c9
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:00007fa4074f7038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fa4067e5fa0 RCX: 00007fa40658f6c9
RDX: 000000000000001f RSI: 0000000000000003 RDI: 0000000000000007
RBP: 00007fa4074f7090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000002
R13: 00007fa4067e6038 R14: 00007fa4067e5fa0 R15: 00007ffef0bce738
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/17 00:31 upstream 7254a2b52279 f7988ea4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_add_free_ext
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.