Skip to content

Commit 0c68458

Browse files
ahunter6KAGA-KOKO
authored andcommitted
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 <tglx@linutronix.de> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240325064023.2997-4-adrian.hunter@intel.com
1 parent 5b26ef6 commit 0c68458

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/vdso/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,11 @@ config GENERIC_VDSO_TIME_NS
3030
Selected by architectures which support time namespaces in the
3131
VDSO
3232

33+
config GENERIC_VDSO_OVERFLOW_PROTECT
34+
bool
35+
help
36+
Select to add multiplication overflow protection to the VDSO
37+
time getter functions for the price of an extra conditional
38+
in the hotpath.
39+
3340
endif

0 commit comments

Comments
 (0)