Skip to content

Commit 7c58ba8

Browse files
authored
Merge pull request #1477 from emmil/KLP-572
kpatch-build: fix ppc64le trampoline handling after BPF changes
2 parents 205a317 + 96d6f1b commit 7c58ba8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kpatch-build/create-diff-object.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3854,9 +3854,8 @@ static void kpatch_create_ftrace_callsite_sections(struct kpatch_elf *kelf)
38543854
insn_offset = sym->sym.st_value + PPC64_LOCAL_ENTRY_OFFSET(sym->sym.st_other);
38553855
insn = sym->sec->data->d_buf + insn_offset;
38563856

3857-
/* verify nops */
3858-
if (insn[0] != 0x00 || insn[1] != 0x00 || insn[2] != 0x00 || insn[3] != 0x60 ||
3859-
insn[4] != 0x00 || insn[5] != 0x00 || insn[6] != 0x00 || insn[7] != 0x60)
3857+
/* verify nop */
3858+
if (insn[0] != 0x00 || insn[1] != 0x00 || insn[2] != 0x00 || insn[3] != 0x60)
38603859
ERROR("%s: unexpected instruction in patch section of function\n", sym->name);
38613860
} else {
38623861
bool found = false;

kpatch-build/kpatch-cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ if [[ "$TOOLCHAINCMD" =~ ^(.*-)?gcc$ || "$TOOLCHAINCMD" =~ ^(.*-)?clang$ ]] ; th
3939
arch/x86/vdso/*|\
4040
arch/powerpc/kernel/prom_init.o|\
4141
arch/powerpc/kernel/vdso64/*|\
42+
arch/powerpc/tools/vmlinux.arch.o|\
4243
arch/s390/boot/*|\
4344
arch/s390/purgatory/*|\
4445
arch/s390/kernel/vdso64/*|\

0 commit comments

Comments
 (0)