syzbot


memory leak in journal_init

Status: upstream: reported C repro on 2022/12/22 10:27
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+38daa8d09e2bde63614c@syzkaller.appspotmail.com
First crash: 484d, last: 109d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] memory leak in journal_init 0 (1) 2022/12/22 10:27
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/10 16:38 11h22m retest repro upstream report log
2024/04/10 16:38 11h15m retest repro upstream report log
2024/03/07 09:25 19m retest repro upstream OK log
2024/02/22 09:21 33m retest repro upstream OK log
2024/02/08 09:27 29m retest repro upstream OK log
2024/01/28 04:46 15m retest repro upstream report log
2024/01/28 04:46 14m retest repro upstream report log
2023/12/28 09:10 10m retest repro upstream report log
2023/12/14 08:43 11m retest repro upstream report log
2023/11/30 07:55 10m retest repro upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810aec0840 (size 192):
  comm "syz-executor316", pid 5023, jiffies 4294954734 (age 14.340s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 01 00 00 00 03 00 00 00  ................
  backtrace:
    [<ffffffff815545e5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1076
    [<ffffffff817fc720>] kmalloc include/linux/slab.h:582 [inline]
    [<ffffffff817fc720>] kzalloc include/linux/slab.h:703 [inline]
    [<ffffffff817fc720>] alloc_journal_list+0x20/0xb0 fs/reiserfs/journal.c:2571
    [<ffffffff81800957>] journal_list_init fs/reiserfs/journal.c:2585 [inline]
    [<ffffffff81800957>] journal_init+0x7b7/0x1f60 fs/reiserfs/journal.c:2845
    [<ffffffff817ec12f>] reiserfs_fill_super+0x61f/0x16a0 fs/reiserfs/super.c:2022
    [<ffffffff8166ddc0>] mount_bdev+0x210/0x250 fs/super.c:1391
    [<ffffffff816d3ed9>] legacy_get_tree+0x29/0x80 fs/fs_context.c:611
    [<ffffffff8166b89a>] vfs_get_tree+0x2a/0x110 fs/super.c:1519
    [<ffffffff816afd9f>] do_new_mount fs/namespace.c:3335 [inline]
    [<ffffffff816afd9f>] path_mount+0xc8f/0x10d0 fs/namespace.c:3662
    [<ffffffff816b0991>] do_mount fs/namespace.c:3675 [inline]
    [<ffffffff816b0991>] __do_sys_mount fs/namespace.c:3884 [inline]
    [<ffffffff816b0991>] __se_sys_mount fs/namespace.c:3861 [inline]
    [<ffffffff816b0991>] __x64_sys_mount+0x1a1/0x1f0 fs/namespace.c:3861
    [<ffffffff84ad3bb8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad3bb8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810aec0a80 (size 192):
  comm "syz-executor316", pid 5026, jiffies 4294955333 (age 8.350s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 01 00 00 00 03 00 00 00  ................
  backtrace:
    [<ffffffff815545e5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1076
    [<ffffffff817fc720>] kmalloc include/linux/slab.h:582 [inline]
    [<ffffffff817fc720>] kzalloc include/linux/slab.h:703 [inline]
    [<ffffffff817fc720>] alloc_journal_list+0x20/0xb0 fs/reiserfs/journal.c:2571
    [<ffffffff81800957>] journal_list_init fs/reiserfs/journal.c:2585 [inline]
    [<ffffffff81800957>] journal_init+0x7b7/0x1f60 fs/reiserfs/journal.c:2845
    [<ffffffff817ec12f>] reiserfs_fill_super+0x61f/0x16a0 fs/reiserfs/super.c:2022
    [<ffffffff8166ddc0>] mount_bdev+0x210/0x250 fs/super.c:1391
    [<ffffffff816d3ed9>] legacy_get_tree+0x29/0x80 fs/fs_context.c:611
    [<ffffffff8166b89a>] vfs_get_tree+0x2a/0x110 fs/super.c:1519
    [<ffffffff816afd9f>] do_new_mount fs/namespace.c:3335 [inline]
    [<ffffffff816afd9f>] path_mount+0xc8f/0x10d0 fs/namespace.c:3662
    [<ffffffff816b0991>] do_mount fs/namespace.c:3675 [inline]
    [<ffffffff816b0991>] __do_sys_mount fs/namespace.c:3884 [inline]
    [<ffffffff816b0991>] __se_sys_mount fs/namespace.c:3861 [inline]
    [<ffffffff816b0991>] __x64_sys_mount+0x1a1/0x1f0 fs/namespace.c:3861
    [<ffffffff84ad3bb8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84ad3bb8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/21 11:49 upstream f7757129e3de d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in journal_init
2023/08/01 07:59 upstream 5d0c230f1de8 2a0d0f29 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in journal_init
2023/09/24 17:38 upstream 3aba70aed91f 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in journal_init
2023/04/30 13:15 upstream 825a0714d2b3 62df2017 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in journal_init
2022/12/18 10:21 upstream f9ff5644bcc0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-leak memory leak in journal_init
* Struck through repros no longer work on HEAD.