summaryrefslogtreecommitdiff
path: root/mozilla-1651701.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-07-21 12:12:38 +0200
committerMartin Stransky <stransky@redhat.com>2020-07-21 12:12:38 +0200
commit2a1307f3d574e22f1aaf4ad9b9e271dd575f42d2 (patch)
tree3c2216242bb951fc403a43532ccbcde24eb0809f /mozilla-1651701.patch
parentFixing enable-linker=ldd for clang builds (diff)
downloadlibrewolf-fedora-ff-2a1307f3d574e22f1aaf4ad9b9e271dd575f42d2.tar.gz
librewolf-fedora-ff-2a1307f3d574e22f1aaf4ad9b9e271dd575f42d2.tar.bz2
librewolf-fedora-ff-2a1307f3d574e22f1aaf4ad9b9e271dd575f42d2.zip
Added fix for mozbz#1651701/rhbz#1855730
Diffstat (limited to 'mozilla-1651701.patch')
-rw-r--r--mozilla-1651701.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/mozilla-1651701.patch b/mozilla-1651701.patch
new file mode 100644
index 0000000..7bcea2e
--- /dev/null
+++ b/mozilla-1651701.patch
@@ -0,0 +1,18 @@
+diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
+--- a/security/sandbox/linux/SandboxFilter.cpp
++++ b/security/sandbox/linux/SandboxFilter.cpp
+@@ -711,6 +711,13 @@
+ return Error(EPERM);
+ #endif
+
++ // Bug 1651701: an API for restartable atomic sequences and
++ // per-CPU data; exposing information about CPU numbers and
++ // when threads are migrated or preempted isn't great but the
++ // risk should be relatively low.
++ case __NR_rseq:
++ return Allow();
++
+ #ifdef MOZ_ASAN
+ // ASAN's error reporter wants to know if stderr is a tty.
+ case __NR_ioctl: {
+
bgstack15