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

2023-02-19 Thread Michael Ellerman
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 b

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

2023-02-15 Thread Andrew Donnellan
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