]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 28 Feb 2025 19:51:31 +0000 (11:51 -0800)
commitd2132f453e3308adc82ab7c101bd5220a9a34167
tree4971a7438d70cdff1ac07fec100879a45a28af89
parentf4d4e8b9d6afe880a855e919c4ba4139455e11db
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