diff options
author | Zheng Yejian <zhengyejian1@huawei.com> | 2023-09-14 15:26:44 +0800 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2023-09-20 11:24:18 +0200 |
commit | 67e18e132f0fd738f8c8cac3aa1420312073f795 (patch) | |
tree | 64f18a7a85b9841bc730076dba3d0a0fedd5d0ba /kernel/livepatch | |
parent | f4ce392b03722b62804909aadbce6ff4f9c50b91 (diff) | |
download | linux-stable-67e18e132f0fd738f8c8cac3aa1420312073f795.tar.gz linux-stable-67e18e132f0fd738f8c8cac3aa1420312073f795.tar.bz2 linux-stable-67e18e132f0fd738f8c8cac3aa1420312073f795.zip |
livepatch: Fix missing newline character in klp_resolve_symbols()
Without the newline character, the log may not be printed immediately
after the error occurs.
Fixes: ca376a937486 ("livepatch: Prevent module-specific KLP rela sections from referencing vmlinux symbols")
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230914072644.4098857-1-zhengyejian1@huawei.com
Diffstat (limited to 'kernel/livepatch')
-rw-r--r-- | kernel/livepatch/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 61328328c474..ecbc9b6aba3a 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c @@ -243,7 +243,7 @@ static int klp_resolve_symbols(Elf_Shdr *sechdrs, const char *strtab, * symbols are exported and normal relas can be used instead. */ if (!sec_vmlinux && sym_vmlinux) { - pr_err("invalid access to vmlinux symbol '%s' from module-specific livepatch relocation section", + pr_err("invalid access to vmlinux symbol '%s' from module-specific livepatch relocation section\n", sym_name); return -EINVAL; } |