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

2025-04-07 Thread Jarkko Sakkinen
; Cc: sta...@vger.kernel.org # v6.1+ Signed-off-by: Jarkko Sakkinen > > > This patch landed in today's linux-next as commit b0d023797e3e ("keys: > Add a list for unreferenced keys"). In my tests I found that it triggers > the following

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

2025-04-07 Thread Jarkko Sakkinen
ch landed in today's linux-next as commit b0d023797e3e ("keys: > > Add a list for unreferenced keys"). In my tests I found that it triggers > > the following lockdep issue: > > > > > > WARNING: inconsistent lock state > > 6.15.0-rc1-next-20250407 #1563

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

2025-04-07 Thread Jarkko Sakkinen
;> go > >>>> above zero. Whenever this happens, the key will be skipped. > >>>> > >>>> Cc: sta...@vger.kernel.org # v6.1+ Signed-off-by: Jarkko Sakkinen > >>>> > >>> T

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

2025-04-07 Thread Stefano Garzarella
On Mon, Apr 07, 2025 at 03:28:05PM +0300, Jarkko Sakkinen wrote: 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

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

2025-04-07 Thread Jarkko Sakkinen
On Mon, Apr 07, 2025 at 10:04:09AM +0200, Stefano Garzarella wrote: > On Mon, Apr 07, 2025 at 10:20:57AM +0300, Jarkko Sakkinen wrote: > > 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 > >

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

2025-04-07 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 1/6] mfd: Add support for Loongson Security Module

2025-04-07 Thread Qunqin Zhao
Hi, Lee 在 2025/4/5 上午12:06, Lee Jones 写道: On Thu, 03 Apr 2025, Qunqin Zhao wrote: This driver supports Loongson Security Module, which provides the control for it's hardware encryption acceleration child devices. Co-developed-by: Yinggang Gu Signed-off-by: Yinggang Gu Signed-off-by: Qunqi

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

2025-04-07 Thread Stefano Garzarella
On Mon, Apr 07, 2025 at 10:20:57AM +0300, Jarkko Sakkinen wrote: 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

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

2025-04-07 Thread Marek Szyprowski
eys: Add a list for unreferenced keys"). In my tests I found that it triggers the following lockdep issue: ==== WARNING: inconsistent lock state 6.15.0-rc1-next-20250407 #15630 Not tainted inconsistent {SOFTIRQ-ON-W} -> {I

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

2025-04-07 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 v4] tpm: Mask TPM RC in tpm2_start_auth_session()

2025-04-07 Thread Jarkko Sakkinen
On Mon, Apr 07, 2025 at 03:28:05PM +0300, Jarkko Sakkinen wrote: > 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 > e

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

2025-04-07 Thread Marek Szyprowski
-off-by: Jarkko Sakkinen >>>> >>> This patch landed in today's linux-next as commit b0d023797e3e ("keys: >>> Add a list for unreferenced keys"). In my tests I found that it triggers >>> the following lockdep issue: >>> >>> ==

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

2025-04-07 Thread Stefano Garzarella
On Mon, Apr 07, 2025 at 02:30:05PM +0300, Jarkko Sakkinen wrote: On Mon, Apr 07, 2025 at 10:04:09AM +0200, Stefano Garzarella wrote: On Mon, Apr 07, 2025 at 10:20:57AM +0300, Jarkko Sakkinen wrote: > tpm2_start_auth_session() does not mask TPM RC correctly from the callers: > > [ 28.766528] tp

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

2025-04-07 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

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

2025-04-07 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