projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ce392
)
livepatch: Fix missing newline character in klp_resolve_symbols()
author
Zheng Yejian
<zhengyejian1@huawei.com>
Thu, 14 Sep 2023 07:26:44 +0000
(15:26 +0800)
committer
Petr Mladek
<pmladek@suse.com>
Wed, 20 Sep 2023 09:24:18 +0000
(11:24 +0200)
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
kernel/livepatch/core.c
patch
|
blob
|
history
diff --git
a/kernel/livepatch/core.c
b/kernel/livepatch/core.c
index
6132832
..
ecbc9b6
100644
(file)
--- 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;
}