head 1.4; access; symbols pkgsrc-2024Q3:1.3.0.10 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.8 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.6 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.4 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.2 pkgsrc-2023Q3-base:1.3; locks; strict; comment @// @; 1.4 date 2024.10.10.14.08.31; author wiz; state dead; branches; next 1.3; commitid NgiWDRvIkAGXC7tF; 1.3 date 2023.09.10.14.42.29; author nia; state Exp; branches; next 1.2; commitid PPknNvgjiGCsxeEE; 1.2 date 2022.09.23.22.52.50; author nia; state dead; branches; next 1.1; commitid 5TLqJz1Q44yBz2VD; 1.1 date 2022.07.21.23.56.39; author nia; state Exp; branches; next ; commitid 2e6YFtZYdY2TYOMD; desc @@ 1.4 log @firefox102: remove This is the pre-previous ESR release. As discussed on pkgsrc-users. @ text @$NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.3 2023/09/10 14:42:29 nia Exp $ Add NetBSD support. --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2023-08-22 15:44:37.000000000 +0000 +++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp @@@@ -68,7 +68,7 @@@@ void CPU::SetUp() { uint32_t CPU::GetCacheType() { -#if defined(__aarch64__) && (defined(__linux__) || defined(__android__)) +#if defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__NetBSD__)) uint64_t cache_type_register; // Copy the content of the cache type register to a core register. __asm__ __volatile__ ("mrs %[ctr], ctr_el0" // NOLINT @@@@ -110,7 +110,7 @@@@ void CPU::EnsureIAndDCacheCoherency(void FlushInstructionCache(GetCurrentProcess(), address, length); #elif defined(XP_DARWIN) sys_icache_invalidate(address, length); -#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__)) +#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__NetBSD__)) // Implement the cache synchronisation for all targets where AArch64 is the // host, even if we're building the simulator for an AAarch64 host. This // allows for cases where the user wants to simulate code as well as run it @ 1.3 log @firefox102: Update to 102.15.0 Add some fixes from www/firefox, thanks a lot tnn@@. Security Vulnerabilities fixed in Firefox ESR 102.15 #CVE-2023-4573: Memory corruption in IPC CanvasTranslator #CVE-2023-4574: Memory corruption in IPC ColorPickerShownCallback #CVE-2023-4575: Memory corruption in IPC FilePickerShownCallback #CVE-2023-4576: Integer Overflow in RecordedSourceSurfaceCreation #CVE-2023-4581: XLL file extensions were downloadable without warnings #CVE-2023-4584: Memory safety bugs fixed in Firefox 117, Firefox ESR 102.15, Firefox ESR 115.2, Thunderbird 102.15, and Thunderbird 115.2 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @firefox102: update to 102.3.0 Security Vulnerabilities fixed in Firefox ESR 102.3 #CVE-2022-3266: Out of bounds read when decoding H264 #CVE-2022-40959: Bypassing FeaturePolicy restrictions on transient pages #CVE-2022-40960: Data-race when parsing non-UTF-8 URLs in threads #CVE-2022-40958: Bypassing Secure Context restriction for cookies with __Host and __Secure prefix #CVE-2022-40956: Content-Security-Policy base-uri bypass #CVE-2022-40957: Incoherent instruction cache when building WASM on ARM64 #CVE-2022-40962: Memory safety bugs fixed in Firefox 105 and Firefox ESR 102.3 @ text @d1 1 a1 1 $NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.1 2022/07/21 23:56:39 nia Exp $ d3 1 a3 1 NetBSD/aarch64 does not have the Linux-specific membarrier(2) syscall. d5 1 a5 1 --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2020-11-12 18:04:48.000000000 +0000 d7 1 a7 11 @@@@ -42,6 +42,8 @@@@ # elif defined(__ANDROID__) # include # include +# elif defined(__NetBSD__) + // nothing # else # error "Missing platform-specific declarations for membarrier syscall!" # endif // __linux__ / ANDROID @@@@ -49,7 +51,11 @@@@ # include "vm/JSContext.h" // TlsContext a8 7 static int membarrier(int cmd, int flags) { +#if defined(__NetBSD__) + return ENOSYS; +#else return syscall(__NR_membarrier, cmd, flags); +#endif } d10 1 a10 5 // These definitions come from the Linux kernel source, for kernels before 4.16 @@@@ -116,7 +122,9 @@@@ uint32_t CPU::GetCacheType() { } bool CPU::CanFlushICacheFromBackgroundThreads() { d12 13 a24 6 +#if defined(__NetBSD__) && defined(__aarch64__) + return false; +#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__)) // On linux, check the kernel supports membarrier(2), that is, it's a kernel // above Linux 4.16 included. // @ 1.1 log @Add a package for Firefox 102 ESR @ text @d1 1 a1 1 $NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.2 2020/11/17 16:11:06 ryoon Exp $ @