From patchwork Fri Jan 5 16:36:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 760227 Delivered-To: patch@linaro.org Received: by 2002:a5d:678d:0:b0:336:6142:bf13 with SMTP id v13csp131620wru; Fri, 5 Jan 2024 08:37:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRXhkCmTU2YGVdkAZ3p3w16wsnkK7Rt2I5WYqKq+BObhG9FTWAW6mew2r7gUS4Y3NKhfte X-Received: by 2002:a05:620a:1b87:b0:781:eaa1:5322 with SMTP id dv7-20020a05620a1b8700b00781eaa15322mr2560280qkb.87.1704472622478; Fri, 05 Jan 2024 08:37:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704472622; cv=pass; d=google.com; s=arc-20160816; b=mHYh9JRTXOpwVAxAF26Ag9q4UMHF9hy3m+8mFTTemeJRbVlYXyzeIcInbMfZ2csReQ XTm+0pM79FE3sYXarEkLbpBpTB1YKHDBTyhbmzfQeddcg97MYz6eaI7H3FN6aRDxqwy8 K5w8GG+rgIWz1J3LsTA/SjLKB9XMXSEW5IXfbI5ozPO6BeCQsPq63tWvvZwj9cnKbFp0 Nftl4vBR1veEwGrmH6zuzcm1nSwaGYrGvPGEGm2F1Xaj8ay2iMVpmKEmNt4nJBMhyecg xrrBsl5egF29A0Mjhb4n9HMMB57ie9arcvaGEyJWA5QcVFd7hPoDgSFA22ObEzQiiM7b dQ8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=W5KEfloK5kvsy/P82FV64PqpwpWkDm/3Y/JNxpKbvcY=; fh=qNpUks/TopiPZxY8eC/gxlafjz4HRhxj0r0Qc3ttvcE=; b=FJXfoNq3E837K7lmlYjGXhQFSe5QOXUeG7uBk8OV0gGDntGbVbLO9p5NvfAl3T43Kg Akd7RMbNDgs3OmrQYeAHvQJlP/4WOMVOf2sT5OynpBdu/ibEm1X8euOvvYJAiAVbKsIY bhJO5YxeQc3cjMLbz5F2rlqTlPv4yPIFRe+8p8GRFZudOxqSBf7T9QXcHATc0IZK+9Pt UrrnkufvgmgF+Ack/AR7z3e4vOaDqRjKc58Jjcpg+CB7B7gZZB6Mnjzug//Gcn/z3P9t o8TqBTrMOWuOaB7/O/vbfNa9xMuPuNEp7/8L+Jcs09zhyoVJYQbMZyVcJN2YULMOViui ivAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AkTg7HH/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id i13-20020a05620a0a0d00b007815e79ec74si1991311qka.367.2024.01.05.08.37.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 08:37:02 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AkTg7HH/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0C2DF385E01F for ; Fri, 5 Jan 2024 16:37:02 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 099423858C54 for ; Fri, 5 Jan 2024 16:36:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 099423858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 099423858C54 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704472612; cv=none; b=m2zQyl6AjHZMwV2QKGNEaO1EcF9c1kmWUtMX9EX5VODZCEy0PrISr/kePdwgUkG4FSp4qUWfO5r84+1hpwLJBwi6CgKLt0g2ZjYeYzEv/+09RZmL1OmWWetc+X8PSSweqBURFN53dRO7hDeHzE5m+zEpltYRzDYVAbg2CFxeq+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704472612; c=relaxed/simple; bh=tz/1vHQ9TlTP5lZAgE82gsXV4qgV31+yLg0C68YlZWI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=bIO44WhLaxN3UQ5MzTHN/6WL2BbGBcG2v7IevTg219UDdl8ye0qnPpqscBsNKDqANO3+OSCQPHLh5Vo37HYXQQtM995GN23atvxd/CnqYazieFvJUQTWpQVRQgqtzIm4GujAuu6LMdJaCqbQ+o4Lg8eS/xoB0rPxu2ykdZ9CBsA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d3ed1ca402so12681535ad.2 for ; Fri, 05 Jan 2024 08:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704472605; x=1705077405; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=W5KEfloK5kvsy/P82FV64PqpwpWkDm/3Y/JNxpKbvcY=; b=AkTg7HH/KhbYmHWcavOj4e3tr6tmuEIQkeZMx5Ng3rn17Mfl/nnx0GVIUs3NDcvvsV bAXAA+LwoTKNC4e6SzDaF/TB5qG+5LF/WrapEaSEf2xiI37J7wDUY2dtP6+mH3txxlMW hs3gW9bBy9uYbYNUO+QF7afKbI96mancybEffHuLQdnPnTKm0ZMWtxd5s+yxuM1nQrLS 44vlf2T6g+CFP59st6PigRmCreDkradtGlVdC0dYNVA3BAtTLoemSNGDs3kPEULLcLG+ zr3OmMDqjFsPiCZj7/ZBhKGvinCY9ezCrkpjuYEL4h0TBJR+DrGo6OpM6T3V7Q42U1ck iOmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704472605; x=1705077405; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W5KEfloK5kvsy/P82FV64PqpwpWkDm/3Y/JNxpKbvcY=; b=m4mYvcjREnHJ7rWar5Q6aYKQjCJCCsj2sf3YNnC9S8GrVlK0ubEPpzVNIwoSIMZusP 8/rQzRGmM+Xv8KiPxjpqydzVsNbyYynFWcvSHM3ZLDe/0lsqzdYjTWIq660+K3fXDl/q Uh5SsVeinXhIXKsWjIeOYqh2uT9VTtcIf+tYh0ZmiLTOiVDLVjObHIxadiKvFoCLaif5 mPLd9V3E8k5eKfpJyuyameKu3oyYYGviRLLr86u+LmgOGOFZVAf69uFHRgMzI63vxCsg LGBYaD4bSBQYjzcygMGlJvsXFoLWbT4wrOTNYZsV3fp46M3Qb2IkPticrdCBsap4ZHHc eOcQ== X-Gm-Message-State: AOJu0YwRZU5+Qes60uRzW1W6UyXVSu9ppJ0F09bPpKbqkTa6wYhHLprE 8HZbjf46AJyQo/lQo/utK9HO+7qKUEmrRxHZWAMZ80zmvk4= X-Received: by 2002:a17:902:e74c:b0:1d4:5fd7:fa05 with SMTP id p12-20020a170902e74c00b001d45fd7fa05mr2755569plf.5.1704472604988; Fri, 05 Jan 2024 08:36:44 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c1:9dd2:6f94:a8f0:eddb:341]) by smtp.gmail.com with ESMTPSA id x9-20020a170902820900b001d46a313b42sm1592332pln.268.2024.01.05.08.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 08:36:44 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" , Noah Goldstein Subject: [PATCH v2 0/3] x86: Move CET infrastructure to x86_64 Date: Fri, 5 Jan 2024 13:36:37 -0300 Message-Id: <20240105163640.1205560-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org And removes i686 support now that CET is x86_64 only. The --enable-cet now issues an error with i686-linux-gnu. Adhemerval Zanella (3): x86: Move CET infrastructure to x86_64 i386: Remove CET support i386: Fail if configured with --enable-cet INSTALL | 3 +- NEWS | 4 +- manual/install.texi | 3 +- sysdeps/i386/__longjmp.S | 73 ------ sysdeps/i386/add_n.S | 25 -- sysdeps/i386/bsd-_setjmp.S | 21 -- sysdeps/i386/bsd-setjmp.S | 21 -- sysdeps/i386/configure | 8 +- sysdeps/i386/configure.ac | 7 +- sysdeps/i386/i686/add_n.S | 25 -- sysdeps/i386/setjmp.S | 21 -- sysdeps/i386/sub_n.S | 24 -- .../unix/sysv/linux/i386/____longjmp_chk.S | 37 --- sysdeps/unix/sysv/linux/i386/getcontext.S | 56 ---- sysdeps/unix/sysv/linux/i386/makecontext.S | 123 --------- sysdeps/unix/sysv/linux/i386/setcontext.S | 101 +------- sysdeps/unix/sysv/linux/i386/swapcontext.S | 139 ---------- sysdeps/unix/sysv/linux/i386/sysdep.h | 5 - sysdeps/unix/sysv/linux/i386/ucontext_i.sym | 4 - sysdeps/unix/sysv/linux/i386/vfork.S | 29 --- sysdeps/unix/sysv/linux/x86/Makefile | 27 -- sysdeps/unix/sysv/linux/x86_64/Makefile | 27 ++ .../{x86 => x86_64}/tst-cet-property-1.c | 0 .../{x86 => x86_64}/tst-cet-property-2.c | 0 .../{x86 => x86_64}/tst-cet-property-dep-2.S | 0 .../{x86 => x86_64}/tst-cet-setcontext-1.c | 0 .../linux/{x86 => x86_64}/tst-cet-vfork-1.c | 0 sysdeps/x86/Makefile | 238 ----------------- sysdeps/x86/sysdep.h | 2 - sysdeps/x86_64/Makefile | 243 ++++++++++++++++++ sysdeps/{x86 => x86_64}/tst-cet-legacy-1.c | 0 .../tst-cet-legacy-10-static.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-10.c | 0 .../tst-cet-legacy-10a-static.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-10a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-1a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-2.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-2a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-3.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-4.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-4a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-4b.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-4c.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-5.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-5a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-5b.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-6.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-6a.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-6b.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-7.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-8.c | 0 .../{x86 => x86_64}/tst-cet-legacy-9-static.c | 0 sysdeps/{x86 => x86_64}/tst-cet-legacy-9.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-1.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-2.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-4.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-5.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-5a.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-5b.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-5c.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-6.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-6a.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-6b.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-6c.c | 0 .../{x86 => x86_64}/tst-cet-legacy-mod-6d.c | 0 .../tst-shstk-legacy-1-extra.S | 0 .../tst-shstk-legacy-1a-static.c | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a.c | 0 .../tst-shstk-legacy-1b-static.c | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b.c | 0 .../tst-shstk-legacy-1c-static.c | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c.c | 0 .../tst-shstk-legacy-1d-static.c | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d.c | 0 .../tst-shstk-legacy-1e-static.c | 0 .../tst-shstk-legacy-1e-static.sh | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.c | 0 .../{x86 => x86_64}/tst-shstk-legacy-1e.sh | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1f.c | 0 sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.c | 0 .../{x86 => x86_64}/tst-shstk-legacy-1g.sh | 0 .../{x86 => x86_64}/tst-shstk-legacy-mod-1.c | 0 82 files changed, 285 insertions(+), 981 deletions(-) rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-1.c (100%) rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-2.c (100%) rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-property-dep-2.S (100%) rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-setcontext-1.c (100%) rename sysdeps/unix/sysv/linux/{x86 => x86_64}/tst-cet-vfork-1.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-1.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10a-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-10a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-1a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-2.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-2a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-3.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4b.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-4c.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-5b.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-6b.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-7.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-8.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-9-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-9.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-1.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-2.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-4.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5b.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-5c.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6a.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6b.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6c.c (100%) rename sysdeps/{x86 => x86_64}/tst-cet-legacy-mod-6d.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1-extra.S (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1a.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1b.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1c.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1d.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e-static.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e-static.sh (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1e.sh (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1f.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.c (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-1g.sh (100%) rename sysdeps/{x86 => x86_64}/tst-shstk-legacy-mod-1.c (100%)