]> Git Repo - linux.git/commitdiff
livepatch: Add a missing newline character in klp_module_coming()
authorZhen Lei <[email protected]>
Tue, 30 Aug 2022 11:28:55 +0000 (19:28 +0800)
committerPetr Mladek <[email protected]>
Thu, 1 Sep 2022 14:27:59 +0000 (16:27 +0200)
The error message is not printed immediately because it does not end with
a newline character.

Before:
root@localhost:~# insmod vmlinux.ko
insmod: ERROR: could not insert module vmlinux.ko: Invalid parameters

After:
root@localhost:~# insmod vmlinux.ko
[   43.982558] livepatch: vmlinux.ko: invalid module name
insmod: ERROR: could not insert module vmlinux.ko: Invalid parameters

Fixes: dcf550e52f56 ("livepatch: Disallow vmlinux.ko")
Signed-off-by: Zhen Lei <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
kernel/livepatch/core.c

index bc475e62279d2a39687e5209d6eced904a6c4691..42f7e716d56bf72812a95ec89ae1368f78bc7188 100644 (file)
@@ -1171,7 +1171,7 @@ int klp_module_coming(struct module *mod)
                return -EINVAL;
 
        if (!strcmp(mod->name, "vmlinux")) {
-               pr_err("vmlinux.ko: invalid module name");
+               pr_err("vmlinux.ko: invalid module name\n");
                return -EINVAL;
        }
 
This page took 0.064903 seconds and 4 git commands to generate.