Skip to contentSkip to conversation

fix certs compilation / export is_key_on_revocation_list

PATCH In review Bernd Schubert 1 participant 4 messages Mar 2, 2022 – Apr 1, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix certs compilation / export is_key_on_revocation_list

From: Bernd Schubert <[email protected]>

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.

---
 certs/blacklist.c |    1 +
 1 file changed, 1 insertion(+)
certs/blacklist.c +1 -0
index c9a435b15af4..ad39780e5150 100644
@@ -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
 
 /*
#1 lore raw

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.

Quoted 30 lines · Bernd Schubert

From: Bernd Schubert <[email protected]>

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.

---
  certs/blacklist.c |    1 +
  1 file changed, 1 insertion(+)
certs/blacklist.c +1 -0
index c9a435b15af4..ad39780e5150 100644
@@ -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
 
Quoted 1 line

 /*

fix certs compilation / export is_key_on_revocation_list

From: Bernd Schubert <[email protected]>

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.

---
 certs/blacklist.c |    1 +
 1 file changed, 1 insertion(+)
certs/blacklist.c +1 -0
index c9a435b15af4..ad39780e5150 100644
@@ -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
 
 /*
#2 lore raw

ping

Quoted 36 lines · Bernd Schubert

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.

Quoted 31 lines · Bernd Schubert

From: Bernd Schubert <[email protected]>

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.

---
  certs/blacklist.c |    1 +

  1 file changed, 1 insertion(+)
certs/blacklist.c +1 -0
index c9a435b15af4..ad39780e5150 100644
@@ -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
 

  /*

#3 lore raw
Quoted 4 lines · Bernd Schubert

ping

Quoted 1 line · Bernd Schubert

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