]> Gentwo Git Trees - linux/.git/commit
mm: security: Allow default HARDENED_USERCOPY to be set at compile time
authorMel Gorman <mgorman@techsingularity.net>
Thu, 23 Jan 2025 22:11:13 +0000 (22:11 +0000)
committerKees Cook <kees@kernel.org>
Tue, 11 Feb 2025 00:40:15 +0000 (16:40 -0800)
commitcaba7c35e832c8cc2d8f3ecaa0d6ce8c8872a582
tree2d6b3b685ca938ff225b35690fc7439e2dca5c81
parent8907c768bc27832a3b46ee1e579fd007555182d1
mm: security: Allow default HARDENED_USERCOPY to be set at compile time

HARDENED_USERCOPY defaults to on if enabled at compile time. Allow
hardened_usercopy= default to be set at compile time similar to
init_on_alloc= and init_on_free=. The intent is that hardening
options that can be disabled at runtime can set their default at
build time.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Link: https://lore.kernel.org/r/20250123221115.19722-3-mgorman@techsingularity.net
Signed-off-by: Kees Cook <kees@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
mm/usercopy.c
security/Kconfig.hardening