Bug 1696359 - Broken build on arm/arm64 with older kernel (missing __NR_statx, __NR_rseq) r=jld
authorM. Sirringhaus <msirringhaus@suse.de>
Thu, 03 Jun 2021 00:07:21 +0000
changeset 654272 429670fd06703ceeac80fe306104d6b604f01052
parent 654271 a81b46bef82fcd2f0e63cae11464283abe9a2fce
child 654273 0470fbe7cb5c7431331b3ba9f63930529c9deedf
push id2623
push userffxbld-merge
push dateMon, 02 Aug 2021 14:47:51 +0000
treeherdermozilla-release@8500ce65f7c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjld
bugs1696359
milestone91.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1696359 - Broken build on arm/arm64 with older kernel (missing __NR_statx, __NR_rseq) r=jld Differential Revision: https://phabricator.services.mozilla.com/D107206
security/sandbox/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h
security/sandbox/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
--- a/security/sandbox/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h
+++ b/security/sandbox/chromium/sandbox/linux/system_headers/arm64_linux_syscalls.h
@@ -1058,9 +1058,16 @@
 #if !defined(__NR_getrandom)
 #define __NR_getrandom 278
 #endif
 
 #if !defined(__NR_memfd_create)
 #define __NR_memfd_create 279
 #endif
 
+#if !defined(__NR_statx)
+#define __NR_statx 291
+#endif
+
+#if !defined(__NR_rseq)
+#define __NR_rseq 293
+#endif
 #endif  // SANDBOX_LINUX_SYSTEM_HEADERS_ARM64_LINUX_SYSCALLS_H_
--- a/security/sandbox/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
+++ b/security/sandbox/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
@@ -1380,16 +1380,23 @@
 #if !defined(__NR_getrandom)
 #define __NR_getrandom (__NR_SYSCALL_BASE+384)
 #endif
 
 #if !defined(__NR_memfd_create)
 #define __NR_memfd_create (__NR_SYSCALL_BASE+385)
 #endif
 
+#if !defined(__NR_statx)
+#define __NR_statx (__NR_SYSCALL_BASE+397)
+#endif
+
+#if !defined(__NR_rseq)
+#define __NR_rseq (__NR_SYSCALL_BASE+398)
+#endif
 // ARM private syscalls.
 #if !defined(__ARM_NR_BASE)
 #define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000)
 #endif
 
 #if !defined(__ARM_NR_breakpoint)
 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
 #endif