syzbot


WARNING in wnd_add_free_ext (2)

Status: auto-obsoleted due to no activity on 2024/01/24 12:23
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+5b2f934f08ab03d473ff@syzkaller.appspotmail.com
First crash: 492d, last: 386d
Cause bisection: introduced by (bisect log) :
commit 3880f2b816a7e4ca889b7e8a42e6c62c5706ed36
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Mon Oct 25 15:31:28 2021 +0000

  fs/ntfs3: Fix fiemap + fix shrink file size (to remove preallocated space)

Crash: WARNING in wnd_add_free_ext (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 4ad5c924df6cd6d85708fa23f9d9a2b78a2e428e
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Sep 22 10:07:59 2023 +0000

  fs/ntfs3: Allow repeated call to ntfs3_put_sbi

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in wnd_add_free_ext (2) 0 (4) 2023/11/20 23:01
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in wnd_add_free_ext (3) ntfs3 C done 12 12d 85d 1/28 upstream: reported C repro on 2024/08/15 04:43
linux-6.1 WARNING in wnd_add_free_ext origin:upstream missing-backport C inconclusive 15 22d 451d 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 351d 443d 0/3 upstream: reported C repro on 2023/08/23 21:49
upstream WARNING in wnd_add_free_ext ntfs3 2 658d 682d 0/28 auto-obsoleted due to no activity on 2023/05/20 17:24
Last patch testing requests (11)
Created Duration User Patch Repo Result
2023/12/01 02:23 27m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/11/16 16:10 17m retest repro upstream OK log
2023/11/16 16:10 19m retest repro upstream OK log
2023/11/16 15:50 17m retest repro upstream OK log
2023/11/02 08:00 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/11/02 08:00 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/11/02 07:40 20m retest repro upstream OK log
2023/10/05 10:28 12m almaz.alexandrovich@paragon-software.com https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master report log
2023/09/21 21:36 1h36m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/09/07 15:12 10m retest repro upstream report log
2023/09/07 15:12 10m retest repro upstream report log

Sample crash report:
RBP: 0000000000000001 R08: 00007ffd725346a7 R09: 00007fb857410039
R10: 0000000000000001 R11: 0000000000000246 R12: 2e73656369766564
R13: 00007ffd72534ae8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5038 at fs/ntfs3/bitmap.c:216 rb_insert_start fs/ntfs3/bitmap.c:216 [inline]
WARNING: CPU: 1 PID: 5038 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0xd36/0x10e0 fs/ntfs3/bitmap.c:351
Modules linked in:
CPU: 1 PID: 5038 Comm: syz-executor154 Not tainted 6.6.0-rc6-syzkaller-00043-gdd72f9c7e512 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:rb_insert_start fs/ntfs3/bitmap.c:216 [inline]
RIP: 0010:wnd_add_free_ext+0xd36/0x10e0 fs/ntfs3/bitmap.c:351
Code: 18 48 8b 3c 24 4c 89 e6 e8 87 1a c9 fe 48 8b 04 24 49 39 c4 0f 83 35 ff ff ff e8 65 1f c9 fe 4c 8d 63 10 eb 96 e8 5a 1f c9 fe <0f> 0b e9 b9 fe ff ff e8 4e 1f c9 fe 48 8b 7c 24 10 e8 b4 3c 73 07
RSP: 0018:ffffc90003aef6f0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888076984ea0 RCX: 0000000000000000
RDX: ffff888029a00000 RSI: ffffffff82beaae6 RDI: 0000000000000006
RBP: 00000000000002ea R08: 0000000000000006 R09: 00000000000002ea
R10: 00000000000002ea R11: 0000000000000001 R12: 00000000000002ea
R13: ffff88801e2b41f0 R14: ffff8880769876c0 R15: dffffc0000000000
FS:  00005555560c1380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055db6ba6ce00 CR3: 00000000742ec000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 wnd_set_free+0x3b1/0x470 fs/ntfs3/bitmap.c:749
 mark_as_free_ex+0x2c0/0x3f0 fs/ntfs3/fsntfs.c:2485
 run_deallocate_ex+0x1f2/0x310 fs/ntfs3/attrib.c:122
 attr_set_size+0xc82/0x2ca0 fs/ntfs3/attrib.c:750
 ntfs_truncate fs/ntfs3/file.c:393 [inline]
 ntfs3_setattr+0x4fe/0xb20 fs/ntfs3/file.c:682
 notify_change+0x742/0x11c0 fs/attr.c:499
 do_truncate+0x15c/0x220 fs/open.c:66
 vfs_truncate+0x3eb/0x4d0 fs/open.c:112
 do_sys_truncate+0x153/0x190 fs/open.c:135
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb85737aab9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd72534908 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007ffd72534910 RCX: 00007fb85737aab9
RDX: 00007fb857379ce0 RSI: 0000000000000000 RDI: 00000000200004c0
RBP: 0000000000000001 R08: 00007ffd725346a7 R09: 00007fb857410039
R10: 0000000000000001 R11: 0000000000000246 R12: 2e73656369766564
R13: 00007ffd72534ae8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/19 06:22 upstream dd72f9c7e512 342b9c55 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING in wnd_add_free_ext
2023/08/24 06:56 upstream a5e505a99ca7 4d7ae7ab .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in wnd_add_free_ext
2023/08/15 11:16 upstream 91aa6c412d7f 39990d51 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in wnd_add_free_ext
2023/08/06 13:43 upstream f6a691685962 4ffcc9ef .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in wnd_add_free_ext
2023/10/08 07:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 19af4a4ed414 5e837c76 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/09/26 07:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf6547d8715b 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/08/06 03:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 86d7896480b0 4ffcc9ef .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/08/22 11:30 upstream f7757129e3de 6b415825 .config console log report info ci-qemu-upstream WARNING in wnd_add_free_ext
2023/08/20 17:32 upstream 706a74159504 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in wnd_add_free_ext
2023/07/05 15:25 upstream d528014517f2 e8b147c6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in wnd_add_free_ext
2023/10/09 20:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 19af4a4ed414 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/10/06 05:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e530aeb342b db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/10/04 08:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e530aeb342b 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/09/26 21:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf6547d8715b 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/08/13 07:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6f09e57d8cf6 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
2023/08/06 03:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 86d7896480b0 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in wnd_add_free_ext
* Struck through repros no longer work on HEAD.