lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150520100831.GE4004@lukather>
Date:	Wed, 20 May 2015 12:08:31 +0200
From:	Maxime Ripard <maxime.ripard@...e-electrons.com>
To:	Chen-Yu Tsai <wens@...e.org>
Cc:	Nicolas Pitre <nicolas.pitre@...aro.org>,
	Dave Martin <Dave.Martin@....com>,
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	linux-sunxi@...glegroups.com
Subject: Re: [RFC 7/7] ARM: dts: sun9i: Add secure SRAM node used for MCPM
 SMP hotplug

On Thu, May 14, 2015 at 02:10:11PM +0800, Chen-Yu Tsai wrote:
> The A80 stores some magic flags in a portion of the secure SRAM. The
> BROM jumps directly to the software entry point set by the SMP code
> if the flags are set. This is required for CPU0 hotplugging.
> 
> Signed-off-by: Chen-Yu Tsai <wens@...e.org>
> ---
>  arch/arm/boot/dts/sun9i-a80.dtsi | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi
> index 1507bd2a88f0..0695215634d4 100644
> --- a/arch/arm/boot/dts/sun9i-a80.dtsi
> +++ b/arch/arm/boot/dts/sun9i-a80.dtsi
> @@ -366,6 +366,26 @@
>  		 */
>  		ranges = <0 0 0 0x20000000>;
>  
> +		sram_b: sram@...20000 {
> +			/* 256 KiB secure SRAM at 0x20000 */
> +			compatible = "mmio-sram";
> +			reg = <0x00020000 0x40000>;
> +

We should probably add a property to that SRAM to tell the driver not
to access it if we're not booted in secure mode.

Otherwise, bad things might happen.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ