From patchwork Tue Nov 17 21:25:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 10774 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4jTd6s1vGvz3x5b for ; Tue, 17 Nov 2026 21:25:09 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE2" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jTd6r53Gdz78w for ; Tue, 17 Nov 2026 21:25:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jTd6r4Fxtz310K for ; Tue, 17 Nov 2026 21:25:08 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jTd6n6QSWz30BW for ; Tue, 17 Nov 2026 21:25:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4jTd6n4tgXz2CW; Tue, 17 Nov 2026 21:25:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1794950705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8zhGEVJD+qmYDS4i4G0e5SznNHGJqCt6HrckKQHB7zk=; b=gkJyEzuM8Cy8XbiKOk9nvKGAu+GHee1eliwmeIAtiHEANQSiW1o5Hm/EI8cQc16iqzQ9AS Ts368yO5VAKi9GCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1794950705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8zhGEVJD+qmYDS4i4G0e5SznNHGJqCt6HrckKQHB7zk=; b=k5HP3CdrD6DF+XRJy8nw1Q6eyCPAtJeNuhWwSYwa1rSRPLr4LWk77MK74DWxLdiIPcUCm0 PsHQ7d5vRfh6LoBlui33vQOEh+nnJHKv33n5u9cM/cAoBLGzTh/r4uvKCCkyRJ3cEP/E3Q 63rfZNfBf6xn05x1Nq2iQ+3/T9zC3R1vuIDuj7b9lhVyYReyGyS1AISy99bauEw0GPNIB8 eGdTuRHz9eeqIFc2kb2/HKlAY8m3xwTsdKHlEn3LH1XfgLJc0n9uwgXOlonNfAXPn2OhFP wXP2LeWswB5Zawk7W0Q9W3j716Hn9Tw7bSKZ8HbLqGha4tATQqH9vNvIj3LLgA== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] libffi: Update to version 3.8.1 Date: Tue, 17 Nov 2026 22:25:01 +0100 Message-ID: <20261117212501.3424309-2-adolf.belka@ipfire.org> In-Reply-To: <20261117212501.3424309-1-adolf.belka@ipfire.org> References: <20261117212501.3424309-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - Update from version 3.8.0 to 3.8.1 - Update of rootfile - 6 GHSA security fixes. Each is relevant to a specific platform. - Changelog 3.8.1 AArch64 — ffi_call placed the pointer to a by-value composite larger than 16 bytes at the wrong stack offset, and homogeneous-aggregate (HFA/HVA) detection did not match AAPCS64, so a callee or closure could use the wrong pointer. (GHSA-h52h-3759-xqm4, GHSA-vg77-j273-647r) macOS on Apple Silicon (Darwin arm64) — heap use-after-free in the trampoline-table closure allocator once a process used more than one trampoline table (over 1024 live closures). (GHSA-23hx-9rxv-9qfp) Linux and Cygwin (static trampolines) — the /proc/self/maps path was truncated at the first space and the reopened file was never verified, so a file at a truncated or replaced path could be mapped as trampoline code. (GHSA-fq46-69xf-x5gf) s390x — closures mishandled 128-bit integer arguments, passing an uninitialized pointer to the callback; they are now passed by reference like complex types. (GHSA-wf8m-qr3x-cch4) x86-64 (System V) — vector types whose calling convention is undefined (sub-8-byte vectors and <1 x double>, where GCC and Clang disagree) were misclassified; libffi now rejects them with FFI_BAD_TYPEDEF. (GHSA-5pc3-hr6f-q3mm) Raw API with static trampolines (notably i386) — raw-API closures passed the wrong pointer as the handler's data (and the i386 native path corrupted the closure), causing a wild indirect call. (GHSA-w6j9-w53f-2857) Bug fixes and ABI conformance Broader ABI-conformance work and test coverage for complex-number calls, closures, and small aggregates across ARM, x86, PowerPC, MIPS, RISC-V, LoongArch, and SPARC. AArch64 / ARM big-endian — fixed closures receiving garbage sub-word integer and float arguments, and sub-word and float return values (#1012, closes #1011, #675). x86-64 — return a single-long double struct in %st0 like a bare long double (#1058); copy the upper half of 16-byte vector arguments in reusable call plans. powerpc64 — fixed _Complex long double when the ABI's long double is 64 bits (e.g. -mlong-double-64 or musl). RISC-V — ignore the caller's return buffer for void calls. MIPS — emit CFI in the N32/N64 assembly so unwinding works through libffi frames (#1063). wasm — correct heap accesses at or above 2 GiB (#1062), make closures work with stack switching, and declare the stack-helper dependencies in EM_JS_DEPS for newer Emscripten (#1019). Closures / trampolines (all targets) — fail allocation gracefully when the page-size lookup fails (#1015) and bound the executable-mmap retry loop (#1055). Build and packaging Keep the bundled dlmalloc symbols static so they cannot clash with an application's allocator, and emit subsections_via_symbols on Apple platforms for linker dead-stripping (#1017). Honor an explicit --enable-docs, respect every --libdir spelling, and keep CCASFLAGS in sync with CFLAGS (#1060). Signed-off-by: Adolf Belka --- config/rootfiles/common/libffi | 2 +- lfs/libffi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/common/libffi b/config/rootfiles/common/libffi index 41cc47b9e..6d6bb7b42 100644 --- a/config/rootfiles/common/libffi +++ b/config/rootfiles/common/libffi @@ -4,7 +4,7 @@ #usr/lib/libffi.la #usr/lib/libffi.so usr/lib/libffi.so.8 -usr/lib/libffi.so.8.5.0 +usr/lib/libffi.so.8.5.1 #usr/lib/pkgconfig/libffi.pc #usr/share/info/libffi.info #usr/share/man/man3/ffi.3 diff --git a/lfs/libffi b/lfs/libffi index df8f5c3ac..1205650e3 100644 --- a/lfs/libffi +++ b/lfs/libffi @@ -24,7 +24,7 @@ include Config -VER = 3.8.0 +VER = 3.8.1 THISAPP = libffi-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 589f87f79ea637dbddd00db3e320090f17855da5b1669a42b154f1c61bcafd1e8a964738d25b424c95ba5e148565df4b7379800ba42f40149c74d749f4f4b096 +$(DL_FILE)_BLAKE2 = 67a84bb411d4cdf6eb0d307c2b9e733f731f58780aa8f7d817b63605d0f8ac5e87224fffa212d6f560e38bed98a5ccc19f15fe54b74274da4f8908f55d6d4377 install : $(TARGET)