From: Adrian Hunter Date: Mon, 25 Mar 2024 06:40:07 +0000 (+0200) Subject: vdso: Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0c68458b0a5878d735572b4f4d91219a1db7c784;p=linux.git vdso: Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT in preparation to add multiplication overflow protection to the VDSO time getter functions. Suggested-by: Thomas Gleixner Signed-off-by: Adrian Hunter Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240325064023.2997-4-adrian.hunter@intel.com --- diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig index d883ac2995089..c46c2300517c9 100644 --- a/lib/vdso/Kconfig +++ b/lib/vdso/Kconfig @@ -30,4 +30,11 @@ config GENERIC_VDSO_TIME_NS Selected by architectures which support time namespaces in the VDSO +config GENERIC_VDSO_OVERFLOW_PROTECT + bool + help + Select to add multiplication overflow protection to the VDSO + time getter functions for the price of an extra conditional + in the hotpath. + endif