syzbot


memory leak in prctl

Status: fixed on 2023/06/08 14:41
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+91edf9178386a07d06a7@syzkaller.appspotmail.com
Fix commit: a1193de562f5 mm: fix vma->anon_name memory leak for anonymous shmem VMAs
First crash: 667d, last: 667d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2 1/1] mm: fix vma->anon_name memory leak for anonymous shmem VMAs 7 (7) 2023/01/05 12:18
[PATCH 1/1] mm: fix vma->anon_name memory leak for anonymous shmem VMAs 6 (6) 2023/01/05 00:06
[syzbot] memory leak in prctl 0 (1) 2022/12/21 04:46

Sample crash report:
Warning: Permanently added '10.128.0.165' (ECDSA) to the list of known hosts.
executing program
BUG: memory leak
unreferenced object 0xffff88810c4c57a0 (size 32):
  comm "syz-executor948", pid 5064, jiffies 4294946184 (age 7.250s)
  hex dump (first 32 bytes):
    01 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:
    [<ffffffff814f8d16>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8d16>] __kmalloc+0x46/0x120 mm/slab_common.c:981
    [<ffffffff81564fb7>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff81564fb7>] anon_vma_name_alloc+0x27/0x60 mm/madvise.c:78
    [<ffffffff8128d4df>] prctl_set_vma kernel/sys.c:2324 [inline]
    [<ffffffff8128d4df>] __do_sys_prctl+0xaff/0xba0 kernel/sys.c:2627
    [<ffffffff848a05d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff848a05d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/17 04:42 upstream 77856d911a8c 05494336 .config console log report syz C ci-upstream-gce-leak memory leak in prctl
* Struck through repros no longer work on HEAD.