tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

31_fix_max_syscalls_linux_aarch64.patch (901B)


      1 # HG changeset patch
      2 # User Paul Bone <pbone@mozilla.org>
      3 # Date 1708492973 -39600
      4 #      Wed Feb 21 16:22:53 2024 +1100
      5 # Node ID 501cb36ee885ebd0939e1892f821d55ac149ceec
      6 # Parent  cf015b6f24b494190f562b255147f96e8b8b4139
      7 Bug 1866396 - Hard code the number of system calls for Linux on aarch64 r=jld
      8 
      9 Differential Revision: https://phabricator.services.mozilla.com/D202293
     10 
     11 diff --git a/sandbox/linux/bpf_dsl/linux_syscall_ranges.h b/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
     12 --- a/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
     13 +++ b/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
     14 @@ -51,9 +51,9 @@
     15 
     16 #elif defined(__aarch64__)
     17 
     18 -#include <asm-generic/unistd.h>
     19 +// The unistd.h included in the sysroot has a very old __NR_syscalls
     20 #define MIN_SYSCALL 0u
     21 -#define MAX_PUBLIC_SYSCALL __NR_syscalls
     22 +#define MAX_PUBLIC_SYSCALL  (MIN_SYSCALL + 1024u)
     23 #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
     24 
     25 #else