From patchwork Fri Feb 4 16:47:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5053 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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gS42d0z3wsl for ; Fri, 4 Feb 2022 16:48:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Jr1gK547Yz4jy; Fri, 4 Feb 2022 16:47:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Jr1gK0xsjz32KK; Fri, 4 Feb 2022 16:47:57 +0000 (UTC) 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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gH5Vvfz2yXC for ; Fri, 4 Feb 2022 16:47:55 +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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Jr1gH4Q20zWG; Fri, 4 Feb 2022 16:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1643993275; 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: in-reply-to:in-reply-to:references:references; bh=w7+AXkLtkGV/QEMRgRarYFL3wGHWDyMT2omIPiDos2k=; b=sxHmw/ohAZHoFNQtNiu9u0KY98Kw29Em7M5UC9q5u2eJQ8ah5SRYaGnJ7PiG1A1ueWEpa2 Bdmks5R4eeHZ7iOYvbjjuuIiYciE8fOdfFh+65eU8bPiatZ6khPM5OMj8IZL3KwOHUipDa A92zM4Qi4rkpzN23ZfpMy3bnvUPhVBhLtURduJqzXAg3p3a1kcHTKf4NKwhztsjiwo7jDO LbMY0UF2by3QeeXMa/ifVW9sCg25a55fKW3NmMZszIgme/1YjunpEmUfslHbOt/opwkFC9 Yv1A3hSn5hermlt8haZ73DoWNBmql679KcjXaXqKawYmZRiVYGVEDpwcHncmXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1643993275; 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: in-reply-to:in-reply-to:references:references; bh=w7+AXkLtkGV/QEMRgRarYFL3wGHWDyMT2omIPiDos2k=; b=GbcUoIRQGeDlZr1lEX0wseublT3RzsxcWat3QfirbepE/ponaInmNrEsWtsLO3e4NVj4qr U/CKGcwxuyMBNrCg== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 03/28] glibc: Enable CET Date: Fri, 4 Feb 2022 16:47:23 +0000 Message-Id: <20220204164748.315559-3-michael.tremer@ipfire.org> In-Reply-To: <20220204164748.315559-1-michael.tremer@ipfire.org> References: <20220204164748.315559-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Enable Intel Control-flow Enforcement Technology (CET) support to protect the library with indirect branch tracking (IBT) and shadow stack (SHSTK). Signed-off-by: Michael Tremer --- lfs/glibc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs/glibc b/lfs/glibc index e7f2a71c5..9c631de4c 100644 --- a/lfs/glibc +++ b/lfs/glibc @@ -65,6 +65,10 @@ EXTRA_CONFIG += \ --enable-bind-now \ --disable-crypt +ifeq "$(BUILD_ARCH)" "x86_64" + EXTRA_CONFIG += --enable-cet +endif + ############################################################################### # Top-level Rules ###############################################################################