syzbot


memory leak in ext4_multi_mount_protect

Status: fixed on 2021/11/10 00:50
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+d9e482e303930fa4f6ff@syzkaller.appspotmail.com
Fix commit: 618f003199c6 ext4: fix memory leak in ext4_fill_super
First crash: 1301d, last: 1120d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 5.13 001/189] drm/etnaviv: fix NULL check before some freeing functions is not needed 201 (201) 2021/08/09 16:06
[PATCH 5.12 000/242] 5.12.18-rc1 review 258 (258) 2021/07/22 14:12
[PATCH 5.10 000/215] 5.10.51-rc1 review 225 (225) 2021/07/17 01:20
[PATCH 5.13 000/266] 5.13.3-rc1 review 276 (276) 2021/07/16 18:08
[PATCH] ext4: fix memory leak in ext4_fill_super 15 (15) 2021/06/17 01:15
memory leak in ext4_multi_mount_protect 0 (2) 2021/04/09 05:43
Last patch testing requests (2)
Created Duration User Patch Repo Result
2021/04/30 18:23 17m paskripkin@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/76/10176/6 OK
2021/04/12 19:57 17m paskripkin@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/76/10176/1 OK

Sample crash report:
executing program
BUG: memory leak
unreferenced object 0xffff888111edd780 (size 32):
  comm "syz-executor633", pid 8448, jiffies 4294951405 (age 17.620s)
  hex dump (first 32 bytes):
    10 64 d1 0f 81 88 ff ff 00 10 7e 12 81 88 ff ff  .d........~.....
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81744606>] kmalloc include/linux/slab.h:554 [inline]
    [<ffffffff81744606>] ext4_multi_mount_protect+0x4a6/0x5d0 fs/ext4/mmp.c:367
    [<ffffffff81783614>] ext4_fill_super+0x56a4/0x5b20 fs/ext4/super.c:4769
    [<ffffffff8154ebf3>] mount_bdev+0x223/0x260 fs/super.c:1367
    [<ffffffff815aee7b>] legacy_get_tree+0x2b/0x90 fs/fs_context.c:592
    [<ffffffff8154c7e8>] vfs_get_tree+0x28/0x100 fs/super.c:1497
    [<ffffffff8158c8ee>] do_new_mount fs/namespace.c:2903 [inline]
    [<ffffffff8158c8ee>] path_mount+0xc3e/0x1120 fs/namespace.c:3233
    [<ffffffff8158d51e>] do_mount fs/namespace.c:3246 [inline]
    [<ffffffff8158d51e>] __do_sys_mount fs/namespace.c:3454 [inline]
    [<ffffffff8158d51e>] __se_sys_mount fs/namespace.c:3431 [inline]
    [<ffffffff8158d51e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3431
    [<ffffffff842ded2d>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/09 05:42 upstream 4fa56ad0d12e 6a81331a .config console log report syz C ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/06/19 16:09 upstream b1edae0d5f2e aba2b2fb .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/06/15 02:37 upstream 009c9aa5be65 1ba81399 .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/02/05 06:50 upstream 5c279c4cf206 23a562df .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/02/03 14:52 upstream 3aaf0a27ffc2 624dad51 .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/02/01 01:24 upstream 6642d600b541 fc9fd31e .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/01/23 05:19 upstream 83d09ad4b950 4080af96 .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/01/21 18:14 upstream 9791581c049c d4f4eca5 .config console log report syz ci-upstream-gce-leak memory leak in ext4_multi_mount_protect
2021/01/16 15:36 upstream 1d94330a437a 65a7a854 .config console log report syz ci-upstream-gce-leak
2021/01/14 23:51 upstream 65f0d2414b70 65a7a854 .config console log report syz ci-upstream-gce-leak
2021/01/04 06:06 upstream e71ba9452f0b 79264ae3 .config console log report syz ci-upstream-gce-leak
2020/12/20 09:53 upstream 467f8165a2b0 04201c06 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.