syzbot


WARNING: kmalloc bug in wnd_init

Status: upstream: reported C repro on 2024/12/01 00:31
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+13bae8cb21227fb5879d@syzkaller.appspotmail.com
First crash: 21d, last: 20d
Bug presence (2)
Date Name Commit Repro Result
2024/12/01 linux-6.1.y (ToT) e4d90d63d385 C [report] WARNING: kmalloc bug in wnd_init
2024/12/01 upstream (ToT) bcc8eda6d349 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: kmalloc bug in wnd_init ntfs3 C done 3 144d 290d 28/28 fixed on 2024/11/12 23:31

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4296 at mm/util.c:596 kvmalloc_node+0x1dc/0x1e4
Modules linked in:
CPU: 1 PID: 4296 Comm: syz-executor303 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : kvmalloc_node+0x1dc/0x1e4
lr : kvmalloc_node+0x1d8/0x1e4 mm/util.c:596
sp : ffff8000210377a0
x29: ffff8000210377b0 x28: ffff0000e1bf1fd0 x27: dfff800000000000
x26: 1ffffffffff80008 x25: 1fffe00019a2cc03 x24: 0000000000008000
x23: 0000000000000000 x22: ffff8000096f971c x21: 0003ffffffffff02
x20: 00000000ffffffff x19: 0000000000000dc0 x18: ffff800021036fa0
x17: ffff800018b6a000 x16: ffff800012325074 x15: 0000000000000000
x14: 1ffff00002b500b2 x13: dfff800000000000 x12: 0000000000000005
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff8000087ed2d4
x8 : ffff0000da280000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 00000000ffffffff x4 : 0000000000012dc0 x3 : 0004000000000000
x2 : 0003ffffffffff02 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 kvmalloc_node+0x1dc/0x1e4
 kvmalloc include/linux/slab.h:710 [inline]
 kvmalloc_array include/linux/slab.h:728 [inline]
 wnd_init+0x18c/0x2b0 fs/ntfs3/bitmap.c:665
 ntfs_fill_super+0x1d90/0x3454 fs/ntfs3/super.c:1058
 get_tree_bdev+0x360/0x54c fs/super.c:1366
 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1359
 vfs_get_tree+0x90/0x274 fs/super.c:1573
 do_new_mount+0x278/0x8fc fs/namespace.c:3056
 path_mount+0x590/0xe5c fs/namespace.c:3386
 do_mount fs/namespace.c:3399 [inline]
 __do_sys_mount fs/namespace.c:3607 [inline]
 __se_sys_mount fs/namespace.c:3584 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3584
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 25126
hardirqs last  enabled at (25125): [<ffff800008b33018>] bh_lru_install fs/buffer.c:1258 [inline]
hardirqs last  enabled at (25125): [<ffff800008b33018>] __find_get_block+0xcd0/0xeec fs/buffer.c:1309
hardirqs last disabled at (25126): [<ffff800012320d2c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (24730): [<ffff8000081c1c58>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (24730): [<ffff8000081c1c58>] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599
softirqs last disabled at (24507): [<ffff800008020174>] __do_softirq+0x14/0x20 kernel/softirq.c:605
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 00:30 linux-6.1.y e4d90d63d385 68914665 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING: kmalloc bug in wnd_init
* Struck through repros no longer work on HEAD.