Re: [PATCH v2 08/18] stackleak: don't modify ctl_table argument

From: Kees Cook
Date: Mon Dec 04 2023 - 17:14:57 EST


On Mon, Dec 04, 2023 at 08:52:21AM +0100, Thomas Weißschuh wrote:
> In a future commit the proc_handlers will change to
> "const struct ctl_table".
> As a preparation for that adapt the logic to work with a temporary
> variable, similar to how it is done in other parts of the kernel.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

Looks good -- thanks for catching the table-modification cases.

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook