From nobody Tue Dec 2 01:06:10 2025 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B5102FA0F3 for ; Sat, 22 Nov 2025 10:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763809086; cv=none; b=PGBJfUJK4W8OhICIgxxEYjM01RNkfi+Ab+7tEKTMhb4yt41rZRkbhGZ8ex+gRlPXPClustJ/EeWf27ROyLoU4jEKt+hdk5IDdA27UP4u6NyW6ud3FKkRsfYn0lCWtelnYiCt8FVVlTZqi3DFGQwVGgzc5u0VMCLFK5xlHWu7NZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763809086; c=relaxed/simple; bh=GWtesKagEBWs9dG3u0SjtGG2+EFCBXxpCQu255RhGUk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O/z8lGI5YHt92RkKL2uQcFgV3SANrl79GTpHbymeRPNU79d8Plt1j3pUbVCPZCq8bgxYDO5Hj4q4tjMFnuZzB8z5DUuNVPhZN8XcwFIGCfKQqOWSVKFZgWLOWI6q5Iod5kzaZqtKbEUwu7K4wVEt1eRA2JuJECcciaEkboPJziE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=QbH11JmZ; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="QbH11JmZ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1763809072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zm7Jxc5Da48/UV5DNEG9n0VdL1aGMCvgkLE3bTMhnW0=; b=QbH11JmZR8x/ohq23v7vuUvEOaCuIm4ehSW6SC+AkFs+O/StLbDaCWLafRBX0a8777QnTK UkTTFrFtZZ3ImSBT06kEECD9A0eq2C3M8O44GqR+HEV1scU8V9sAP6mombp1C60QVmEzo8 5IQ3LarpZ45YObmpY9zPM+7Og29vNWg= From: Thorsten Blum To: Eric Biggers , "Jason A. Donenfeld" , Ard Biesheuvel Cc: Thorsten Blum , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] lib/crypto: blake2b: Limit frame size workaround to GCC < 12.2 on i386 Date: Sat, 22 Nov 2025 11:55:31 +0100 Message-ID: <20251122105530.441350-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The GCC bug only occurred on i386 and has been resolved since GCC 12.2. Limit the frame size workaround to GCC < 12.2 on i386. Signed-off-by: Thorsten Blum --- lib/crypto/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile index b5346cebbb55..5ee36a231484 100644 --- a/lib/crypto/Makefile +++ b/lib/crypto/Makefile @@ -33,7 +33,11 @@ obj-$(CONFIG_CRYPTO_LIB_GF128MUL) +=3D gf128mul.o =20 obj-$(CONFIG_CRYPTO_LIB_BLAKE2B) +=3D libblake2b.o libblake2b-y :=3D blake2b.o +ifeq ($(CONFIG_X86_32),y) +ifeq ($(CONFIG_CC_IS_GCC)_$(call gcc-min-version, 120200),y_) CFLAGS_blake2b.o :=3D -Wframe-larger-than=3D4096 # https://gcc.gnu.org/bu= gzilla/show_bug.cgi?id=3D105930 +endif # CONFIG_CC_IS_GCC +endif # CONFIG_X86_32 ifeq ($(CONFIG_CRYPTO_LIB_BLAKE2B_ARCH),y) CFLAGS_blake2b.o +=3D -I$(src)/$(SRCARCH) libblake2b-$(CONFIG_ARM) +=3D arm/blake2b-neon-core.o --=20 2.51.1