[PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation

Thorsten Blum posted 3 patches 1 week, 4 days ago
Documentation/admin-guide/kernel-parameters.txt |  5 +----
arch/x86/entry/vdso/vdso32-setup.c              | 10 ++++------
arch/x86/entry/vdso/vma.c                       |  6 +++++-
3 files changed, 10 insertions(+), 11 deletions(-)
[PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation
Posted by Thorsten Blum 1 week, 4 days ago
Replace the deprecated simple_strtoul() [1] with kstrtouint() when
parsing the vDSO boot parameters. This provides strict input validation,
rejects partial input, and warns when disabling vDSO for invalid values.

Adjust both warnings for consistency and update the documentation.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull

Thorsten Blum (3):
  x86/vdso: Use kstrtouint() to validate vdso= boot parameter
  x86/vdso: Use kstrtouint() to validate vdso32= boot parameter
  Documentation/arch/x86: Remove obsolete vdso32=2 compatibility note

 Documentation/admin-guide/kernel-parameters.txt |  5 +----
 arch/x86/entry/vdso/vdso32-setup.c              | 10 ++++------
 arch/x86/entry/vdso/vma.c                       |  6 +++++-
 3 files changed, 10 insertions(+), 11 deletions(-)


base-commit: 979c294509f9248fe1e7c358d582fb37dd5ca12d
Re: [PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation
Posted by Dave Hansen 1 week, 4 days ago
On 7/13/26 16:34, Thorsten Blum wrote:
> Replace the deprecated simple_strtoul() [1] with kstrtouint() when
> parsing the vDSO boot parameters. This provides strict input validation,
> rejects partial input, and warns when disabling vDSO for invalid values.

Hey Thorsten,

I'm curious what motivated this change. Were you trying to manipulate
the VDSO and ran into some difficulties? Or is it a larger effort to
audit and simple_strtoul() users?
Re: [PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation
Posted by Thorsten Blum 1 week, 4 days ago
On Mon, Jul 13, 2026 at 04:40:55PM -0700, Dave Hansen wrote:
> On 7/13/26 16:34, Thorsten Blum wrote:
> > Replace the deprecated simple_strtoul() [1] with kstrtouint() when
> > parsing the vDSO boot parameters. This provides strict input validation,
> > rejects partial input, and warns when disabling vDSO for invalid values.
> 
> Hey Thorsten,
> 
> I'm curious what motivated this change. Were you trying to manipulate
> the VDSO and ran into some difficulties? Or is it a larger effort to
> audit and simple_strtoul() users?

I just stumbled upon it while studying the code, and simple_strto*()
calls are often an opportunity to improve input validation.