[PATCH v7 2/5] KEYS: trusted: Change -EINVAL to -E2BIG
Jarkko Sakkinen
jarkko at kernel.org
Wed May 29 12:20:25 UTC 2024
On Wed May 29, 2024 at 4:50 AM EEST, Stefan Berger wrote:
>
>
> On 5/28/24 17:08, Jarkko Sakkinen wrote:
> > Report -E2BIG instead of -EINVAL when too large size for the key blob is
> > requested.
> >
> > Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
>
> Reviewed-by: Stefan Berger <stefanb at linux.ibm.com>
Thank you.
Hmm... I'd like to add even:
Cc: stable at vger.kernel.org # v5.13+
Fixes: f2219745250f ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs")
It turned out to be useful error message and would be useful also for
stable kernels. So if no decent counter-arguments, I'll just pick it
to my master branch.
BR, Jarkko
More information about the Linux-security-module-archive
mailing list