[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201912301029.E9739655@keescook>
Date: Mon, 30 Dec 2019 10:29:56 -0800
From: Kees Cook <keescook@...omium.org>
To: Sargun Dhillon <sargun@...gun.me>
Cc: linux-kernel@...r.kernel.org, linux-api@...r.kernel.org,
Jann Horn <jannh@...gle.com>,
Christian Brauner <christian.brauner@...ntu.com>,
Aleksa Sarai <cyphar@...har.com>,
Tycho Andersen <tycho@...ho.ws>
Subject: Re: [PATCH v3 2/3] seccomp: Check that seccomp_notif is zeroed out
by the user
On Sat, Dec 28, 2019 at 10:24:50PM -0800, Sargun Dhillon wrote:
> This patch is a small change in enforcement of the uapi for
> SECCOMP_IOCTL_NOTIF_RECV ioctl. Specifically, the datastructure which
> is passed (seccomp_notif) must be zeroed out. Previously any of its
> members could be set to nonsense values, and we would ignore it.
>
> This ensures all fields are set to their zero value.
>
> Signed-off-by: Sargun Dhillon <sargun@...gun.me>
> Cc: Kees Cook <keescook@...omium.org>
> Reviewed-by: Christian Brauner <christian.brauner@...ntu.com>
> Reviewed-by: Aleksa Sarai <cyphar@...har.com>
> Acked-by: Tycho Andersen <tycho@...ho.ws>
Applied!
--
Kees Cook
Powered by blists - more mailing lists