aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorAndrew Donnellan <[email protected]>2023-02-10 19:03:37 +1100
committerMichael Ellerman <[email protected]>2023-02-12 22:12:36 +1100
commitfcf63d6b8ab9b12c2ce1b4bde12a3c391029c998 (patch)
tree19914360c5e6aa2c1f3a248c4ddb837657dbbb54 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentf74dcbfd27c647af9b7b83f3711c63712c677abd (diff)
powerpc/pseries: Fix alignment of PLPKS structures and buffers
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 boundaries - Password output buffers must not cross page boundaries To ensure correct alignment, we adjust the allocation size of each of these structures/buffers to be the closest power of 2 that is at least the size of the structure/buffer (since kmalloc() guarantees that an allocation of a power of 2 size will be aligned to at least that size). Reported-by: Benjamin Gray <[email protected]> Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore") Signed-off-by: Andrew Donnellan <[email protected]> Reviewed-by: Russell Currey <[email protected]> Signed-off-by: Russell Currey <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions