syzbot


memory leak in ntfs_init_fs_context

Status: fixed on 2023/02/24 13:50
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+9d67170b20e8f94351c8@syzkaller.appspotmail.com
Fix commit: 51e76a232f8c fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
First crash: 644d, last: 519d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 6.1 01/28] fs/ntfs3: Validate BOOT record_size 29 (29) 2023/01/23 18:39
[PATCH AUTOSEL 5.15 01/22] fs/ntfs3: Validate BOOT record_size 22 (22) 2022/12/27 20:34
[PATCH AUTOSEL 6.0 01/27] fs/ntfs3: Validate BOOT record_size 27 (27) 2022/12/27 20:33
[PATCH] fs/ntfs3: fix memory leak in put_ntfs() 2 (2) 2022/09/30 16:21
[PATCH] fs/ntfs3: Fix memory leak on ntfs_fill_super() error path 3 (3) 2022/09/30 15:51
[PATCH] ntfs3: Fix memory leak in ntfs_fill_super() 1 (1) 2022/09/14 11:16
[PATCH] fs/ntfs3: fix memory leak in put_ntfs() 1 (1) 2022/08/31 04:32
[syzbot] memory leak in ntfs_init_fs_context 1 (3) 2022/08/24 17:03
Last patch testing requests (3)
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 0xffff88810e2a4f00 (size 32):
  comm "syz-executor107", pid 5060, jiffies 4294943768 (age 12.450s)
  hex dump (first 32 bytes):
    a0 4e 2a 0e 81 88 ff ff 60 7f 01 86 ff ff ff ff  .N*.....`.......
    00 00 00 00 00 00 00 00 c0 ff c0 ff 68 00 00 00  ............h...
  backtrace:
    [<ffffffff814f81d0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1062
    [<ffffffff81b4d232>] kmalloc include/linux/slab.h:580 [inline]
    [<ffffffff81b4d232>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff81b4d232>] ntfs_init_fs_context+0x22/0x1e0 fs/ntfs3/super.c:1397
    [<ffffffff81673a15>] alloc_fs_context+0x225/0x3b0 fs/fs_context.c:290
    [<ffffffff8164f6e3>] do_new_mount fs/namespace.c:3130 [inline]
    [<ffffffff8164f6e3>] path_mount+0x6f3/0x10d0 fs/namespace.c:3475
    [<ffffffff8165085e>] do_mount fs/namespace.c:3488 [inline]
    [<ffffffff8165085e>] __do_sys_mount fs/namespace.c:3697 [inline]
    [<ffffffff8165085e>] __se_sys_mount fs/namespace.c:3674 [inline]
    [<ffffffff8165085e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3674
    [<ffffffff848e9705>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff848e9705>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810e2a4ea0 (size 32):
  comm "syz-executor107", pid 5060, jiffies 4294943768 (age 12.450s)
  hex dump (first 32 bytes):
    6b 6f 69 38 2d 72 00 00 00 00 00 00 00 00 00 00  koi8-r..........
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814f8997>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8997>] __kmalloc_node_track_caller+0x47/0x120 mm/slab_common.c:988
    [<ffffffff814e8c42>] kmemdup_nul+0x32/0x70 mm/util.c:152
    [<ffffffff8167303e>] vfs_parse_fs_string+0x6e/0xd0 fs/fs_context.c:178
    [<ffffffff81673180>] generic_parse_monolithic+0xe0/0x130 fs/fs_context.c:224
    [<ffffffff8164fb84>] do_new_mount fs/namespace.c:3141 [inline]
    [<ffffffff8164fb84>] path_mount+0xb94/0x10d0 fs/namespace.c:3475
    [<ffffffff8165085e>] do_mount fs/namespace.c:3488 [inline]
    [<ffffffff8165085e>] __do_sys_mount fs/namespace.c:3697 [inline]
    [<ffffffff8165085e>] __se_sys_mount fs/namespace.c:3674 [inline]
    [<ffffffff8165085e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3674
    [<ffffffff848e9705>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff848e9705>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810e2a47c0 (size 32):
  comm "syz-executor107", pid 5063, jiffies 4294944288 (age 7.250s)
  hex dump (first 32 bytes):
    a0 45 2a 0e 81 88 ff ff 60 7f 01 86 ff ff ff ff  .E*.....`.......
    00 00 00 00 00 00 00 00 c0 ff c0 ff 68 00 00 00  ............h...
  backtrace:
    [<ffffffff814f81d0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1062
    [<ffffffff81b4d232>] kmalloc include/linux/slab.h:580 [inline]
    [<ffffffff81b4d232>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff81b4d232>] ntfs_init_fs_context+0x22/0x1e0 fs/ntfs3/super.c:1397
    [<ffffffff81673a15>] alloc_fs_context+0x225/0x3b0 fs/fs_context.c:290
    [<ffffffff8164f6e3>] do_new_mount fs/namespace.c:3130 [inline]
    [<ffffffff8164f6e3>] path_mount+0x6f3/0x10d0 fs/namespace.c:3475
    [<ffffffff8165085e>] do_mount fs/namespace.c:3488 [inline]
    [<ffffffff8165085e>] __do_sys_mount fs/namespace.c:3697 [inline]
    [<ffffffff8165085e>] __se_sys_mount fs/namespace.c:3674 [inline]
    [<ffffffff8165085e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3674
    [<ffffffff848e9705>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff848e9705>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810e2a45a0 (size 32):
  comm "syz-executor107", pid 5063, jiffies 4294944288 (age 7.250s)
  hex dump (first 32 bytes):
    6b 6f 69 38 2d 72 00 00 00 00 00 00 00 00 00 00  koi8-r..........
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814f8997>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8997>] __kmalloc_node_track_caller+0x47/0x120 mm/slab_common.c:988
    [<ffffffff814e8c42>] kmemdup_nul+0x32/0x70 mm/util.c:152
    [<ffffffff8167303e>] vfs_parse_fs_string+0x6e/0xd0 fs/fs_context.c:178
    [<ffffffff81673180>] generic_parse_monolithic+0xe0/0x130 fs/fs_context.c:224
    [<ffffffff8164fb84>] do_new_mount fs/namespace.c:3141 [inline]
    [<ffffffff8164fb84>] path_mount+0xb94/0x10d0 fs/namespace.c:3475
    [<ffffffff8165085e>] do_mount fs/namespace.c:3488 [inline]
    [<ffffffff8165085e>] __do_sys_mount fs/namespace.c:3697 [inline]
    [<ffffffff8165085e>] __se_sys_mount fs/namespace.c:3674 [inline]
    [<ffffffff8165085e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3674
    [<ffffffff848e9705>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff848e9705>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (169):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/22 06:26 upstream d264dd3bbbd1 4067838e .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/21 17:31 upstream b6bb9676f216 4067838e .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/21 17:14 upstream b6bb9676f216 4067838e .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/20 14:37 upstream 6feb57c2fd7c d3e76707 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/20 03:25 upstream 2f26e424552e c52b2efb .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/19 05:52 upstream f9ff5644bcc0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/18 11:54 upstream f9ff5644bcc0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/17 20:38 upstream ed56954cf5a8 05494336 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/17 09:43 upstream 77856d911a8c 05494336 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/15 21:18 upstream 041fae9c105a 6f9c033e .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/14 02:01 upstream 764822972d64 e660de91 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/10 14:39 upstream 3ecc37918c80 67be1ae7 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/09 05:29 upstream ce19275f0103 1034e5fa .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/08 04:40 upstream 479174d402bc d88f3abb .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/06 01:20 upstream 76dcd734eca2 045cbb84 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/05 03:49 upstream 0ba09b173387 e080de16 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/03 09:30 upstream a4412fdd49dc e080de16 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/01 09:31 upstream ef4d3ea40565 4c2a66e8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/29 10:26 upstream ca57f02295f1 ca9683b8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/25 20:13 upstream 08ad43d554ba 74a66371 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/23 00:06 upstream eb7081409f94 9da37ae8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/20 11:48 upstream b6e7fdfd6f6a 5bb70014 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/18 21:22 upstream 84368d882b96 5bb70014 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/18 19:31 upstream 84368d882b96 5bb70014 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/18 03:30 upstream 81ac25651a62 4ba8ab94 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/17 15:30 upstream cc675d22e422 3a127a31 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/17 03:35 upstream 59d0d52c30d4 3a127a31 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/17 03:10 upstream 59d0d52c30d4 3a127a31 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/16 09:29 upstream 81e7cfa3a9eb 3a127a31 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/15 12:55 upstream e01d50cbd6ee 97de9cfc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/14 21:10 upstream 094226ad94f4 943f4cb8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/14 18:07 upstream 094226ad94f4 943f4cb8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/14 17:41 upstream 094226ad94f4 943f4cb8 .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/12 23:29 upstream 8f2975c2bb4c 3ead01ad .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/12 06:37 upstream f5020a08b2b3 3ead01ad .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/11 21:44 upstream 4bbf3422df78 3ead01ad .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/11 15:02 upstream 4bbf3422df78 3ead01ad .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/11 00:33 upstream 1767a722a708 3ead01ad .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/09 20:06 upstream f141df371335 5fa28208 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/09 02:54 upstream f141df371335 060f945e .config console log report syz C [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/10/03 02:38 upstream a962b54e162c feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/08/23 16:52 upstream 072e51356cd5 cea8b0f7 .config console log report syz C ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/08/23 00:20 upstream 1c23f9e627a7 26a13b38 .config console log report syz C ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/08/19 06:11 upstream 3b06a2755758 26a13b38 .config console log report syz C ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/19 01:38 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/19 00:43 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/18 21:47 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/18 15:28 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/18 00:01 upstream ed56954cf5a8 05494336 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/17 23:38 upstream ed56954cf5a8 05494336 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/17 21:28 upstream ed56954cf5a8 05494336 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/01 04:04 upstream ef4d3ea40565 4c2a66e8 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/12/01 03:09 upstream ef4d3ea40565 4c2a66e8 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
2022/11/29 09:56 upstream ca57f02295f1 ca9683b8 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in ntfs_init_fs_context
* Struck through repros no longer work on HEAD.