Re: [PATCH] seccomp: Check flags on seccomp_notif is unset
From: Tycho Andersen
Date: Fri Dec 27 2019 - 09:47:06 EST
On Fri, Dec 27, 2019 at 09:22:20AM -0500, Sargun Dhillon wrote:
> Just doing a simple copy_from_user, and for now, calling memchr_inv
> on the whole thing. We can drop the memset, and just leave a note to
> indicate that if unpadded fields are introduced in the future, this structure
> must be manually zeroed out. Although, this might be laying a trap for
> ourselves.
Yes, please keep the memset().
Tycho