mbox series

[0/2] arm/arm64: smccc-1.1 fixes

Message ID 20180824140830.12747-1-marc.zyngier@arm.com (mailing list archive)
Headers show
Series arm/arm64: smccc-1.1 fixes | expand

Message

Marc Zyngier Aug. 24, 2018, 2:08 p.m. UTC
Julien Grall recently reported that our smccc-1.1 helpers suffer from
a couple of glaring problems:

- the return values are not necessarily of the same type as the input,
  and we may end-up truncating them

- the macros are not safe in the presence of function calls passed as
  parameters.

These two patches are trying to handle that. Note that the current use
of these macros in the kernel is safe, so this is not an urgent fix.

Marc Zyngier (2):
  arm/arm64: smccc-1.1: Make return values unsigned long
  arm/arm64: amccc-1.1: Handle function result as parameters

 include/linux/arm-smccc.h | 38 ++++++++++++++++++++++++--------------
 1 file changed, 24 insertions(+), 14 deletions(-)