Re: [PATCH] sysctl: Make sure proc handlers can't expose heap memory

From: Christoph Hellwig
Date: Tue May 05 2020 - 01:58:23 EST


On Mon, May 04, 2020 at 12:08:55PM -0700, Kees Cook wrote:
> Just as a precaution, make sure that proc handlers don't accidentally
> grow "count" beyond the allocated kbuf size.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> ---
> This applies to hch's sysctl cleanup tree...

This looks ok o me. You should probably add Al to the Cc list as
he has picked up my series into a branch of vfs.git.

Acked-by: Christoph Hellwig <hch@xxxxxx>