mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
livepatch: Fix missing newline character in klp_resolve_symbols()
[ Upstream commit67e18e132f
] Without the newline character, the log may not be printed immediately after the error occurs. Fixes:ca376a9374
("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b77f7c025e
commit
ca46d7ce1f
|
@ -244,7 +244,7 @@ static int klp_resolve_symbols(Elf_Shdr *sechdrs, const char *strtab,
|
||||||
* symbols are exported and normal relas can be used instead.
|
* symbols are exported and normal relas can be used instead.
|
||||||
*/
|
*/
|
||||||
if (!sec_vmlinux && sym_vmlinux) {
|
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);
|
sym_name);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user