mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernd Schubert <bschubert@ddn.com>
To: David Howells <dhowells@redhat.com>,
	"\"David Woodhouse" <dwmw2@infradead.org>,
	keyrings@vger.kernel.org,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fix certs compilation / export is_key_on_revocation_list
Date: Wed, 2 Mar 2022 21:19:42 +0100	[thread overview]
Message-ID: <e92ef2ea-bb1c-8a8d-2e25-c784a784b995@ddn.com> (raw)
In-Reply-To: <ce5bc8c0-2c6d-2a22-1ad3-357254686366@ddn.com>

[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]

Sorry for the spam, besides that pasting the patch somehow did not work 
(I cannot apply it myself), I had also a typo in David W.'s mail. I hope 
that attaching the patch is fine.



On 3/2/22 21:06, Bernd Schubert wrote:
> From: Bernd Schubert <bschubert@ddn.com>
> 
> Compilation of 5.17-rc7-master was failing with my .config
> (actually taken from Ubuntus 5.17 package)
> 
> certs/system_keyring.o: In function `verify_pkcs7_message_sig':
> linux/certs/system_keyring.c:224:
>      undefined reference to `is_key_on_revocation_list'
> 
> 
> That got fixed by exporting the 'is_key_on_revocation_list' symbol.
> 
> 
> Signed-off-by: Bernd Schubert <bschubert@ddn.com>
> ---
>   certs/blacklist.c |    1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/certs/blacklist.c b/certs/blacklist.c
> index c9a435b15af4..ad39780e5150 100644
> --- a/certs/blacklist.c
> +++ b/certs/blacklist.c
> @@ -192,6 +192,7 @@ int is_key_on_revocation_list(struct pkcs7_message 
> *pkcs7)
> 
>       return -ENOKEY;
>   }
> +EXPORT_SYMBOL_GPL(is_key_on_revocation_list);
>   #endif
> 
>   /*

[-- Attachment #2: export-is_key_on_revocation_list.patch --]
[-- Type: text/x-patch, Size: 835 bytes --]

fix certs compilation / export is_key_on_revocation_list

From: Bernd Schubert <bschubert@ddn.com>

Compilation was failing with my .config, which I had actually taken
from Ubuntus 5.17 package

certs/system_keyring.o: In function `verify_pkcs7_message_sig':
linux/certs/system_keyring.c:224:
    undefined reference to `is_key_on_revocation_list'


That got fixed by exporting the is_key_on_revocation_list symbol.


Signed-off-by: Bernd Schubert <bschubert@ddn.com>
---
 certs/blacklist.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/certs/blacklist.c b/certs/blacklist.c
index c9a435b15af4..ad39780e5150 100644
--- a/certs/blacklist.c
+++ b/certs/blacklist.c
@@ -192,6 +192,7 @@ int is_key_on_revocation_list(struct pkcs7_message *pkcs7)
 
 	return -ENOKEY;
 }
+EXPORT_SYMBOL_GPL(is_key_on_revocation_list);
 #endif
 
 /*

  reply	other threads:[~2022-03-02 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02 20:06 Bernd Schubert
2022-03-02 20:19 ` Bernd Schubert [this message]
2022-03-29 10:09   ` Bernd Schubert
2022-04-01 12:56     ` Bernd Schubert

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=e92ef2ea-bb1c-8a8d-2e25-c784a784b995@ddn.com \
    --to=bschubert@ddn.com \
    --cc=dhowells@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=keyrings@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®