[PATCH v2 0/2] x86/vdso: Replace deprecated simple_strtoul() with kstrtouint()
From: Habil Eren Türker
Date: Mon Oct 05 2026 - 12:36:20 EST
This patch series replaces the deprecated simple_strtoul() function
with the safer kstrtouint() variant in the x86 vdso setup code.
The simple_strtoul() function is deprecated as it silently ignores
overflows. Proper bounds and lineer error checking are introduced.
Changes in v2:
- Fixed the logical short-circuit operator bug in parsing error paths
where invalid inputs could trigger deceptive warning logs.
- Refactored error handling into a linear flow with unlikely() macros
to avoid branch misprediction.
Habil Eren Türker (2):
x86/vdso: Replace deprecated simple_strtoul() with kstrtouint()
x86/vdso: Replace deprecated simple_strtoul() with kstrtouint() in
vdso_setup
arch/x86/entry/vdso/vdso32-setup.c | 11 +++++++++--
arch/x86/entry/vdso/vma.c | 15 ++++++++++++++-
2 files changed, 23 insertions(+), 3 deletions(-)
--
2.47.3