[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CPVRPRLUQYA6.VGAMPDLW043V@bobo>
Date: Thu, 19 Jan 2023 11:15:54 +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 13/24] powerpc/pseries: Fix handling of PLPKS object
flushing timeout
On Wed Jan 18, 2023 at 4:10 PM AEST, Andrew Donnellan wrote:
> plpks_confirm_object_flushed() uses the H_PKS_CONFIRM_OBJECT_FLUSHED hcall
> to check whether changes to an object in the Platform KeyStore have been
> flushed to non-volatile storage.
>
> The hcall returns two output values, the return code and the flush status.
> plpks_confirm_object_flushed() polls the hcall until either the flush
> status has updated, the return code is an error, or a timeout has been
> exceeded.
>
> While we're still polling, the hcall is returning H_SUCCESS (0) as the
> return code. In the timeout case, this means that upon exiting the polling
> loop, rc is 0, and therefore 0 is returned to the user.
>
> Handle the timeout case separately and return ETIMEDOUT if triggered.
>
> Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore")
Can fixes go to the start of the series?
Thanks,
Nick
Powered by blists - more mailing lists