syzbot


memory leak in reiserfs_parse_options (2)

Status: upstream: reported C repro on 2023/01/11 10:44
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+67d4d8261283b46b21ac@syzkaller.appspotmail.com
First crash: 331d, last: 23d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] memory leak in reiserfs_parse_options (2) 0 (1) 2023/01/11 10:44
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in reiserfs_parse_options reiserfs C 4 1178d 1373d 17/25 fixed on 2020/11/16 12:12
Last patch testing requests (8)
Created Duration User Patch Repo Result
2023/11/11 16:21 16m retest repro upstream report log
2023/10/04 15:52 25m retest repro upstream report log
2023/10/04 15:52 11m retest repro upstream report log
2023/10/04 15:52 10m retest repro upstream report log
2023/09/02 14:27 12m retest repro upstream report log
2023/07/17 05:46 10m retest repro upstream report log
2023/07/17 05:46 10m retest repro upstream report log
2023/04/18 14:40 13m retest repro upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888109f2bf50 (size 8):
  comm "syz-executor292", pid 5023, jiffies 4294954430 (age 14.400s)
  hex dump (first 8 bytes):
    04 00 00 00 00 00 00 00                          ........
  backtrace:
    [<ffffffff81554a79>] __do_kmalloc_node mm/slab_common.c:984 [inline]
    [<ffffffff81554a79>] __kmalloc_node_track_caller+0x49/0x140 mm/slab_common.c:1005
    [<ffffffff81543cbc>] kstrdup+0x3c/0x70 mm/util.c:62
    [<ffffffff817e9454>] reiserfs_parse_options+0x974/0x1010 fs/reiserfs/super.c:1279
    [<ffffffff817ebcd5>] reiserfs_fill_super+0x1b5/0x16a0 fs/reiserfs/super.c:1933
    [<ffffffff8166ddd0>] mount_bdev+0x210/0x250 fs/super.c:1391
    [<ffffffff816d3ee9>] legacy_get_tree+0x29/0x80 fs/fs_context.c:611
    [<ffffffff8166b8aa>] vfs_get_tree+0x2a/0x110 fs/super.c:1519
    [<ffffffff816afdaf>] do_new_mount fs/namespace.c:3335 [inline]
    [<ffffffff816afdaf>] path_mount+0xc8f/0x10d0 fs/namespace.c:3662
    [<ffffffff816b09a1>] do_mount fs/namespace.c:3675 [inline]
    [<ffffffff816b09a1>] __do_sys_mount fs/namespace.c:3884 [inline]
    [<ffffffff816b09a1>] __se_sys_mount fs/namespace.c:3861 [inline]
    [<ffffffff816b09a1>] __x64_sys_mount+0x1a1/0x1f0 fs/namespace.c:3861
    [<ffffffff84ad2bb8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad2bb8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff888109f2bf68 (size 8):
  comm "syz-executor292", pid 5026, jiffies 4294955028 (age 8.420s)
  hex dump (first 8 bytes):
    04 00 00 00 00 00 00 00                          ........
  backtrace:
    [<ffffffff81554a79>] __do_kmalloc_node mm/slab_common.c:984 [inline]
    [<ffffffff81554a79>] __kmalloc_node_track_caller+0x49/0x140 mm/slab_common.c:1005
    [<ffffffff81543cbc>] kstrdup+0x3c/0x70 mm/util.c:62
    [<ffffffff817e9454>] reiserfs_parse_options+0x974/0x1010 fs/reiserfs/super.c:1279
    [<ffffffff817ebcd5>] reiserfs_fill_super+0x1b5/0x16a0 fs/reiserfs/super.c:1933
    [<ffffffff8166ddd0>] mount_bdev+0x210/0x250 fs/super.c:1391
    [<ffffffff816d3ee9>] legacy_get_tree+0x29/0x80 fs/fs_context.c:611
    [<ffffffff8166b8aa>] vfs_get_tree+0x2a/0x110 fs/super.c:1519
    [<ffffffff816afdaf>] do_new_mount fs/namespace.c:3335 [inline]
    [<ffffffff816afdaf>] path_mount+0xc8f/0x10d0 fs/namespace.c:3662
    [<ffffffff816b09a1>] do_mount fs/namespace.c:3675 [inline]
    [<ffffffff816b09a1>] __do_sys_mount fs/namespace.c:3884 [inline]
    [<ffffffff816b09a1>] __se_sys_mount fs/namespace.c:3861 [inline]
    [<ffffffff816b09a1>] __x64_sys_mount+0x1a1/0x1f0 fs/namespace.c:3861
    [<ffffffff84ad2bb8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad2bb8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/16 08:25 upstream d4f8e13b0614 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in reiserfs_parse_options
2023/05/08 05:30 upstream 17784de648be 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in reiserfs_parse_options
2023/01/07 10:33 upstream a689b938df39 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in reiserfs_parse_options
2023/09/20 10:31 upstream 2cf0f7156238 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in reiserfs_parse_options
* Struck through repros no longer work on HEAD.