syzbot


memory leak in generic_parse_monolithic

Status: fixed on 2021/03/10 01:48
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+86dc6632faaca40133ab@syzkaller.appspotmail.com
Fix commit: 4cb682964706 afs: Fix memory leak when mounting with multiple source parameters
First crash: 1312d, last: 1285d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.4 000/453] 5.4.86-rc1 review 465 (465) 2020/12/30 09:22
memory leak in generic_parse_monolithic 8 (9) 2020/12/09 06:13
[PATCH] afs: Fix memory leak when mounting with multiple source parameters 1 (1) 2020/12/08 23:52

Sample crash report:
Debian GNU/Linux 9 syzkaller ttyS0
Warning: Permanently added '10.128.0.124' (ECDSA) to the list of known hosts.
executing program
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888112099980 (size 32):
  comm "syz-executor679", pid 8490, jiffies 4294945852 (age 14.080s)
  hex dump (first 32 bytes):
    25 5e 5d 24 5b 2b 25 5d 28 24 7b 3a 0f 6b 5b 29  %^]$[+%](${:.k[)
    2d 3a 00 00 00 00 00 00 00 00 00 00 00 00 00 00  -:..............
  backtrace:
    [<00000000187e1d70>] kmemdup_nul+0x2d/0x70 mm/util.c:151
    [<000000000a321ce9>] vfs_parse_fs_string+0x6e/0xd0 fs/fs_context.c:155
    [<00000000b47ec667>] generic_parse_monolithic+0xe0/0x130 fs/fs_context.c:201
    [<0000000064cfa327>] do_new_mount fs/namespace.c:2871 [inline]
    [<0000000064cfa327>] path_mount+0xbbb/0x1170 fs/namespace.c:3205
    [<000000004ab0c68c>] do_mount fs/namespace.c:3218 [inline]
    [<000000004ab0c68c>] __do_sys_mount fs/namespace.c:3426 [inline]
    [<000000004ab0c68c>] __se_sys_mount fs/namespace.c:3403 [inline]
    [<000000004ab0c68c>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3403
    [<0000000039897b00>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<0000000071aea8eb>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/09 10:11 upstream 7d8761ba27fc 40cc414d .config console log report syz C ci-upstream-gce-leak
2020/12/09 02:09 upstream 7d8761ba27fc a7f7f4a4 .config console log report syz C ci-upstream-gce-leak
2020/11/27 13:05 upstream 85a2c56cb445 5018c946 .config console log report syz C ci-upstream-gce-leak
2020/11/20 09:04 upstream 3494d58865ad 0767f13f .config console log report syz C ci-upstream-gce-leak
2020/11/12 22:30 upstream af5043c89a8e 77a55c8e .config console log report syz C ci-upstream-gce-leak
2020/12/05 07:51 upstream e87297fa080a 20366b87 .config console log report syz ci-upstream-gce-leak
2020/12/03 07:51 upstream 3bb61aa61828 8c9190ef .config console log report syz ci-upstream-gce-leak
2020/12/02 19:01 upstream 509a15421674 8c9190ef .config console log report syz ci-upstream-gce-leak
2020/11/30 22:26 upstream b65054597872 78d50c1d .config console log report syz ci-upstream-gce-leak
2020/11/29 10:53 upstream 45e885c439e8 a0092f9d .config console log report syz ci-upstream-gce-leak
2020/11/15 18:45 upstream e28c0d7c92c8 1bf9a662 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.