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

From: Thorsten Blum

Date: Tue Jul 14 2026 - 07:20:24 EST


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.