The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
--- Begin Message ---
From: Sergiy Kibrik <sa...@darkstar.site>

Otherwise modules with long names, e.g. lttng (>32 chars) can't be loaded.

Signed-off-by: Sergiy Kibrik <sa...@darkstar.site>
---
 kmodloader.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kmodloader.c b/kmodloader.c
index 3196deb..2e920ef 100644
--- a/kmodloader.c
+++ b/kmodloader.c
@@ -37,6 +37,8 @@
 #include <libubox/ulog.h>
 
 #define DEF_MOD_PATH "/modules/%s/"
+/* duplicated from in-kernel include/linux/module.h */
+#define MODULE_NAME_LEN (64 - sizeof(unsigned long))
 
 enum {
        SCANNED,
@@ -157,7 +159,7 @@ static char* get_module_path(char *name)
 
 static char* get_module_name(char *path)
 {
-       static char name[33];
+       static char name[MODULE_NAME_LEN];
        char *t;
 
        strncpy(name, basename(path), sizeof(name) - 1);
-- 
2.7.4



--- End Message ---
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to