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

Thorsten Blum posted 3 patches 12 hours 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 0/3] x86/vdso: improve vdso=/vdso32= boot parameter validation
Posted by Thorsten Blum 12 hours 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