Skip to content

Commit 67e18e1

Browse files
Zheng Yejianpmladek
authored andcommitted
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: ca376a9 ("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
1 parent f4ce392 commit 67e18e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/livepatch/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static int klp_resolve_symbols(Elf_Shdr *sechdrs, const char *strtab,
243243
* symbols are exported and normal relas can be used instead.
244244
*/
245245
if (!sec_vmlinux && sym_vmlinux) {
246-
pr_err("invalid access to vmlinux symbol '%s' from module-specific livepatch relocation section",
246+
pr_err("invalid access to vmlinux symbol '%s' from module-specific livepatch relocation section\n",
247247
sym_name);
248248
return -EINVAL;
249249
}

0 commit comments

Comments
 (0)