[PATCH] powerpc/pseries: Fix endianness issue when parsing PLPKS secvar flags

Michael Ellerman patch-notifications at ellerman.id.au
Mon Feb 20 14:49:19 AEDT 2023


On Thu, 16 Feb 2023 18:09:03 +1100, Andrew Donnellan wrote:
> When a user updates a variable through the PLPKS secvar interface, we take
> the first 8 bytes of the data written to the update attribute to pass
> through to the H_PKS_SIGNED_UPDATE hcall as flags. These bytes are always
> written in big-endian format.
> 
> Currently, the flags bytes are memcpy()ed into a u64, which is then loaded
> into a register to pass as part of the hcall. This means that on LE
> systems, the bytes are in the wrong order.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/pseries: Fix endianness issue when parsing PLPKS secvar flags
      https://git.kernel.org/powerpc/c/7096deb7b5387e7899655213b7430ab043ddda4f

cheers


More information about the Linuxppc-dev mailing list