Repository navigation
kpatch-syscall.h: don't redefine SC_ARM64_REGS_TO_ARGS - #1539
Open
usebeforefree wants to merge 3 commits into
Open
usebeforefree wants to merge 3 commits into
usebeforefree wants to merge 3 commits into
Conversation
Added rebased kernel-6.12.0-282.el10 tests for rhel-10.4 and invoke them through packit. Signed-off-by: Marko Kostić <[email protected]>
When the -s|--sourcedir option is not provided, kpatch-build sources /etc/os-release. On Fedora that file defines a variable called VARIANT, which in turn overwrites kpatch-build's user provided -V|--variant VARIANT value, producing a bug. Fixes: 5adfdd4 ("kpatch-build, lib.sh, man: add kernel variant support") Signed-off-by: Marko Kostić <[email protected]> Signed-off-by: Joe Lawrence <[email protected]> (commit msg)
Upstream kernel commit 5a87e8c7f370 ("arm64: syscall: Pass 'orig_x0' as
first argument to native system call") changed the kernel's
SC_ARM64_REGS_TO_ARGS() macro.
kpatch-syscall.h defines its own copy of the macro. Until now both
copies were identical, so the second definition was harmless. Now that
they differ, any file that includes kpatch-macros.h fails to build on
arm64 kernels that have this change:
kpatch-syscall.h:216:9: error: "SC_ARM64_REGS_TO_ARGS" redefined
This fix makes sure the macro is defined only if it's not defined
already, so it should work with both kernels pre and post 5a87e8c7f370
Signed-off-by: Marko Kostić <[email protected]>
Contributor
Author
|
The tests pass, the only thing left is to confirm the bug occurs in these integration tests:
Called 2. with this command: testing-farm request \
--no-wait \
--compose RHEL-10.4-20261126.0 \
--pool beaker \
--arch aarch64 \
--git-url https://gitlab.com/redhat/centos-stream/tests/kernel/test-plans.git \
--plan 'kpatch/kpatch-integration-rhel/kernel$' \
--environment KPATCH_GIT=https://github.com/usebeforefree/kpatch.git \
--environment KPATCH_REV=integration-rhel10.4 \
--timeout 1440 \
--environment TMT_REBOOT_TIMEOUT=1200 \
--environment TMT_SSH_ConnectionAttempts=20 \
--environment TMT_SSH_ServerAliveCountMax=180 \
--environment MAX_REBOOT_TIME=0 \
--tmt-discover '--how=fmf --insert --url=https://gitlab.com/redhat/centos-stream/tests/kernel/test-plans.git --test=/misc/machineinfo --order 1' \
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR currently includes
usebeforefree/integration-rhel10.4commits as well, because this issue is raised only forrhel10.4for now. But if the issue is fixed by the latest commit in this PR, it would make sense to merge it only.