Re: [PATCH v3] seccomp: Move copy_seccomp() to no failure path.

From: Kees Cook
Date: Mon Aug 29 2022 - 15:17:34 EST


On Tue, 23 Aug 2022 08:45:32 -0700, Kuniyuki Iwashima wrote:
> Our syzbot instance reported memory leaks in do_seccomp() [0], similar
> to the report [1]. It shows that we miss freeing struct seccomp_filter
> and some objects included in it.
>
> We can reproduce the issue with the program below [2] which calls one
> seccomp() and two clone() syscalls.
>
> [...]

Applied to for-linus/seccomp, thanks!

[1/1] seccomp: Move copy_seccomp() to no failure path.
https://git.kernel.org/kees/c/6d17452707ca

--
Kees Cook