syzbot


WARNING in wnd_add_free_ext (3)

Status: upstream: reported C repro on 2024/08/15 04:43
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+7f3761b790fa41d0f3d5@syzkaller.appspotmail.com
First crash: 32d, last: 2d19h
Cause bisection: introduced by (bisect log) :
commit 8335ebe195dcc76ece418485a9f08b9a9ad7fe23
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Thu Jul 7 16:25:43 2022 +0000

  fs/ntfs3: Make MFT zone less fragmented

Crash: WARNING in wnd_add_free_ext (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in wnd_add_free_ext (3) 0 (1) 2024/08/15 04:43
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in wnd_add_free_ext origin:upstream missing-backport C inconclusive 5 269d 394d 0/3 upstream: reported C repro on 2023/08/15 03:08
linux-5.15 WARNING in wnd_add_free_ext origin:upstream missing-backport C error 2 294d 385d 0/3 upstream: reported C repro on 2023/08/23 21:49
upstream WARNING in wnd_add_free_ext (2) ntfs3 C done done 16 329d 434d 0/27 auto-obsoleted due to no activity on 2024/01/24 12:23
upstream WARNING in wnd_add_free_ext ntfs3 2 600d 624d 0/27 auto-obsoleted due to no activity on 2023/05/20 17:24
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/08/25 19:48 15m retest repro upstream report log
2024/08/25 19:48 15m retest repro upstream report log
2024/08/25 19:48 20m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5226 at fs/ntfs3/bitmap.c:217 rb_insert_start fs/ntfs3/bitmap.c:217 [inline]
WARNING: CPU: 1 PID: 5226 at fs/ntfs3/bitmap.c:217 wnd_add_free_ext+0xaba/0xd60 fs/ntfs3/bitmap.c:352
Modules linked in:
CPU: 1 UID: 0 PID: 5226 Comm: syz-executor330 Not tainted 6.11.0-rc2-syzkaller-00257-g5189dafa4cf9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:rb_insert_start fs/ntfs3/bitmap.c:217 [inline]
RIP: 0010:wnd_add_free_ext+0xaba/0xd60 fs/ntfs3/bitmap.c:352
Code: 00 fc ff df 80 3c 28 00 74 08 48 89 df e8 2e be 14 ff 48 8b 7c 24 08 48 89 3b 4c 89 f6 e8 fe 08 c3 08 eb 13 e8 a7 9c b0 fe 90 <0f> 0b 90 48 bd 00 00 00 00 00 fc ff df 48 8b 44 24 38 80 3c 28 00
RSP: 0018:ffffc900035df008 EFLAGS: 00010293

RAX: ffffffff82e2da99 RBX: 0000000000000603 RCX: ffff8880243b9e00
RDX: 0000000000000000 RSI: 0000000000000603 RDI: 0000000000000603
RBP: 0000000000000603 R08: ffffffff82e2d9d2 R09: 0000000000000000
R10: ffff88801198cc88 R11: ffffed1002331993 R12: ffff88801186c7e0
R13: ffff88801186c7e0 R14: ffff8880245182d8 R15: 1ffff1100233198f
FS:  00007fc6ce16d6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000002363a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 wnd_zone_set+0xa6/0x160 fs/ntfs3/bitmap.c:1421
 mark_as_free_ex+0x30d/0x390
 run_deallocate_ex+0x244/0x5f0 fs/ntfs3/attrib.c:122
 attr_set_size+0x168d/0x4300 fs/ntfs3/attrib.c:753
 ntfs_truncate fs/ntfs3/file.c:459 [inline]
 ntfs3_setattr+0x7a4/0xb80 fs/ntfs3/file.c:775
 notify_change+0xb9d/0xe70 fs/attr.c:495
 do_truncate+0x220/0x310 fs/open.c:65
 handle_truncate fs/namei.c:3381 [inline]
 do_open fs/namei.c:3731 [inline]
 path_openat+0x2ced/0x3470 fs/namei.c:3886
 do_filp_open+0x235/0x490 fs/namei.c:3913
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416
 do_sys_open fs/open.c:1431 [inline]
 __do_sys_openat fs/open.c:1447 [inline]
 __se_sys_openat fs/open.c:1442 [inline]
 __x64_sys_openat+0x247/0x2a0 fs/open.c:1442
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/11 19:34 upstream 5189dafa4cf9 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] ci2-upstream-fs WARNING in wnd_add_free_ext
2024/08/11 16:31 upstream 5189dafa4cf9 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] [mounted in repro #4] ci2-upstream-fs WARNING in wnd_add_free_ext
2024/08/11 13:08 upstream 5189dafa4cf9 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] ci2-upstream-fs WARNING in wnd_add_free_ext
2024/09/09 18:13 upstream da3ea35007d0 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in wnd_add_free_ext
2024/09/04 16:07 upstream 88fac17500f4 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in wnd_add_free_ext
2024/08/11 04:38 upstream 34ac1e82e5a7 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in wnd_add_free_ext
* Struck through repros no longer work on HEAD.