op-lists.linaro.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
List overview
Download
linux-morello
August 2022
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
linux-morello@op-lists.linaro.org
7 participants
11 discussions
Start a n
N
ew thread
[Linux-morello] [PATCH] arm64: seccomp: Fix compat64 seccomp syscall numbers
by Tudor Cretu
In compat64, the syscalls have the same numbers as in native. Set the seccomp mode compat syscalls accordingly. Signed-off-by: Tudor Cretu <tudor.cretu(a)arm.com> --- arch/arm64/include/asm/seccomp.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/seccomp.h b/arch/arm64/include/asm/seccomp.h index 30256233788b..617250b9aa62 100644 --- a/arch/arm64/include/asm/seccomp.h +++ b/arch/arm64/include/asm/seccomp.h @@ -11,10 +11,23 @@ #include <asm/unistd.h> #ifdef CONFIG_COMPAT -#define __NR_seccomp_read_32 __NR_compat_read -#define __NR_seccomp_write_32 __NR_compat_write -#define __NR_seccomp_exit_32 __NR_compat_exit -#define __NR_seccomp_sigreturn_32 __NR_compat_rt_sigreturn +static inline const int *get_compat_mode1_syscalls(void) +{ + static const int mode1_syscalls_compat[] = { +#ifdef CONFIG_COMPAT32 + __NR_compat_read, __NR_compat_write, + __NR_compat_exit, __NR_compat_rt_sigreturn, +#else + __NR_read, __NR_write, + __NR_exit, __NR_rt_sigreturn, +#endif + -1, /* negative terminated */ + }; + return mode1_syscalls_compat; +} + +#define get_compat_mode1_syscalls get_compat_mode1_syscalls + #endif /* CONFIG_COMPAT */ #include <asm-generic/seccomp.h> -- 2.25.1
2 years, 4 months
2
1
0
0
← Newer
1
2
Older →
Jump to page:
1
2
Results per page:
10
25
50
100
200