From 44d85cfdd7801d5478f1e31e5b3a9a030f04ddd2 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20super=5Faccess.c=20=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=E5=86=85=E6=A0=B8=E7=89=88=E6=9C=AC?= =?UTF-8?q?=204.14=20=E7=9A=84=E5=AE=8F=E5=AE=9A=E4=B9=89=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=A0=B9=E6=8D=AE=E5=86=85=E6=A0=B8=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91=E7=9B=B8=E5=85=B3=E6=88=90?= =?UTF-8?q?=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/kpm/super_access.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/kpm/super_access.c b/kernel/kpm/super_access.c index 2a5d60f7..cf7db00c 100644 --- a/kernel/kpm/super_access.c +++ b/kernel/kpm/super_access.c @@ -70,6 +70,8 @@ struct DynamicStructInfo { #define KERNEL_VERSION_6_1 KERNEL_VERSION(6, 1, 0) +#define KERNEL_VERSION_4_14 KERNEL_VERSION(4, 14, 0) + #include <../fs/mount.h> #include @@ -112,6 +114,9 @@ DYNAMIC_STRUCT_BEGIN(kprobe) DEFINE_MEMBER(kprobe, post_handler) #if LINUX_VERSION_CODE < KERNEL_VERSION_6_1 DEFINE_MEMBER(kprobe, fault_handler) +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION_4_14 + DEFINE_MEMBER(kprobe, break_handler) #endif DEFINE_MEMBER(kprobe, flags) DYNAMIC_STRUCT_END(kprobe)