syzbot


memory leak in do_seccomp

Status: fixed on 2020/10/10 01:52
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+3ad9614a12f80994c32e@syzkaller.appspotmail.com
Fix commit: a566a9012acd seccomp: don't leak memory when filter install races
First crash: 1516d, last: 1487d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.8 000/177] 5.8.10-rc1 review 196 (196) 2020/09/17 17:40
[GIT PULL] seccomp fixes for v5.9-rc5 2 (2) 2020/09/12 20:00
[PATCH 1/2] seccomp: don't leak memory when filter install races 7 (7) 2020/09/08 18:40
memory leak in do_seccomp 6 (8) 2020/09/01 15:26
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in do_seccomp (2) kernel C 4 770d 1319d 22/28 fixed on 2023/02/24 13:50

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/07 12:54 upstream f4d51dffc6c0 abf9ba4f .config console log report syz C ci-upstream-gce-leak
2020/09/06 05:06 upstream 9322c47b21b9 abf9ba4f .config console log report syz C ci-upstream-gce-leak
2020/09/03 07:20 upstream fc3abb53250a abf9ba4f .config console log report syz C ci-upstream-gce-leak
2020/08/31 03:49 upstream dcc5c6f013d8 d5a3ae1f .config console log report syz C ci-upstream-gce-leak
2020/08/18 06:57 upstream 06a4ec1d9dc6 424dd8e7 .config console log report syz ci-upstream-gce-leak
2020/08/09 00:33 upstream 449dc8c97089 f721e4a0 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.