Skip to content

Add integration tests for RHEL-9.6 release#1453

Merged
joe-lawrence merged 2 commits intodynup:masterfrom
joe-lawrence:integration-tests-kernel-5.14.0-570.12.1.el9
May 6, 2025
Merged

Add integration tests for RHEL-9.6 release#1453
joe-lawrence merged 2 commits intodynup:masterfrom
joe-lawrence:integration-tests-kernel-5.14.0-570.12.1.el9

Conversation

@joe-lawrence
Copy link
Copy Markdown
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 <joe.lawrence@redhat.com>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
@joe-lawrence
Copy link
Copy Markdown
Contributor Author

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

# define KPATCH_SYSCALL_WRAPPERS_V1
# endif
# endif

Copy link
Copy Markdown
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
Copy Markdown
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