diff options
| author | zorz <zorz@krypt.sh> | 2026-04-02 01:11:55 +0300 |
|---|---|---|
| committer | zorz <zorz@krypt.sh> | 2026-04-02 01:11:55 +0300 |
| commit | 936433a5deb6ccc8f8476096f2c2b8dc72c33388 (patch) | |
| tree | fe62acdddbfc42bc377383f5706f2c64120b942c /chromium/patches/022-no-sandbox-settls.patch | |
| parent | 16d3c790c04095ea1c8488116f56719e5480efb7 (diff) | |
| download | zorz-936433a5deb6ccc8f8476096f2c2b8dc72c33388.tar.gz zorz-936433a5deb6ccc8f8476096f2c2b8dc72c33388.tar.xz | |
chromium musl
Diffstat (limited to 'chromium/patches/022-no-sandbox-settls.patch')
| -rw-r--r-- | chromium/patches/022-no-sandbox-settls.patch | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
| 1 | this optimisation of CLONE_SETTLS is not valid used like this, and musl | ||
| 2 | clone(3) will EINVAL on this use | ||
| 3 | -- | ||
| 4 | diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc | ||
| 5 | index 7f925cc..993a9ee 100644 | ||
| 6 | --- a/sandbox/linux/services/credentials.cc | ||
| 7 | +++ b/sandbox/linux/services/credentials.cc | ||
| 8 | @@ -104,7 +104,7 @@ bool ChrootToSafeEmptyDir() { | ||
| 9 | // glibc performs syscalls by calling a function pointer in TLS, so we do not | ||
| 10 | // attempt this optimization. | ||
| 11 | // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. | ||
| 12 | - clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; | ||
| 13 | + clone_flags |= CLONE_VM | CLONE_VFORK; | ||
| 14 | |||
| 15 | char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; | ||
| 16 | tls = tls_buf; | ||