[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CPVRNHVV9L6U.34DQEC4B6NB51@bobo>
Date: Thu, 19 Jan 2023 11:12:57 +1000
From: "Nicholas Piggin" <npiggin@...il.com>
To: "Andrew Donnellan" <ajd@...ux.ibm.com>,
<linuxppc-dev@...ts.ozlabs.org>, <linux-integrity@...r.kernel.org>
Cc: <sudhakar@...ux.ibm.com>, <bgray@...ux.ibm.com>,
<erichte@...ux.ibm.com>, <gregkh@...uxfoundation.org>,
<nayna@...ux.ibm.com>, <linux-kernel@...r.kernel.org>,
<zohar@...ux.ibm.com>, <gjoyce@...ux.ibm.com>,
<gcwilson@...ux.ibm.com>
Subject: Re: [PATCH v3 16/24] powerpc/pseries: Implement signed update for
PLPKS objects
On Wed Jan 18, 2023 at 4:10 PM AEST, Andrew Donnellan wrote:
> From: Nayna Jain <nayna@...ux.ibm.com>
>
> The Platform Keystore provides a signed update interface which can be used
> to create, replace or append to certain variables in the PKS in a secure
> fashion, with the hypervisor requiring that the update be signed using the
> Platform Key.
>
> Implement an interface to the H_PKS_SIGNED_UPDATE hcall in the plpks
> driver to allow signed updates to PKS objects.
>
> (The plpks driver doesn't need to do any cryptography or otherwise handle
> the actual signed variable contents - that will be handled by userspace
> tooling.)
>
> Signed-off-by: Nayna Jain <nayna@...ux.ibm.com>
> [ajd: split patch, add timeout handling and misc cleanups]
> Co-developed-by: Andrew Donnellan <ajd@...ux.ibm.com>
> Signed-off-by: Andrew Donnellan <ajd@...ux.ibm.com>
> Signed-off-by: Russell Currey <ruscur@...sell.cc>
>
> ---
>
> v3: Merge plpks fixes and signed update series with secvar series
>
> Fix error code handling in plpks_confirm_object_flushed() (ruscur)
>
> Pass plpks_var struct to plpks_signed_update_var() by reference (mpe)
>
> Consistent constant naming scheme (ruscur)
> ---
> arch/powerpc/include/asm/hvcall.h | 3 +-
> arch/powerpc/include/asm/plpks.h | 5 ++
> arch/powerpc/platforms/pseries/plpks.c | 71 ++++++++++++++++++++++++--
> 3 files changed, 73 insertions(+), 6 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
> index 95fd7f9485d5..33b26c0cb69b 100644
> --- a/arch/powerpc/include/asm/hvcall.h
> +++ b/arch/powerpc/include/asm/hvcall.h
> @@ -336,7 +336,8 @@
> #define H_SCM_FLUSH 0x44C
> #define H_GET_ENERGY_SCALE_INFO 0x450
> #define H_WATCHDOG 0x45C
> -#define MAX_HCALL_OPCODE H_WATCHDOG
> +#define H_PKS_SIGNED_UPDATE 0x454
> +#define MAX_HCALL_OPCODE H_PKS_SIGNED_UPDATE
^ Bad rebase.
Thanks,
Nick
Powered by blists - more mailing lists