syzbot


memory leak in ntfs_init_fs_context

Status: upstream: reported C repro on 2022/08/23 06:18
Reported-by: syzbot+9d67170b20e8f94351c8@syzkaller.appspotmail.com
Fix commit: fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
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: 111d, last: 1d00h
Patch testing requests:
Created Duration User Patch Repo Result
2022/10/03 09:16 16m kari.argillander@gmail.com https://github.com/Paragon-Software-Group/linux-ntfs3.git master OK log
2022/08/24 16:37 16m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/08/24 15:45 16m mail@karthek.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810e8e3540 (size 32):
  comm "syz-executor324", pid 3640, jiffies 4294947778 (age 12.370s)
  hex dump (first 32 bytes):
    80 1c e5 06 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 c0 ff c0 ff 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff81b3b342>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff81b3b342>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff81b3b342>] ntfs_init_fs_context+0x22/0x1e0 fs/ntfs3/super.c:1397
    [<ffffffff81664cd5>] alloc_fs_context+0x225/0x3b0 fs/fs_context.c:290
    [<ffffffff81640d93>] do_new_mount fs/namespace.c:3025 [inline]
    [<ffffffff81640d93>] path_mount+0x6f3/0x10d0 fs/namespace.c:3370
    [<ffffffff81641ebe>] do_mount fs/namespace.c:3383 [inline]
    [<ffffffff81641ebe>] __do_sys_mount fs/namespace.c:3591 [inline]
    [<ffffffff81641ebe>] __se_sys_mount fs/namespace.c:3568 [inline]
    [<ffffffff81641ebe>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (149):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2022/12/08 04:40 upstream 479174d402bc d88f3abb .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/06 01:20 upstream 76dcd734eca2 045cbb84 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/05 03:49 upstream 0ba09b173387 e080de16 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/03 09:30 upstream a4412fdd49dc e080de16 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/01 09:31 upstream ef4d3ea40565 4c2a66e8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/29 10:26 upstream ca57f02295f1 ca9683b8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/25 20:13 upstream 08ad43d554ba 74a66371 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/23 00:06 upstream eb7081409f94 9da37ae8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/20 11:48 upstream b6e7fdfd6f6a 5bb70014 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/18 21:22 upstream 84368d882b96 5bb70014 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/18 19:31 upstream 84368d882b96 5bb70014 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/18 03:30 upstream 81ac25651a62 4ba8ab94 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/17 15:30 upstream cc675d22e422 3a127a31 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/17 03:35 upstream 59d0d52c30d4 3a127a31 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/17 03:10 upstream 59d0d52c30d4 3a127a31 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/16 09:29 upstream 81e7cfa3a9eb 3a127a31 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/15 12:55 upstream e01d50cbd6ee 97de9cfc .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/14 21:10 upstream 094226ad94f4 943f4cb8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/14 18:07 upstream 094226ad94f4 943f4cb8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/14 17:41 upstream 094226ad94f4 943f4cb8 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/12 23:29 upstream 8f2975c2bb4c 3ead01ad .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/12 06:37 upstream f5020a08b2b3 3ead01ad .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/11 21:44 upstream 4bbf3422df78 3ead01ad .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/11 15:02 upstream 4bbf3422df78 3ead01ad .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/11 00:33 upstream 1767a722a708 3ead01ad .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/09 20:06 upstream f141df371335 5fa28208 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/09 02:54 upstream f141df371335 060f945e .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/08 08:00 upstream 59f2f4b8a757 881db35d .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/07 18:04 upstream f0c4d9fc9cc9 a779b11a .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/07 04:30 upstream 089d1c31224e 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/06 14:02 upstream 2f5065a0bc9d 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/05 05:02 upstream 64c3dd0b98f5 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/04 16:21 upstream ee6050c8af96 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/04 15:29 upstream ee6050c8af96 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/04 02:22 upstream f2f32f8af2b0 6d752409 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/02 22:52 upstream 8f71a2b3f435 08977f5d .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/02 08:28 upstream f526d6a82242 edac4fd1 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/02 07:48 upstream f526d6a82242 edac4fd1 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/02 07:20 upstream f526d6a82242 edac4fd1 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/01 22:19 upstream 5aaef24b5c6d edac4fd1 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/31 11:29 upstream 30a0b95b1335 2a71366b .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/30 20:34 upstream 882ad2a2a8ff 2a71366b .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/30 04:53 upstream 91562cf99364 2a71366b .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/29 13:02 upstream 576e61cea1e4 899d812a .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/28 18:56 upstream 23758867219c ea12ae9b .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/28 01:47 upstream b229b6ca5abb 86777b7f .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/27 07:16 upstream 98555239e4c3 86777b7f .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/10/03 02:38 upstream a962b54e162c feb56351 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/08/23 16:52 upstream 072e51356cd5 cea8b0f7 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/08/23 00:20 upstream 1c23f9e627a7 26a13b38 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/08/19 06:11 upstream 3b06a2755758 26a13b38 .config log report syz C memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/01 04:04 upstream ef4d3ea40565 4c2a66e8 .config log report syz memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/12/01 03:09 upstream ef4d3ea40565 4c2a66e8 .config log report syz memory leak in ntfs_init_fs_context
ci-upstream-gce-leak 2022/11/29 09:56 upstream ca57f02295f1 ca9683b8 .config log report syz memory leak in ntfs_init_fs_context
* Struck through repros no longer work on HEAD.