qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1572329] Re: ARM emulation: r0 != 0 on boot


From: Sylvain
Subject: [Qemu-devel] [Bug 1572329] Re: ARM emulation: r0 != 0 on boot
Date: Wed, 20 Apr 2016 12:08:20 -0000

** Description changed:

- # arm-softmmu/qemu-system-arm -M raspi2 -m 1024 -smp 4 -kernel
- kernel.bin -serial stdio -dtb rpi2.dtb
+ The link register is not properly set up in the ARM bootloader code,
+ leading to the instruction which sets r0 to 0x00000000 to be skipped.
  
- My code shows r0 = 0x31 while it should be 0.
+ As a consequence, r0 may hold the value leaked from the board setup
+ code.
+ 
+ For instance, if using arm_write_secure_board_setup_dummy_smc, r0 holds
+ 0x00000031.
+ 
+ Attached is a patch to fix the issue.
+ 
+ Please include Sylvain Garrigues <address@hidden> in the
+ commit log.

** Summary changed:

- ARM emulation: r0 != 0 on boot
+ ARM bootloader does not set r0 to 0

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1572329

Title:
  ARM bootloader does not set r0 to 0

Status in QEMU:
  New

Bug description:
  The link register is not properly set up in the ARM bootloader code,
  leading to the instruction which sets r0 to 0x00000000 to be skipped.

  As a consequence, r0 may hold the value leaked from the board setup
  code.

  For instance, if using arm_write_secure_board_setup_dummy_smc, r0
  holds 0x00000031.

  Attached is a patch to fix the issue.

  Please include Sylvain Garrigues <address@hidden> in the
  commit log.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1572329/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]