Re: [RFC PATCH 2/4] KEYS: Pin the backing module for struct key_type

From: Jarkko Sakkinen

Date: Mon Nov 02 2026 - 08:07:28 EST


On Mon, Nov 02, 2026 at 02:15:13PM +0200, Jarkko Sakkinen wrote:
> Add the owner field (populated with THIS_MODULE) to struct key_type.
>
> Pin the module in key_alloc() and keyring_restrict(), and release it in
> key_gc_unused_keys() and keyring_destroy(). These functions are the entry
> points for keys and restrictions.
>
> Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>

Missing suggested-by from Eric.

Br, Jarkko