From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E5F00185B6D for ; Wed, 8 Jan 2025 21:48:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736372907; cv=none; b=QCHKQMXwqCyrJQUhrLGQJEAYR5egcrflX9253c3VyKhZZbN1/haP6X+nCRKzrcQVYpH4/Lu33+2Us6JKxBame8cWxF4cPSLEmhN8NT0sb8GDcPMeCEKMbkWp2Of4n+Yz+YeVwjmXUJZBGbuBTzFRHmrOSJevqWjMu79FpYq/6Xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736372907; c=relaxed/simple; bh=6UUOHGd+KwqdJcDC5tzPLn5f+BTzR2NlW3LC2k/jO/4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fosTNjqh0od5mWloumKG1qcxT/prmnH9wAy0BPsiZUsMzUcURjf4GkTZQWKAZZSMF2ulMW/96CIDber/IFLTuPW6xqMIP8ALdRIJEgMjCNfjeEe31lb+p7buKV0n/gyn1BrXpsEjdpbG9Towy0SQH9Ir3cda2mjmn627KH4kCbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KYJhahsj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KYJhahsj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5296DC4CED3; Wed, 8 Jan 2025 21:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736372905; bh=6UUOHGd+KwqdJcDC5tzPLn5f+BTzR2NlW3LC2k/jO/4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KYJhahsjfU4O33TpAsv8ZoFaWSSrSGOAlmgT2jz3Tsdcoi+8nvRr7laMNTHlqR1MW UGYhddZwumJiwyMEb/thDgYCt8Xhzdee2RC+2DsupAkOjs5MoiGlrEK04t6gzi84nU wzGpiuFONyVED5IBXQx5FH5GLytKcgVQgo0FtmJkOjrvhjtxgpx8p2U9HoY7GM02+d NM+k/xkFsUNdczdE0umsHx+03wI3NET20z9unanFM+pKhsB2cIxBXee9aWwnblWJQC wyBsy6aikxPZu3ygf5XieW9U/7CuFj1NuaI+9JBVb6V9k9v+X0okAb6N2ifZGoIgxv 2CyT1yTq/vr/w== Date: Wed, 8 Jan 2025 13:48:21 -0800 From: Kees Cook To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , Naveen N Rao , Madhavan Srinivasan , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Arvind Sankar Subject: Re: [PATCH] powerpc/32: Stop printing Kernel virtual memory layout Message-ID: <202501081348.7F81D6079@keescook> References: <430bc8c1f2ff2eb9224b04450e22db472b0b9fa9.1736361630.git.christophe.leroy@csgroup.eu> 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: <430bc8c1f2ff2eb9224b04450e22db472b0b9fa9.1736361630.git.christophe.leroy@csgroup.eu> On Wed, Jan 08, 2025 at 07:40:38PM +0100, Christophe Leroy wrote: > Printing of Kernel virtual memory layout was added for debug purpose > by commit f637a49e507c ("powerpc: Minor cleanups of kernel virt > address space definitions") > > For security reasons, don't display the kernel's virtual memory layout. > > Other architectures have removed it through following commits. > > 071929dbdd86 ("arm64: Stop printing the virtual memory layout") > 1c31d4e96b8c ("ARM: 8820/1: mm: Stop printing the virtual memory layout") > 31833332f798 ("m68k/mm: Stop printing the virtual memory layout") > fd8d0ca25631 ("parisc: Hide virtual kernel memory layout") > 681ff0181bbf ("x86/mm/init/32: Stop printing the virtual memory layout") > > Commit 681ff0181bbf ("x86/mm/init/32: Stop printing the virtual memory > layout") thought x86 was the last one, but in reality powerpc/32 still > had it. > > So remove it now on powerpc/32 as well. > > Cc: Arvind Sankar > Cc: Kees Cook > Signed-off-by: Christophe Leroy Reviewed-by: Kees Cook -- Kees Cook