Skip to content

x86/vdso: Improve vdso=/vdso32= boot parameter validation

Thorsten Blum linux-doc lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 2 repliesIn review
  2. v1 posting 1/23 patches 1 replySuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/vdso: Use kstrtouint() to validate vdso= boot parameterarch/x86/entry/vdso/vma.c+5 -10 replies
2/3x86/vdso: Use kstrtouint() to validate vdso32= boot parameterarch/x86/entry/vdso/vdso32-setup.c+4 -60 replies
3/3Documentation/arch/x86: Remove obsolete vdso32=2 compatibility noteDocumentation/admin-guide/kernel-parameters.txt+1 -40 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRandy Dunlap
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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