[Devel] [PATCH RH9 14/20] ve/kmod/whitelist: Allow conntrack nft-helper-* modules autoloading

Kirill Tkhai ktkhai at virtuozzo.com
Fri Oct 8 12:51:46 MSK 2021


Otherwise, in case of destination node does not have
modules loaded, CT migration fails.

https://jira.sw.ru/browse/PSBM-90319

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

(cherry picked from vz7 commit
 c92758e6ea45 ("net: Allow autoloading conntrack nft-helper-* modules"))

Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/kmod.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/kmod.c b/kernel/kmod.c
index b84bfdf216ff..da0e72fe7de7 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -336,6 +336,10 @@ bool module_payload_allowed(const char *module)
 	    !strncmp("nfct-helper-",	module, 12))
 		return true;
 
+	/* nfct-helper-* modules */
+	if (!strncmp("nfct-helper-", module, 12))
+		return true;
+
 	return false;
 }
 #endif /* CONFIG_VE */




More information about the Devel mailing list