From d8db54ed3b1c45e9ceec79b162deb0ed63704b03 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Sun, 31 Oct 2021 16:41:44 +0200 Subject: [PATCH] module: demote ELF structure error message to pr_debug This happens anytime busybox modprobe loads a compressed module and looks especially ugly on postmarketOS for example (or basically any initramfs); this error is rather pointless since the module is loaded anyway afterwards. Upstream (busybox) has no plans to do anything about this error getting spammed: https://www.mail-archive.com/busybox@busybox.net/msg27078.html --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 5c26a76e800b..8b8e7de7d0ed 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3941,7 +3941,7 @@ static int load_module(struct load_info *info, const char __user *uargs, */ err = elf_validity_check(info); if (err) { - pr_err("Module has invalid ELF structures\n"); + pr_debug("Module has invalid ELF structures\n"); goto free_copy; }