From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 2F1B013B7A1 for ; Tue, 14 Jan 2025 14:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736863802; cv=none; b=AsBiq2sZf4sOASSkqi1PqhQqR2gCtHiC9DwNLbr5NzIRfYXzSlOp/tlyIV3kCTgREeyddWCRKQpEn/M46a77Hj2TvRH3faavHFGkZU0UG27cPU388MqjAxuAH5EMdexsE3ff4cVRRwgOTqGW8zVMpXHQ4nCD+KC894OHvm3b/LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736863802; c=relaxed/simple; bh=+W6FSV5BtApDP5sYJpkyT9SM3hOQRcfucFMotEJCflM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X/BNsJA5Ydpfm6P2OCafNpf/iTVSawzeSjAd/rgGYkHN40BBT/YGuiHKrhRfBJu1nz/kYpMl+elWcGQTKqTqaDyzof+KknVd0qjxJ3q7fs+tiYU4u4f1uK2gXWvX2uFm+Ctpln79TFK3GUi+/XgtG71SOM5GLihbezgPUDJhyWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=BPRNrOaN; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BPRNrOaN" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8N8TWaWVS8QUfQSTpE0AXXKomZH679WQIvkcq5TDw2Q=; b=BPRNrOaN5zVoLqlepegynABydt MghLGYkJEXQhXsXWEWBcS85x6SfLC1arfT7m/16bJJisELQIenAy6egO1oVOk+sqFn6263oR9Yg2/ eongLa4iUJsv00aiM5ST73DyI5RvWvPW476RIw68vX5J5d1o8b6dLX+63MHGI5GKWsGgIEVkPDNMv hRgJ9f5BwEWUNSClGFNEE/zxUapej1ZxyjVPAOUJDsE90ZACYOyx5yjGZE+84GRtYQJZXMq1qmpWi nxqXxmNPkvJEhB7f59xuY/LTPWACkEJty0349Vx1c4nrdsnpFX9qydsXq3AAAlRtXfBHljr6MSmqf 2hHeaZlQ==; Received: from 77-249-17-89.cable.dynamic.v4.ziggo.nl ([77.249.17.89] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98 #2 (Red Hat Linux)) id 1tXhcB-0000000ASzJ-0C6V; Tue, 14 Jan 2025 14:09:55 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 99E2D30063F; Tue, 14 Jan 2025 15:09:54 +0100 (CET) Date: Tue, 14 Jan 2025 15:09:54 +0100 From: Peter Zijlstra To: Borislav Petkov Cc: Nir Lichtman , "dave.hansen@linux.intel.com" , "luto@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "m.younesbadr@gmail.com" , Nir Lichtman Subject: Re: [PATCH v2 RESEND] x86/kaslr: Ingest nokaslr to avoid passing it to init process Message-ID: <20250114140954.GR5388@noisy.programming.kicks-ass.net> References: <20250114093643.GK5388@noisy.programming.kicks-ass.net> <20250114123142.GCZ4ZZLiIBm2cMg9ny@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@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: <20250114123142.GCZ4ZZLiIBm2cMg9ny@fat_crate.local> On Tue, Jan 14, 2025 at 01:31:42PM +0100, Borislav Petkov wrote: > On Tue, Jan 14, 2025 at 10:36:43AM +0100, Peter Zijlstra wrote: > > On Sat, Jan 11, 2025 at 02:17:43PM +0000, Nir Lichtman wrote: > > > Problem: Currently booting the kernel with "nokaslr" on x86 incorrectly > > > doesn't recognize this parameter and passes it on to the init process > > > > What now? I'm pretty sure nokaslr works, it's in all my test machines > > and qemu scripts. Without it faddr2line wouldn't work, which I would > > notice in a hurry. > > Yeah, the param itself works - he doesn't want to pass it on to the init > process because then it says: > > [ 0.073613] Unknown kernel command line parameters "nokaslr", will be passed to user space. > > due to our detection of which parameters got eaten and which didn't. I had never noticed; random machine of mine says: [ 0.591565] Unknown kernel command line parameters "force_early_printk nokaslr kgdboc=ttyS0", will be passed to user space. *shrug*, who cares.