From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1286346A0D for ; Mon, 13 Jul 2026 23:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783985729; cv=none; b=nf4ZyaXtvvDPC2iXHz4/zgZ8TQNZWe52XG3FWcGb+A7KuOndF4627qV0nlVbsKO/RSaGgY0DHpGF9Lx7X4fbNmRp+5+rQV7f6re9kuwLHjthF5z9uBvzPAdLDQPuDs3WmTy0DUvmjotp/a6Xyix83eWFcYC6jV8xxcm5RruEiXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783985729; c=relaxed/simple; bh=yPVMwCLgnyNe/t3eNvupdQki5tgzzLQWgNOEymae3F0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DFCQKwEPmveWmobDDBBJlgDys+QBNSXbbZHtJhDh0BIjZ5peZ4HCvw8axwhWhdMjn3fiDQr7851JmKC0axJPDOuJEX9gwLp1uj8Nty50qhYRi4UI/GuK7JIuUcehHPFthiaUzc9Q49wQRQWUyq2NdGrq4k1f1wkjh1eoeoOPagc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ARblUxDw; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ARblUxDw" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783985725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FHVGlNEvFJn/BK7H+YlbY2UWGmJPbcmZFwEi8OkY3qI=; b=ARblUxDwrB6jCMBB6Njvy92ejoBMiGOoWcPghFyE1TLYjUqXkvZubmmfTrSgdyeECPgdhs 3qrPiBw5SnbePgtVILLcnMPw73mMVP1xhMJ3pp3qNjd6cVoxXA+kMtfKXuyG63eFZJO9Vc YXVGHGAdN6U/doxHSjcSF9eHWjIDzqw= From: Thorsten Blum To: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andrew Morton , Jonathan Corbet , Shuah Khan , Randy Dunlap Cc: x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Thorsten Blum Subject: [PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation Date: Tue, 14 Jul 2026 01:34:23 +0200 Message-ID: <20260713233422.127348-5-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=940; i=thorsten.blum@linux.dev; h=from:subject; bh=yPVMwCLgnyNe/t3eNvupdQki5tgzzLQWgNOEymae3F0=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmhpf9+ZMda23sfcQvLzv1ixnkyQu/fzUlffv7ewvJHv IeleFJdRykLgxgXg6yYIsuDWT9m+JbWVG4yidgJM4eVCWQIAxenAEzk8XqG/9m7jijs3lnk57qJ /8mBdZbTldizCuvjTYT+8pwS7KsxyWBkOJm8vOhN5OLvlz0z/rzrutn4MMBj1uP/Zdcn+Yau+Kf uyQEA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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