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

This patch series replaces the deprecated simple_strtol() function
with the sscanf() in the x86 APIC code to ensure robust parsing.

The simple_strtol() function is deprecated as it silently ignores
overflows. Replacing it with sscanf() maintains the original flexible
parsing behavior while eliminating the deprecated function usage.

Changes in v2:
- Replaced the initial strict kstrtouint() implementation with sscanf()
  to prevent regressions on platforms where fwnode names contain trailing
  hardware addresses.
- Cleaned up redundant strncmp() invocations since sscanf() handles format
  matching.

Habil Eren Türker (2):
  x86/apic: Replace deprecated simple_strtol() with sscanf() for robust
    parsing
  x86/apic: Replace deprecated simple_strtol() with sscanf() in
    x86_fwspec_is_hpet()

 arch/x86/kernel/apic/vector.c | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-10-06  5:10 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:32 [PATCH v2 0/2] x86/apic: Replace deprecated simple_strtol() with sscanf() for robust parsing Habil Eren Türker
2026-10-05 16:32 ` [PATCH v2 1/2] " Habil Eren Türker
2026-10-05 16:32 ` [PATCH v2 2/2] x86/apic: Replace deprecated simple_strtol() with sscanf() in x86_fwspec_is_hpet() Habil Eren Türker
2026-10-06  3:11   ` kernel test robot
2026-10-06  5:09   ` kernel test robot

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®