[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <CS8FK8E483XC.37N5N3KH1ZJEX@wks-101042-mac.ad.tuni.fi>
Date: Fri, 28 Apr 2023 16:41:04 +0300
From: "Jarkko Sakkinen" <jarkko@...nel.org>
To: "Jerry Snitselaar" <jsnitsel@...hat.com>
Cc: <linux-integrity@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Peter Huewe" <peterhuewe@....de>,
"Jason Gunthorpe" <jgg@...pe.ca>, <stable@...r.kernel.org>
Subject: Re: [PATCH 2/2] tpm: Prevent hwrng from activating during resume
On Thu Apr 27, 2023 at 9:27 PM EEST, Jerry Snitselaar wrote:
> On Wed, Apr 26, 2023 at 08:29:28PM +0300, Jarkko Sakkinen wrote:
> > Set TPM_CHIP_FLAG_SUSPENDED in tpm_pm_suspend() and reset in
> > tpm_pm_resume(). While the flag is set, tpm_hwrng() gives back zero bytes.
> > This prevents hwrng from racing during resume.
> >
> > Cc: stable@...r.kernel.org
> > Fixes: 6e592a065d51 ("tpm: Move Linux RNG connection to hwrng")
> > Signed-off-by: Jarkko Sakkinen <jarkko@...nel.org>
>
>
> Reviewed-by: Jerry Snitselaar <jsnitsel@...hat.com
Thanks Jerry! I'm planning to schedule these patches to rc2. So any
tested-by's are welcome before that (I'll send it the following week
of rc1 release).
BR, Jarkko
Powered by blists - more mailing lists