From a34798817948bf4c7ba04c66ad02ff0d09d55d32 Mon Sep 17 00:00:00 2001 From: mdafsanhossain Date: Mon, 27 Nov 2023 18:36:15 +0530 Subject: [PATCH] new(kmod):PPC64 fixes for ia32_syscall Signed-off-by: mdafsanhossain --- driver/main.c | 3 +++ userspace/libscap/engine/gvisor/parsers.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/driver/main.c b/driver/main.c index 7905102bb15..1f7031af984 100644 --- a/driver/main.c +++ b/driver/main.c @@ -2144,6 +2144,9 @@ static inline bool kmod_in_ia32_syscall(void) #elif defined(CONFIG_S390) if (unlikely(task_thread_info(current)->flags & _TIF_31BIT)) return true; +#elif defined(CONFIG_PPC64) + if (unlikely(task_thread_info(current)->flags & _TIF_32BIT)) + return true; #endif /* CONFIG_X86_64 */ return false; } diff --git a/userspace/libscap/engine/gvisor/parsers.cpp b/userspace/libscap/engine/gvisor/parsers.cpp index 71af576817e..8826b20dd8c 100644 --- a/userspace/libscap/engine/gvisor/parsers.cpp +++ b/userspace/libscap/engine/gvisor/parsers.cpp @@ -33,6 +33,8 @@ limitations under the License. #include "../../driver/syscall_compat_aarch64.h" #elif __s390x__ #include "../../driver/syscall_compat_s390x.h" +#elif __ppc64le__ +#include "../../driver/syscall_compat_ppc64le.h" #endif /* __x86_64__ */ #include