From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 BFD183630AE for ; Tue, 14 Jul 2026 11:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784027989; cv=none; b=IPfX1d82CJ1nftNueZZr95uD2ahKDE+nDElLFQkViMn5q+dox2Kik8CY3SBFK0ChtVoqxKYRQ8gGyU7D2G8g6rjkYWUOKJvE13vLRIhDUDpwcBRMvtUicj21dHP7dVQ1eIY1K9VhuarydwHYm2O2w1NS+fFSomOqE/exHw5gGjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784027989; c=relaxed/simple; bh=9hIfe0/tKGQr3wplwygaz9vy9nS1WvRxv2rlQTbTWoY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gR7rT1bXgpjFnL22OM/rMenuL8aGDVAq0ReB/y9vhtH/eBZbvbqiSRswTo8R+kt4uKDA7RCdesp6imw5rXEwcM/iP/JcAfUsDb+Z6f2F1au2traiJl/7q3nyHPlvBX8JorwSNVGPw/dNoPmTc6mLnC6ywQ9CFwKt6o6khO4POmQ= 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=V/H6ycir; arc=none smtp.client-ip=95.215.58.182 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="V/H6ycir" Date: Tue, 14 Jul 2026 13:19:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784027985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Af73+vG2sOh1qiwJ+CI1BNZVy77wvK6uB50Y1nftWjc=; b=V/H6ycir0SiBz9PquxIA0hWRKkKxSSvXXIh6Hhv/ylg7rJvX/86eUu501ubbJv7RpOzLg1 eR4b5DKszuGZE9+DJbNM9QQsAaJ8vtvaWELPiRZk9SJ0Vax04hicI3beGDjUgBXx1gpx5I WZTpptYZ/Gjols4XkrFkunX/0zJZYs0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum To: Dave Hansen Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andrew Morton , Jonathan Corbet , Shuah Khan , Randy Dunlap , x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND 0/3] x86/vdso: Improve vdso=/vdso32= boot parameter validation Message-ID: References: <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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT 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.