From: Clay Chang <clayc@hpe.com>
To: Jarkko Sakkinen <jarkko@kernel.org>, <keyrings@vger.kernel.org>,
<linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <dhowells@redhat.com>, <herbert@gondor.apana.org.au>,
<davem@davemloft.net>
Subject: Re: [PATCH] KEYS: include header for EINVAL definition
Date: Tue, 9 Jan 2024 10:10:00 +0800 [thread overview]
Message-ID: <a77797fd-cbe4-42be-abd6-54cc815d360a@hpe.com> (raw)
In-Reply-To: <CY9E6M2BYETA.1VE73N3UHD4B9@suppilovahvero>
Hi Jarkko,
The issue was found when crypto/public_key.h was included, but CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE was not enabled. If CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE was not enabled, the public_key_verify_signature simply returned -EINVAL, which was not declared without linux/errno.h being included.
Thanks,
Clay
On 2024/1/8 10:24 PM, Jarkko Sakkinen wrote:
> On Sun Jan 7, 2024 at 3:28 PM EET, wrote:
>> From: Clay Chang <clayc@hpe.com>
>>
>> This patch includes linux/errno.h to address the issue of 'EINVAL' being
>> undeclared.
>>
>> Signed-off-by: Clay Chang <clayc@hpe.com>
>> ---
>> include/crypto/public_key.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
>> index 462f8a34cdf8..b7f308977c84 100644
>> --- a/include/crypto/public_key.h
>> +++ b/include/crypto/public_key.h
>> @@ -10,6 +10,7 @@
>> #ifndef _LINUX_PUBLIC_KEY_H
>> #define _LINUX_PUBLIC_KEY_H
>>
>> +#include <linux/errno.h>
>> #include <linux/keyctl.h>
>> #include <linux/oid_registry.h>
>>
>
> Please provide evidence that issue exist (applies for any possible kernel issue).
>
> BR, Jarkko
next prev parent reply other threads:[~2024-01-09 2:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-07 13:28 clayc
2024-01-08 14:24 ` Jarkko Sakkinen
2024-01-09 2:10 ` Clay Chang [this message]
2024-01-10 19:54 ` Jarkko Sakkinen
2024-01-12 5:59 ` Clay Chang
2024-01-13 20:46 ` Jarkko Sakkinen
2024-01-26 8:59 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a77797fd-cbe4-42be-abd6-54cc815d360a@hpe.com \
--to=clayc@hpe.com \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=jarkko@kernel.org \
--cc=keyrings@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®