syzbot


memory leak in do_seccomp (2)

Status: fixed on 2023/02/24 13:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+ab17848fe269b573eb71@syzkaller.appspotmail.com
Fix commit: a1140cb215fa seccomp: Move copy_seccomp() to no failure path.
First crash: 1219d, last: 668d
Discussions (5)
Title Replies (including bot) Last reply
[GIT PULL] seccomp updates for v6.2-rc1 2 (2) 2022/12/12 17:33
[PATCH v1] seccomp: Release filter when copy_process() fails. 7 (7) 2022/09/02 03:16
[PATCH v3] seccomp: Move copy_seccomp() to no failure path. 3 (3) 2022/08/29 19:17
[PATCH v2] seccomp: Move copy_seccomp() to no failure path. 3 (3) 2022/08/23 10:06
memory leak in do_seccomp (2) 0 (1) 2021/02/22 09:25
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in do_seccomp kernel C 6 1385d 1412d 15/27 fixed on 2020/10/10 01:52
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/04/15 11:51 6m mudongliangabcd@gmail.com git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -- report log
2021/03/29 17:40 8m alaaemadhossney.ae@gmail.com upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810ced3500 (size 256):
  comm "syz-executor340", pid 3640, jiffies 4294955435 (age 8.050s)
  hex dump (first 32 bytes):
    01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00  ................
    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
  backtrace:
    [<ffffffff81372765>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff81372765>] kzalloc include/linux/slab.h:733 [inline]
    [<ffffffff81372765>] seccomp_prepare_filter kernel/seccomp.c:666 [inline]
    [<ffffffff81372765>] seccomp_prepare_user_filter kernel/seccomp.c:708 [inline]
    [<ffffffff81372765>] seccomp_set_mode_filter kernel/seccomp.c:1871 [inline]
    [<ffffffff81372765>] do_seccomp+0x195/0x1240 kernel/seccomp.c:1991
    [<ffffffff845ad915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845ad915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/13 00:29 upstream 72a8e05d4f66 d91dd8ea .config console log report syz C ci-upstream-gce-leak memory leak in do_seccomp
2021/02/20 10:11 upstream f40ddce88593 f689d40a .config console log report syz C ci-upstream-gce-leak memory leak in do_seccomp
2022/08/25 09:44 upstream c40e8341e3b3 514514f6 .config console log report syz ci-upstream-gce-leak memory leak in do_seccomp
2021/10/11 17:25 upstream 64570fbc14f8 838e7e2c .config console log report syz ci-upstream-gce-leak memory leak in do_seccomp
* Struck through repros no longer work on HEAD.