syzbot


WARNING in wnd_init (2)

Status: upstream: reported C repro on 2024/09/27 19:06
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+47de774a425e2380f16f@syzkaller.appspotmail.com
First crash: 58d, last: 44d
Cause bisection: introduced by (bisect log) :
commit fc471e39e38fea6677017cbdd6d928088a59fc67
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Jun 30 12:12:58 2023 +0000

  fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN)

Crash: WARNING: kmalloc bug in wnd_init (log)
Repro: C syz .config
  
Fix bisection the fix commit could be any of (bisect log):
  c4a8ba334262 fs/ntfs3: Add rough attr alloc_size check
  70dd48ca3af3 fs/ntfs3: Make checks in run_unpack more clear
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in wnd_init (2) 0 (2) 2024/10/08 03:37
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in wnd_init ntfs3 C done 23 701d 783d 22/28 fixed on 2023/02/24 13:50
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/24 05:54 17m retest repro upstream OK log
2024/10/21 17:37 19m retest repro upstream OK log

Sample crash report:
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5217 at mm/util.c:670 __kvmalloc_node_noprof+0x17a/0x190 mm/util.c:670
Modules linked in:
CPU: 0 UID: 0 PID: 5217 Comm: syz-executor190 Not tainted 6.12.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__kvmalloc_node_noprof+0x17a/0x190 mm/util.c:670
Code: cc 44 89 fe 81 e6 00 20 00 00 31 ff e8 5f 76 bc ff 41 81 e7 00 20 00 00 74 0a e8 11 72 bc ff e9 3b ff ff ff e8 07 72 bc ff 90 <0f> 0b 90 e9 2d ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00
RSP: 0018:ffffc90002dcf8b8 EFLAGS: 00010293
RAX: ffffffff81d87419 RBX: 0003ffffff400002 RCX: ffff88802dd18000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81d87401 R09: 00000000ffffffff
R10: ffffc90002dcf720 R11: fffff520005b9ee9 R12: ffff88802a6ee0b0
R13: 0003ffffff400002 R14: 00000000ffffffff R15: 0000000000000000
FS:  00005555725f9380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4488490ae0 CR3: 00000000293dc000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvmalloc_array_node_noprof include/linux/slab.h:1040 [inline]
 wnd_init+0x1ed/0x320 fs/ntfs3/bitmap.c:663
 ntfs_fill_super+0x2ffe/0x4730 fs/ntfs3/super.c:1315
 get_tree_bdev+0x3f7/0x570 fs/super.c:1635
 vfs_get_tree+0x90/0x2b0 fs/super.c:1800
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4055 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff9ccf96d4a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffdedc14ef8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdedc14f00 RCX: 00007ff9ccf96d4a
RDX: 000000002001f6c0 RSI: 00000000200000c0 RDI: 00007ffdedc14f00
RBP: 0000000000000004 R08: 00007ffdedc14f40 R09: 000000000001f27a
R10: 000000000181c041 R11: 0000000000000286 R12: 00007ffdedc14f40
R13: 0000000000000003 R14: 0000000000200000 R15: 0000000000000001
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/07 17:27 upstream 8cf0b93919e1 d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in wnd_init
2024/09/23 19:07 upstream de5cb0dcb74c 49f9c2d2 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root WARNING in wnd_init
2024/09/23 18:57 upstream de5cb0dcb74c 49f9c2d2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in wnd_init
* Struck through repros no longer work on HEAD.