Thomas Weißschuh 0e148d3cca stackleak: Use a copy of the ctl_table argument
Sysctl handlers are not supposed to modify the ctl_table passed to them.
Adapt the logic to work with a temporary variable, similar to how it is
done in other parts of the kernel.

This is also a prerequisite to enforce the immutability of the argument
through the callbacks.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Tycho Andersen <tycho@tycho.pizza>
Link: https://lore.kernel.org/r/20240503-sysctl-const-stackleak-v1-1-603fecb19170@weissschuh.net
Signed-off-by: Kees Cook <keescook@chromium.org>
2024-05-03 12:35:12 -07:00
..
2024-03-31 11:23:51 -07:00
2024-03-12 17:44:08 -07:00
2024-03-24 10:45:31 -07:00
2024-03-21 17:16:46 -07:00
2024-03-26 09:25:57 -07:00
2024-03-27 10:01:24 -07:00
2024-03-11 10:21:06 -07:00
2024-03-11 12:02:50 -07:00
2023-12-23 15:52:13 +01:00
2024-03-21 13:34:15 -07:00
2024-03-01 12:23:37 +01:00
2023-12-01 09:51:44 -08:00
2024-03-13 12:53:53 -07:00
2024-01-09 16:20:17 -08:00
2023-12-12 14:24:14 +01:00
2023-10-30 17:56:53 -10:00
2023-12-29 12:22:29 -08:00
2024-01-09 12:57:46 -08:00
2024-03-21 13:34:15 -07:00