All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm/arm64: smccc-1.1 fixes
@ 2018-08-24 14:08 Marc Zyngier
  2018-08-24 14:08 ` [PATCH 1/2] arm/arm64: smccc-1.1: Make return values unsigned long Marc Zyngier
  2018-08-24 14:08 ` [PATCH 2/2] arm/arm64: amccc-1.1: Handle function result as parameters Marc Zyngier
  0 siblings, 2 replies; 4+ messages in thread
From: Marc Zyngier @ 2018-08-24 14:08 UTC (permalink / raw)
  To: linux-arm-kernel

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(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-29 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-24 14:08 [PATCH 0/2] arm/arm64: smccc-1.1 fixes Marc Zyngier
2018-08-24 14:08 ` [PATCH 1/2] arm/arm64: smccc-1.1: Make return values unsigned long Marc Zyngier
2018-08-29 10:41   ` Will Deacon
2018-08-24 14:08 ` [PATCH 2/2] arm/arm64: amccc-1.1: Handle function result as parameters Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.