syzbot


memory leak in do_seccomp

Status: fixed on 2020/10/10 01:52
Reported-by: syzbot+3ad9614a12f80994c32e@syzkaller.appspotmail.com
Fix commit: a566a9012acd seccomp: don't leak memory when filter install races
First crash: 696d, last: 666d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in do_seccomp (2) C 2 267d 499d 0/22 upstream: reported C repro on 2021/02/22 09:25

Sample crash report:
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888119ae6ec0 (size 64):
  comm "syz-executor865", pid 6475, jiffies 4294942425 (age 12.970s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 c8 6e ae 19 81 88 ff ff  .........n......
    c8 6e ae 19 81 88 ff ff 37 1d 73 7b 99 6e 74 c4  .n......7.s{.nt.
  backtrace:
    [<00000000bd2f0c5c>] kmalloc include/linux/slab.h:554 [inline]
    [<00000000bd2f0c5c>] kzalloc include/linux/slab.h:666 [inline]
    [<00000000bd2f0c5c>] init_listener kernel/seccomp.c:1473 [inline]
    [<00000000bd2f0c5c>] seccomp_set_mode_filter kernel/seccomp.c:1546 [inline]
    [<00000000bd2f0c5c>] do_seccomp+0x8ce/0xd40 kernel/seccomp.c:1649
    [<00000000ca9b7c07>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<00000000d58a522b>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2020/09/07 12:54 upstream f4d51dffc6c0 abf9ba4f .config log report syz C
ci-upstream-gce-leak 2020/09/06 05:06 upstream 9322c47b21b9 abf9ba4f .config log report syz C
ci-upstream-gce-leak 2020/09/03 07:20 upstream fc3abb53250a abf9ba4f .config log report syz C
ci-upstream-gce-leak 2020/08/31 03:49 upstream dcc5c6f013d8 d5a3ae1f .config log report syz C
ci-upstream-gce-leak 2020/08/18 06:57 upstream 06a4ec1d9dc6 424dd8e7 .config log report syz
ci-upstream-gce-leak 2020/08/09 00:33 upstream 449dc8c97089 f721e4a0 .config log report syz