security/integrity: fix pointer to ESL data and its size on pseries
authorNayna Jain <nayna@linux.ibm.com>
Thu, 8 Jun 2023 12:04:44 +0000 (08:04 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Jun 2023 04:08:53 +0000 (14:08 +1000)
commite66effaf61ffb1dc6088492ca3a0e98dcbf1c10d
treeb4574c6dbe7377a0d0499da928dff83bdc3f3049
parentc8eebc4a99f15280654f23e914e746c40a516e50
security/integrity: fix pointer to ESL data and its size on pseries

On PowerVM guest, variable data is prefixed with 8 bytes of timestamp.
Extract ESL by stripping off the timestamp before passing to ESL parser.

Fixes: 4b3e71e9a34c ("integrity/powerpc: Support loading keys from PLPKS")
Cc: stable@vger.kenrnel.org # v6.3
Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230608120444.382527-1-nayna@linux.ibm.com
security/integrity/platform_certs/load_powerpc.c