From 310e85d19c2a36bc4959d2057e3063fab8c02f8f Mon Sep 17 00:00:00 2001 From: Adam_pi3 Date: Tue, 7 Nov 2023 05:05:27 -0500 Subject: [PATCH] Add support for RHEL 8.8 A new 'text_poke_loc' was backported to RHEL 8.8+. This commit brings the support for such kernels as well as addresses the #295 problem. --- .../p_arch_jump_label_transform_apply.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.h b/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.h index 098fe790..f7604f39 100644 --- a/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.h +++ b/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform_apply/p_arch_jump_label_transform_apply.h @@ -62,7 +62,9 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) || \ defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL) #if !P_LKRG_KERNEL_HAS_VAR_LEN_JUMP_LABEL || \ - (defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9,1)) + (defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL) && \ + RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9,1) && \ + RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8,8)) typedef struct _p_text_poke_loc { s32 rel_addr; /* addr := _stext + rel_addr */ s32 rel32;