syzbot


WARNING in ntfs_fill_super

Status: upstream: reported C repro on 2022/10/02 11:18
Reported-by: syzbot+33f3faaa0c08744f7d40@syzkaller.appspotmail.com
Fix commit: fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super()
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 64d, last: 17d

Cause bisection: failed (bisect log)

Sample crash report:
loop0: detected capacity change from 0 to 8226
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3614 at mm/page_alloc.c:5530 __alloc_pages+0x40e/0x5a0 mm/page_alloc.c:5530
Modules linked in:
CPU: 1 PID: 3614 Comm: syz-executor204 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:__alloc_pages+0x40e/0x5a0 mm/page_alloc.c:5530
Code: ff ff 00 0f 84 c3 fd ff ff 80 ce 01 e9 bb fd ff ff 83 fe 0a 0f 86 ce fc ff ff 80 3d 4d ad 0d 0c 00 75 09 c6 05 44 ad 0d 0c 01 <0f> 0b 45 31 f6 e9 52 fe ff ff 65 ff 05 d1 b4 43 7e 48 c7 c0 20 f6
RSP: 0018:ffffc90003e6fa60 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff920007cdf4d RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000013 RDI: 0000000000000000
RBP: 0000000000040c40 R08: 0000000000000007 R09: 000000000000009f
R10: 0000007375622f2e R11: 000000000008c07e R12: 0000000000000013
R13: 0000000000000000 R14: 0000000000000013 R15: 00000000000001ff
FS:  00007fd8425db700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd8425dc000 CR3: 000000007e4ef000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __alloc_pages_node include/linux/gfp.h:223 [inline]
 alloc_pages_node include/linux/gfp.h:246 [inline]
 __kmalloc_large_node+0x6a/0x130 mm/slab_common.c:1098
 __do_kmalloc_node mm/slab_common.c:943 [inline]
 __kmalloc+0x8b/0xc0 mm/slab_common.c:968
 kmalloc include/linux/slab.h:581 [inline]
 ntfs_fill_super+0x277d/0x37f0 fs/ntfs3/super.c:1144
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd8426305ba
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 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:00007fd8425db168 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd8426305ba
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd8425db180
RBP: 0000000000000004 R08: 00007fd8425db1c0 R09: 00007fd8425db6b8
R10: 0000000000000002 R11: 0000000000000286 R12: 00007fd8425db1c0
R13: 0000000000000015 R14: 00007fd8425db180 R15: 0000000020000db8
 </TASK>

Crashes (19):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/31 01:55 upstream b229b6ca5abb 2a71366b .config log report syz C WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/21 17:52 upstream 6d36c728bc2e 63e790dd .config log report syz C WARNING in ntfs_fill_super
ci-upstream-kasan-gce-root 2022/10/13 18:56 upstream 55be6084c8e0 adf90437 .config log report syz C WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/05 07:05 upstream 0326074ff465 267e3bb1 .config log report syz C WARNING in ntfs_fill_super
ci-upstream-linux-next-kasan-gce-root 2022/11/09 23:02 linux-next 0cdb3579f1ee 5fa28208 .config log report syz C WARNING in ntfs_fill_super
ci-upstream-gce-arm64 2022/10/05 14:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 267e3bb1 .config log report syz C WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/18 12:08 upstream 84368d882b96 5bb70014 .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/17 03:24 upstream 59d0d52c30d4 3a127a31 .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/15 13:51 upstream e01d50cbd6ee 97de9cfc .config log report info WARNING in ntfs_fill_super
ci-upstream-kasan-gce-smack-root 2022/11/13 13:31 upstream fef7fd48922d 3ead01ad .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/07 18:54 upstream f0c4d9fc9cc9 a779b11a .config log report info WARNING in ntfs_fill_super
ci-upstream-kasan-gce-root 2022/11/03 00:15 upstream b229b6ca5abb 08977f5d .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/01 18:52 upstream b229b6ca5abb a1d8560a .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/11/01 13:44 upstream b229b6ca5abb a1d8560a .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/27 18:17 upstream b229b6ca5abb 5c716ff6 .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/15 22:46 upstream 493ffd6605b2 67cb024c .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/11 13:39 upstream 493ffd6605b2 5bcf0c31 .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/05 06:45 upstream 0326074ff465 267e3bb1 .config log report info WARNING in ntfs_fill_super
ci2-upstream-fs 2022/10/01 20:40 upstream ffb4d94b4314 feb56351 .config log report info WARNING in ntfs_fill_super
* Struck through repros no longer work on HEAD.