Skip to contentSkip to conversation

backports: remove CRYPTO_CCM backport

PATCH In review Johannes Berg 3 participants 4 messages Oct 13, 2017 – Oct 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: remove CRYPTO_CCM backport

From: Johannes Berg <[email protected]>

This never actually worked properly as far as I can tell, and now it looks like it won't even compile due to the real crypto_memneq() backport.

Just remove it - distro kernels have it enabled and all others should just enable it.

---
 backport/compat/Kconfig     | 11 -------
 backport/compat/Makefile    |  1 -
 backport/compat/backports.h | 10 ------
 backport/compat/main.c      |  9 +-----
 patches/crypto-ccm.patch    | 78 ---------------------------------------------
 5 files changed, 1 insertion(+), 108 deletions(-)
 delete mode 100644 patches/crypto-ccm.patch
backport/compat/Kconfig +0 -11
index 542cf0cca781..492efbfc7d9f 100644
@@ -102,17 +102,6 @@ config BPAUTO_USERSEL_BUILD_ALL
 	  It's only really useful for compat testing, so
 	  you probably shouldn't enable it.
 
-config BPAUTO_CRYPTO_CCM
-	depends on CRYPTO_AEAD
-	depends on CRYPTO_CTR
-	bool
-
-config BPAUTO_BUILD_CRYPTO_CCM
-	bool
-	default n if CRYPTO_CCM
-	default y if BPAUTO_CRYPTO_CCM
-	#c-file crypto/ccm.c
-
 config BPAUTO_CRYPTO_SKCIPHER
 	tristate
 	depends on KERNEL_4_3
backport/compat/Makefile +0 -1
index ead22a0099fc..69cfd514da71 100644
@@ -37,7 +37,6 @@ compat-$(CPTCFG_KERNEL_4_7) += backport-4.7.o
 compat-$(CPTCFG_KERNEL_4_8) += backport-4.8.o
 compat-$(CPTCFG_KERNEL_4_10) += backport-4.10.o
 
-compat-$(CPTCFG_BPAUTO_BUILD_CRYPTO_CCM) += crypto-ccm.o
 compat-$(CPTCFG_BPAUTO_CRYPTO_SKCIPHER) += crypto-skcipher.o
 
 compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/verify.o
backport/compat/backports.h +0 -10
index ccc8972b41f6..538488887fca 100644
@@ -3,16 +3,6 @@
 
 #include <linux/version.h>
 
-#ifdef CPTCFG_BPAUTO_BUILD_CRYPTO_CCM
-int crypto_ccm_module_init(void);
-void crypto_ccm_module_exit(void);
-#else
-static inline int crypto_ccm_module_init(void)
-{ return 0; }
-static inline void crypto_ccm_module_exit(void)
-{}
-#endif
-
 #ifdef CPTCFG_BPAUTO_BUILD_WANT_DEV_COREDUMP
 int devcoredump_init(void);
 void devcoredump_exit(void);
backport/compat/main.c +1 -8
index 5d45e3dad3e3..0bf04201a0bd 100644
@@ -53,16 +53,10 @@ EXPORT_SYMBOL_GPL(backport_dependency_symbol);
 
 static int __init backport_init(void)
 {
-	int ret = crypto_ccm_module_init();
+	int ret = devcoredump_init();
 	if (ret)
 		return ret;
 
-	ret = devcoredump_init();
-	if (ret) {
-		crypto_ccm_module_exit();
-		return ret;
-	}
-
 	printk(KERN_INFO "Loading modules backported from " CPTCFG_KERNEL_NAME
 #ifndef BACKPORTS_GIT_TRACKED
 		" version " CPTCFG_KERNEL_VERSION
@@ -86,7 +80,6 @@ subsys_initcall(backport_init);
 
 static void __exit backport_exit(void)
 {
-	crypto_ccm_module_exit();
 	devcoredump_exit();
 }
 module_exit(backport_exit);
patches/crypto-ccm.patch deleted +0 -78

78 lines not on this page · raw message

Signature · 4 lines
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
#1 lore raw
Quoted 32 lines · Johannes Berg

From: Johannes Berg <[email protected]>

This never actually worked properly as far as I can tell, and now it looks like it won't even compile due to the real crypto_memneq() backport.

Just remove it - distro kernels have it enabled and all others should just enable it.

---
 backport/compat/Kconfig     | 11 -------
 backport/compat/Makefile    |  1 -
 backport/compat/backports.h | 10 ------
 backport/compat/main.c      |  9 +-----
 patches/crypto-ccm.patch    | 78 ---------------------------------
------------
 5 files changed, 1 insertion(+), 108 deletions(-)
 delete mode 100644 patches/crypto-ccm.patch
backport/compat/Kconfig +0 -4
index 542cf0cca781..492efbfc7d9f 100644
@@ -102,17 +102,6 @@ config BPAUTO_USERSEL_BUILD_ALL
 	  It's only really useful for compat testing, so
 	  you probably shouldn't enable it.
 
-config BPAUTO_CRYPTO_CCM
-	depends on CRYPTO_AEAD
-	depends on CRYPTO_CTR
-	bool

backport/compat/Kconfig config BPAUTO_USERSEL_BUILD_ALL · line 107

Quoted 10 lines
backport/compat/Kconfig +0 -7
-
-config BPAUTO_BUILD_CRYPTO_CCM
-	bool
-	default n if CRYPTO_CCM
-	default y if BPAUTO_CRYPTO_CCM
-	#c-file crypto/ccm.c
-
 config BPAUTO_CRYPTO_SKCIPHER
 	tristate
 	depends on KERNEL_4_3

Should backports then depend on CRYPTO_CCM? It didn't really work in the past and I got a few reports of broken backport with old kernels due to missing CRYPTO_CCM in the kernel config.

--
Luca.
--
To unsubscribe from this list: send the line "unsubscribe backports" in

#2 lore raw
Quoted 4 lines · Luca Coelho

Should backports then depend on CRYPTO_CCM? It didn't really work in the past and I got a few reports of broken backport with old kernels due to missing CRYPTO_CCM in the kernel config.

this change will automatically make mac80211 depend on it, after re- generation.

johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in

#3 lore raw
Quoted 8 lines · Johannes Berg
Quoted 4 lines · Luca Coelho

Should backports then depend on CRYPTO_CCM? It didn't really work in the past and I got a few reports of broken backport with old kernels due to missing CRYPTO_CCM in the kernel config.

this change will automatically make mac80211 depend on it, after re- generation.

And that means you can not select and thus build mac80211 in the backport config if the target kernel has CRYPTO_CCM disabled. The only option people really have is enabling CRYPTO_CCM in the target kernel.

Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe backports" in