[PATCH v3] keys: Protect the update method check against type removal

Jarkko Sakkinen jarkko at kernel.org
Sat Oct 31 09:50:30 UTC 2026


On Sat, Oct 31, 2026 at 05:26:36PM +0800, Cen Zhang wrote:
> +out_free_preparse:
>  	if (key->type->preparse)
>  		key->type->free_preparse(&prep);
> +
> +out:
> +	up_write(&key->sem);
>  	return ret;
>  }
>  EXPORT_SYMBOL(key_update);
> 
> base-commit: 9a2a4c51dccc3168c3dc949fcbaa360a478fa228
> -- 
> 2.43.0
> 

Thanks for taking the trouble addressing this part.

I'll apply it soon'ish.

Reviewed-by: Jarkko Sakkinen <jarkko at kernel.org>

Br, Jarkko



More information about the Linux-security-module-archive mailing list