Thread (2 messages) flat view 2 messages, 2 authors, 2023-02-20

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

From: Michael Ellerman <hidden>
Date: 2023-02-20 03:52:09

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help