From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Christian Melki <christian.melki@t2data.com>
Subject: Re: [ptxdist] [APPLIED] zstd: Version bump. 1.5.1 -> 1.5.2
Date: Mon, 14 Feb 2022 13:43:33 +0100 [thread overview]
Message-ID: <20220214124333.839542-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20220205230718.2518022-1-christian.melki@t2data.com>
Thanks, applied as d27181cb59920a0e96d3954ae356946bd28821a9.
Michael
[sent from post-receive hook]
On Mon, 14 Feb 2022 13:43:33 +0100, Christian Melki <christian.melki@t2data.com> wrote:
> Mostly a bugfix release.
> https://github.com/facebook/zstd/releases/tag/v1.5.2
> * Drop patches for noexecstack. Fixed in 1.5.2
>
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Message-Id: <20220205230718.2518022-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/zstd-1.5.1/0001-Mark-Huffman-Decoder-Assembly-noexecstack-on-All-Arc.patch b/patches/zstd-1.5.1/0001-Mark-Huffman-Decoder-Assembly-noexecstack-on-All-Arc.patch
> deleted file mode 100644
> index d28baf8d3117..000000000000
> --- a/patches/zstd-1.5.1/0001-Mark-Huffman-Decoder-Assembly-noexecstack-on-All-Arc.patch
> +++ /dev/null
> @@ -1,39 +0,0 @@
> -From: "W. Felix Handte" <w@felixhandte.com>
> -Date: Wed, 29 Dec 2021 17:47:12 -0800
> -Subject: [PATCH] Mark Huffman Decoder Assembly `noexecstack` on All
> - Architectures
> -
> -Apparently, even when the assembly file is empty (because
> -`ZSTD_ENABLE_ASM_X86_64_BMI2` is false), it still is marked as possibly
> -needing an executable stack and so the whole library is marked as such. This
> -commit applies a simple patch for this problem by moving the noexecstack
> -indication outside the macro guard.
> -
> -This commit builds on #2857.
> -
> -This commit addresses #2963.
> ----
> - lib/decompress/huf_decompress_amd64.S | 4 ++--
> - 1 file changed, 2 insertions(+), 2 deletions(-)
> -
> -diff --git a/lib/decompress/huf_decompress_amd64.S b/lib/decompress/huf_decompress_amd64.S
> -index 98173cce863d..706786bb0db0 100644
> ---- a/lib/decompress/huf_decompress_amd64.S
> -+++ b/lib/decompress/huf_decompress_amd64.S
> -@@ -1,7 +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 +7,8 @@
> - .section .note.GNU-stack,"",%progbits
> - #endif
> -
> -+#if ZSTD_ENABLE_ASM_X86_64_BMI2
> -+
> - /* Calling convention:
> - *
> - * %rdi contains the first argument: HUF_DecompressAsmArgs*.
> diff --git a/patches/zstd-1.5.1/0002-Makefiles-Add-noexecstack-Options-to-Compilation-and.patch b/patches/zstd-1.5.1/0002-Makefiles-Add-noexecstack-Options-to-Compilation-and.patch
> deleted file mode 100644
> index 81afe8442ca1..000000000000
> --- a/patches/zstd-1.5.1/0002-Makefiles-Add-noexecstack-Options-to-Compilation-and.patch
> +++ /dev/null
> @@ -1,71 +0,0 @@
> -From: "W. Felix Handte" <w@felixhandte.com>
> -Date: Wed, 5 Jan 2022 14:53:22 -0500
> -Subject: [PATCH] Makefiles: Add `noexecstack` Options to Compilation and
> - Linking
> -
> -Hopefully this marks the binary artifacts `noexecstack` even on platforms
> -where binaries default to true.
> ----
> - lib/libzstd.mk | 28 ++++++++++++++++++++++++++++
> - programs/Makefile | 2 --
> - 2 files changed, 28 insertions(+), 2 deletions(-)
> -
> -diff --git a/lib/libzstd.mk b/lib/libzstd.mk
> -index af12daffe128..5432198ed481 100644
> ---- a/lib/libzstd.mk
> -+++ b/lib/libzstd.mk
> -@@ -34,6 +34,8 @@ ZSTD_NO_ASM ?= 0
> - # libzstd helpers
> - ##################################################################
> -
> -+VOID ?= /dev/null
> -+
> - # Make 4.3 doesn't support '\#' anymore (https://lwn.net/Articles/810071/)
> - NUM_SYMBOL := \#
> -
> -@@ -96,6 +98,32 @@ CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
> - LDFLAGS += $(MOREFLAGS)
> - FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
> -
> -+ifndef ALREADY_APPENDED_NOEXECSTACK
> -+export ALREADY_APPENDED_NOEXECSTACK := 1
> -+ifeq ($(shell echo "int main(int argc, char* argv[]) { (void)argc; (void)argv; return 0; }" | $(CC) $(FLAGS) -z noexecstack -x c -Werror - -o $(VOID) 2>$(VOID) && echo 1 || echo 0),1)
> -+$(info Supports noexecstack linker flag!)
> -+$(info $(LDFLAGS))
> -+LDFLAGS += -z noexecstack
> -+$(info $(LDFLAGS))
> -+else
> -+$(info Doesn't support noexecstack linker flag!)
> -+endif
> -+ifeq ($(shell echo | $(CC) $(FLAGS) -Wa,--noexecstack -x assembler -Werror -c - -o $(VOID) 2>$(VOID) && echo 1 || echo 0),1)
> -+$(info Supports noexecstack assembler flag!)
> -+$(info $(CFLAGS))
> -+CFLAGS += -Wa,--noexecstack
> -+$(info $(CFLAGS))
> -+else ifeq ($(shell echo | $(CC) $(FLAGS) -Qunused-arguments -Wa,--noexecstack -x assembler -Werror -c - -o $(VOID) 2>$(VOID) && echo 1 || echo 0),1)
> -+# See e.g.: https://github.com/android/ndk/issues/171
> -+$(info Supports noexecstack assembler flag with unused arg suppression!)
> -+$(info $(CFLAGS))
> -+CFLAGS += -Qunused-arguments -Wa,--noexecstack
> -+$(info $(CFLAGS))
> -+else
> -+$(info Doesn't support noexecstack assembler flag!)
> -+endif
> -+endif
> -+
> - HAVE_COLORNEVER = $(shell echo a | grep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
> - GREP_OPTIONS ?=
> - ifeq ($HAVE_COLORNEVER, 1)
> -diff --git a/programs/Makefile b/programs/Makefile
> -index a54900cc1e9d..da848eb66bc0 100644
> ---- a/programs/Makefile
> -+++ b/programs/Makefile
> -@@ -62,8 +62,6 @@ else
> - EXT =
> - endif
> -
> --VOID = /dev/null
> --
> - # thread detection
> - NO_THREAD_MSG := ==> no threads, building without multithreading support
> - HAVE_PTHREAD := $(shell printf '$(NUM_SYMBOL)include <pthread.h>\nint main(void) { return 0; }' > have_pthread.c && $(CC) $(FLAGS) -o have_pthread$(EXT) have_pthread.c -pthread 2> $(VOID) && rm have_pthread$(EXT) && echo 1 || echo 0; rm have_pthread.c)
> diff --git a/patches/zstd-1.5.1/series b/patches/zstd-1.5.1/series
> deleted file mode 100644
> index 29b488d4b2fd..000000000000
> --- a/patches/zstd-1.5.1/series
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# generated by git-ptx-patches
> -#tag:base --start-number 1
> -0001-Mark-Huffman-Decoder-Assembly-noexecstack-on-All-Arc.patch
> -0002-Makefiles-Add-noexecstack-Options-to-Compilation-and.patch
> -# f2f3753627f3109aedeb7a6d245daf7a - git-ptx-patches magic
> diff --git a/rules/zstd.make b/rules/zstd.make
> index da2cf75a381e..7198117c3720 100644
> --- a/rules/zstd.make
> +++ b/rules/zstd.make
> @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_ZSTD) += zstd
> #
> # Paths and names
> #
> -ZSTD_VERSION := 1.5.1
> -ZSTD_MD5 := 120d77140ad538e8bd3a7dae6a38c4c9
> +ZSTD_VERSION := 1.5.2
> +ZSTD_MD5 := 6dc24b78e32e7c99f80c9441e40ff8bc
> ZSTD := zstd-$(ZSTD_VERSION)
> ZSTD_SUFFIX := tar.gz
> ZSTD_URL := https://github.com/facebook/zstd/archive/v$(ZSTD_VERSION).$(ZSTD_SUFFIX)
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
prev parent reply other threads:[~2022-02-14 12:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-05 23:07 [ptxdist] [PATCH] " Christian Melki
2022-02-05 23:07 ` [ptxdist] [PATCH] util-linux-ng: Version bump 2.37.2 -> 2.37.3 Christian Melki
2022-02-14 12:43 ` [ptxdist] [APPLIED] " Michael Olbrich
2022-02-05 23:07 ` [ptxdist] [PATCH] screen: Version bump. 4.8.0 -> 4.9.0 Christian Melki
2022-02-14 12:43 ` [ptxdist] [APPLIED] " Michael Olbrich
2022-02-05 23:07 ` [ptxdist] [PATCH] qemu: Version bump. 6.1.0 -> 6.2.0 Christian Melki
2022-02-05 23:07 ` [ptxdist] [PATCH] pulseaudio: Version bump. 13.0 -> 1.5.0 Christian Melki
2022-02-07 5:56 ` Bruno Thomsen
2022-02-07 7:54 ` Michael Olbrich
2022-02-07 8:05 ` Christian Melki
2022-02-07 10:30 ` Christian Melki
2022-02-07 12:02 ` Michael Olbrich
2022-02-14 12:43 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220214124333.839542-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox