Re: [PATCH v7 3/6] crypto: loongson - add Loongson RNG driver support

2025-04-06 Thread Huacai Chen
Hi, Qunqin, On Thu, Apr 3, 2025 at 10:46 AM Qunqin Zhao wrote: > > Loongson's Random Number Generator is found inside Loongson security > engine. > > Co-developed-by: Yinggang Gu > Signed-off-by: Yinggang Gu > Signed-off-by: Qunqin Zhao > Reviewed-by: Huacai Chen > --- > v7: Change the lsrng_

Re: [PATCH v2 security-next 1/4] security: Hornet LSM

2025-04-06 Thread kernel test robot
Hi Blaise, kernel test robot noticed the following build errors: [auto build test ERROR on shuah-kselftest/next] [also build test ERROR on shuah-kselftest/fixes herbert-cryptodev-2.6/master herbert-crypto-2.6/master masahiroy-kbuild/for-next masahiroy-kbuild/fixes v6.14] [cannot apply to linus/

[PATCH] tpm: Mask TPM RC in tpm2_start_auth_session()

2025-04-06 Thread Jarkko Sakkinen
tpm2_start_auth_session() does not mask TPM RC correctly from the callers: [ 28.766528] tpm tpm0: A TPM error (2307) occurred start auth session Process TPM RCs inside tpm2_start_auth_session(), and map them to POSIX error codes. Cc: sta...@vger.kernel.org # v6.10+ Fixes: 699e3efd6c64 ("tpm: A

Re: [PATCH v7 3/6] crypto: loongson - add Loongson RNG driver support

2025-04-06 Thread Herbert Xu
On Thu, Apr 03, 2025 at 10:46:42AM +0800, Qunqin Zhao wrote: > Loongson's Random Number Generator is found inside Loongson security > engine. Is this a hardware RNG or a pseudo RNG? If it's pseudo, it should provide a means of reseeding. If it's a hardware RNG it should register with hwrng. Chee

Re: [PATCH] hwrng: core - Add WARN_ON for buggy read return values

2025-04-06 Thread Herbert Xu
On Tue, Oct 08, 2024 at 02:28:27AM +0300, Jarkko Sakkinen wrote: > > I guess it is TPM2_StartAuthSession returning TPM_RC_VALUE. Probably > James should look into this as the bus encryption code is clearly > tripping here. OK I've just got a confirmation from the lkp that the tpm RNG is indeed bug

[PATCH v5] KEYS: Add a list for unreferenced keys

2025-04-06 Thread Jarkko Sakkinen
From: Jarkko Sakkinen Add an isolated list of unreferenced keys to be queued for deletion, and try to pin the keys in the garbage collector before processing anything. Skip unpinnable keys. Use this list for blocking the reaping process during the teardown: 1. First off, the keys added to `keys

[PATCH v6] KEYS: Add a list for unreferenced keys

2025-04-06 Thread Jarkko Sakkinen
From: Jarkko Sakkinen Add an isolated list of unreferenced keys to be queued for deletion, and try to pin the keys in the garbage collector before processing anything. Skip unpinnable keys. Use this list for blocking the reaping process during the teardown: 1. First off, the keys added to `keys

Re: [PATCH v5] KEYS: Add a list for unreferenced keys

2025-04-06 Thread Jarkko Sakkinen
On Mon, Apr 07, 2025 at 03:10:45AM +0300, Jarkko Sakkinen wrote: > From: Jarkko Sakkinen > > Add an isolated list of unreferenced keys to be queued for deletion, and > try to pin the keys in the garbage collector before processing anything. > Skip unpinnable keys. > > Use this list for blocking

[PATCH v7] KEYS: Add a list for unreferenced keys

2025-04-06 Thread Jarkko Sakkinen
From: Jarkko Sakkinen Add an isolated list of unreferenced keys to be queued for deletion, and try to pin the keys in the garbage collector before processing anything. Skip unpinnable keys. Use this list for blocking the reaping process during the teardown: 1. First off, the keys added to `keys