mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86/vdso: Replace deprecated simple_strtoul() with kstrtouint()
@ 2026-10-05 16:33 Habil Eren Türker
  2026-10-05 16:33 ` [PATCH v2 1/2] " Habil Eren Türker
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Habil Eren Türker @ 2026-10-05 16:33 UTC (permalink / raw)
  To: luto, tglx, mingo, bp, dave.hansen, x86
  Cc: hpa, linux-kernel, Habil Eren Türker

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-06 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 16:33 [PATCH v2 0/2] x86/vdso: Replace deprecated simple_strtoul() with kstrtouint() Habil Eren Türker
2026-10-05 16:33 ` [PATCH v2 1/2] " Habil Eren Türker
2026-10-05 16:33 ` [PATCH v2 2/2] x86/vdso: Replace deprecated simple_strtoul() with kstrtouint() in vdso_setup Habil Eren Türker
2026-10-05 17:07 ` [PATCH v2 0/2] x86/vdso: Replace deprecated simple_strtoul() with kstrtouint() Thorsten Blum
2026-10-06 20:12   ` Habil Eren Türker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®