Re: [PATCH 2/4] powerpc/pseries: Fix alignment of PLPKS structures and buffers

From
Russell Currey <hidden>
Date
2023-01-04 03:47:58
Reply to
Andrew Donnellan, 2022-12-20
On Tue, 2022-12-20 at 18:16 +1100, Andrew Donnellan wrote:
A number of structures and buffers passed to PKS hcalls have
alignment
requirements, which could on occasion cause problems:

- Authorisation structures must be 16-byte aligned and must not cross
a
  page boundary

- Label structures must not cross page coundaries

- Password output buffers must not cross page boundaries

Round up the allocations of these structures/buffers to the next
power of
2 to make sure this happens.

Reported-by: Benjamin Gray <redacted>
Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform
KeyStore")
Signed-off-by: Andrew Donnellan <redacted>
Reviewed-by: Russell Currey <redacted>
Thread (13 messages) 13 messages, 3 authors, last reply 2023-01-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help