Re: [PATCH] commands: smc: disable -c (start cpu) test option for ARMv8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 05, 2021 at 01:36:13PM +0200, Ahmad Fatoum wrote:
> This option is meant for debugging and was only tested on an ARMv7 CPU.
> On ARMv8, the handshake times out and the code executing on the second
> CPU invokes undefined behavior by modifying the stack base from a non-
> naked function. This led so far to a warning, which went unnoticed, but
> a follow-up commit will make it an error to use arm_setup_stack on
> ARM64. Prepare for this by disabling -c usage on ARM64.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
> Please reorder before "ARM: document arm_setup_stack() pitfalls"
> ---
>  commands/smc.c | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux