kpatch-build: fix ppc64le trampoline handling after BPF changes #1477
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
kpatch-build: fix ppc64le trampoline handling after BPF changes
Starting from linux commit eec37961a56a (powerpc64/ftrace: Move
ftrace sequence out of line) the kpatch-build fails
Moving the ftrace stubs out-of-line modified the prologue on ppc64le
and it now uses a single nop instead of two.
Update the nop check in create-diff-object.c accordingly.
Also add vmlinux.arch.o to the list of objects excluded from
instrumentation, since it only contains the out-of-line ftrace stubs
for vmlinux.
The module loader will create any necessary (livepatch) module
ftrace stubs, so we don't care about modifications to this file.
Closes: #1470 ("cs-10: ppc64le builds fail")
Reported-by: Joe Lawrence joe.lawrence@redhat.com
Signed-off-by: Radomir Vrbovsky rvrbovsk@redhat.com