diff mbox series

fix certs compilation / export is_key_on_revocation_list

Message ID ce5bc8c0-2c6d-2a22-1ad3-357254686366@ddn.com (mailing list archive)
State New
Headers show
Series fix certs compilation / export is_key_on_revocation_list | expand

Commit Message

Bernd Schubert March 2, 2022, 8:06 p.m. UTC
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(+)

Comments

Bernd Schubert March 2, 2022, 8:19 p.m. UTC | #1
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
> 
>   /*
Bernd Schubert March 29, 2022, 10:09 a.m. UTC | #2
ping

On 3/2/22 21:19, Bernd Schubert wrote:
> 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
>>
>>   /*
Bernd Schubert April 1, 2022, 12:56 p.m. UTC | #3
On 3/29/22 12:09, Bernd Schubert wrote:
> ping
> 
> On 3/2/22 21:19, Bernd Schubert wrote:
>> 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.

Actually not needed anymore with released v5.17. Looks like there was 
another fix for it.


Thanks,
Bernd
diff mbox series

Patch

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
  
  /*