From 936433a5deb6ccc8f8476096f2c2b8dc72c33388 Mon Sep 17 00:00:00 2001 From: zorz Date: Thu, 2 Apr 2026 01:11:55 +0300 Subject: chromium musl --- chromium/patches/022-no-sandbox-settls.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 chromium/patches/022-no-sandbox-settls.patch (limited to 'chromium/patches/022-no-sandbox-settls.patch') diff --git a/chromium/patches/022-no-sandbox-settls.patch b/chromium/patches/022-no-sandbox-settls.patch new file mode 100644 index 0000000..f04e105 --- /dev/null +++ b/chromium/patches/022-no-sandbox-settls.patch @@ -0,0 +1,16 @@ +this optimisation of CLONE_SETTLS is not valid used like this, and musl +clone(3) will EINVAL on this use +-- +diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc +index 7f925cc..993a9ee 100644 +--- a/sandbox/linux/services/credentials.cc ++++ b/sandbox/linux/services/credentials.cc +@@ -104,7 +104,7 @@ bool ChrootToSafeEmptyDir() { + // glibc performs syscalls by calling a function pointer in TLS, so we do not + // attempt this optimization. + // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. +- clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; ++ clone_flags |= CLONE_VM | CLONE_VFORK; + + char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; + tls = tls_buf; -- cgit v1.2.3