Skip to content

Add integration tests for RHEL-9.6 release #1453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

joe-lawrence
Copy link
Contributor

  • Fix an s390x system call macro compilation error
  • Rebase RHEL-9.5 integration tests, no modifications needed

In RHEL-9.6, both KPATCH_SYSCALL_WRAPPERS_V1 and
KPATCH_SYSCALL_WRAPPERS_V2 are defined due to the order of the
preprocessor defines:

 (Consider a RHEL-9.6 kernel version of 5.14.0-570.12.1)

 # if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
 #  define KPATCH_SYSCALL_WRAPPERS_V2
 # else
 #  define KPATCH_SYSCALL_WRAPPERS_V1                      << here
 # endif

 # if defined(RHEL_RELEASE_CODE)
 #  if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 6)
 #   define KPATCH_SYSCALL_WRAPPERS_V2                     << and here
 #  else
 #   define KPATCH_SYSCALL_WRAPPERS_V1
 #  endif

Re-arrange the conditionals such that only downstream and upstream are
considered exclusive of one another.

Fixes: e42c799 ("kpatch-syscall: update for s390x RHEL-9.6 backports")
Signed-off-by: Joe Lawrence <[email protected]>
@joe-lawrence
Copy link
Contributor Author

Passes internal beaker runs on ppc64le, s390x, and x86_64: https://beaker.engineering.redhat.com/jobs/10990806

# define KPATCH_SYSCALL_WRAPPERS_V2
# else
# define KPATCH_SYSCALL_WRAPPERS_V1
# endif
# endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpoimboe : how did we miss this in the review 😆 ? I think I was so annoyed about not being able to combine defined(X) ... X on a single line that I botched the rest.

Copy link
Contributor

@yhcote yhcote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That look good to me

@joe-lawrence joe-lawrence merged commit e6b0cf0 into dynup:master May 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants