syzbot


memory leak in gfs2_init_fs_context

Status: fixed on 2019/11/06 12:39
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+c2fdfd2b783754878fb6@syzkaller.appspotmail.com
Fix commit: 30aecae86e91 gfs2: Fix memory leak when gfs2meta's fs_context is freed
First crash: 1835d, last: 1809d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] gfs2: Fix memory leak when gfs2meta's fs_context is freed 2 (2) 2019/10/04 17:20
memory leak in gfs2_init_fs_context 0 (1) 2019/10/03 00:19

Sample crash report:
executing program
executing program
BUG: memory leak
unreferenced object 0xffff88810b0c6a00 (size 256):
  comm "syz-executor991", pid 7059, jiffies 4294945372 (age 14.400s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<000000002ffb99ef>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<000000002ffb99ef>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<000000002ffb99ef>] slab_alloc mm/slab.c:3319 [inline]
    [<000000002ffb99ef>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<0000000008638669>] kmalloc include/linux/slab.h:556 [inline]
    [<0000000008638669>] kzalloc include/linux/slab.h:690 [inline]
    [<0000000008638669>] gfs2_init_fs_context+0x25/0x90 fs/gfs2/ops_fstype.c:1543
    [<0000000049d0a691>] gfs2_meta_init_fs_context+0x17/0x40 fs/gfs2/ops_fstype.c:1608
    [<00000000c0b44384>] alloc_fs_context+0x174/0x200 fs/fs_context.c:293
    [<0000000080f8aa45>] fs_context_for_mount+0x25/0x30 fs/fs_context.c:307
    [<00000000fc9e230a>] do_new_mount fs/namespace.c:2808 [inline]
    [<00000000fc9e230a>] do_mount+0x881/0xc60 fs/namespace.c:3143
    [<000000008b7c696d>] ksys_mount+0xab/0x120 fs/namespace.c:3352
    [<000000003ab912b3>] __do_sys_mount fs/namespace.c:3366 [inline]
    [<000000003ab912b3>] __se_sys_mount fs/namespace.c:3363 [inline]
    [<000000003ab912b3>] __x64_sys_mount+0x26/0x30 fs/namespace.c:3363
    [<00000000aa2add83>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000ae9fe76c>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/25 04:01 upstream f116b96685a0 d01bb02a .config console log report syz C ci-upstream-gce-leak
2019/10/24 06:45 upstream 13b86bc4cd64 b602d64b .config console log report syz C ci-upstream-gce-leak
2019/10/21 00:16 upstream 4fe34d61a3a9 8c88c9c1 .config console log report syz C ci-upstream-gce-leak
2019/10/20 09:41 upstream 531e93d11470 8c88c9c1 .config console log report syz C ci-upstream-gce-leak
2019/10/12 12:42 upstream 1c0cc5f1ae5e 426631dd .config console log report syz C ci-upstream-gce-leak
2019/10/10 08:03 upstream 8a8c600de5dc c4b9981b .config console log report syz C ci-upstream-gce-leak
2019/10/09 21:47 upstream e3280b54afed 312c6a5a .config console log report syz C ci-upstream-gce-leak
2019/10/07 08:27 upstream 7cdb85df6061 f3f7d9c8 .config console log report syz C ci-upstream-gce-leak
2019/10/07 08:04 upstream 7cdb85df6061 f3f7d9c8 .config console log report syz C ci-upstream-gce-leak
2019/10/05 18:38 upstream 4ea655343ce4 f3f7d9c8 .config console log report syz C ci-upstream-gce-leak
2019/10/04 06:09 upstream cc3a7bfe62b9 fc17ba49 .config console log report syz C ci-upstream-gce-leak
2019/09/29 22:57 upstream a3c0e7b1fe1f c1ad5441 .config console log report syz C ci-upstream-gce-leak
2019/09/28 20:17 upstream f1f2f614d535 eb6b9855 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.