Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-13 17:27:01 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-13 17:27:01 +0100
commit81bbcb62cccc88b45381cd6eb462a5ea55fe75e4 (patch)
treedaced691964a5f15391ae2a85cfcb4589622adb9 /core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch
parentf3d276d793fcd5990d5ebf66cca055196c147f30 (diff)
core/zstd: patch for non-executable stack (FS32#225)
Diffstat (limited to 'core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch')
-rw-r--r--core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch b/core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch
new file mode 100644
index 00000000..ebc270b6
--- /dev/null
+++ b/core/zstd/zstd-1.5.1-non-x86_64-noexecstack.patch
@@ -0,0 +1,19 @@
+diff -rauN zstd-1.5.1/lib/decompress/huf_decompress_amd64.S zstd-1.5.1-non-x86_64-noexecstack-patch/lib/decompress/huf_decompress_amd64.S
+--- zstd-1.5.1/lib/decompress/huf_decompress_amd64.S 2021-12-20 23:49:18.000000000 +0100
++++ zstd-1.5.1-non-x86_64-noexecstack-patch/lib/decompress/huf_decompress_amd64.S 2022-01-13 17:06:54.275942263 +0100
+@@ -1,6 +1,5 @@
+ #include "../common/portability_macros.h"
+
+-#if ZSTD_ENABLE_ASM_X86_64_BMI2
+
+ /* Stack marking
+ * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
+@@ -9,6 +8,8 @@
+ .section .note.GNU-stack,"",%progbits
+ #endif
+
++#if ZSTD_ENABLE_ASM_X86_64_BMI2
++
+ /* Calling convention:
+ *
+ * %rdi contains the first argument: HUF_DecompressAsmArgs*.