mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
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
This commit is contained in:
parent
5b26ef660a
commit
0c68458b0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user