From patchwork Tue Jan 9 20:06:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 56593 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 14407385782D for ; Tue, 9 Jan 2024 20:06:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 945423858426 for ; Tue, 9 Jan 2024 20:06:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 945423858426 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 945423858426 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::436 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704830783; cv=none; b=GLhzTI++IdX3gslRL9G2Hc69cfxekpnKuuQvjwTSzzyyHNKoLbXn/QPGuiNiR2dj2xZ6Cu/lB2gOS6HSOtUfpLuEH9jwQyAtyBHhhgEe4cul+DQyaTN4JCUSa4bactuWOYSngkxr1BHOzGPX55oNdsg072TekUVsPGuF/XmnDZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704830783; c=relaxed/simple; bh=7f+dLmMXkKSmq1Pp+t7q4atNyugHBhZty9jFX9NocSc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=aCjCtfOMk41xbyq7wWijXpeSeF9ly29isLw2amQvicyGeh0f3MAEwAkQd96/Bm1+sgyjiUOM1Qt9763rAYaeYkvKfrh8gmxO48VnLyeHnwaomlB2Rz8F0UInGqpJ2+/l0J3bVtYCYhMowgrAjnZhq8KtJQnuWfUzgIs+BLiZSeo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6d9bba6d773so2841447b3a.1 for ; Tue, 09 Jan 2024 12:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704830780; x=1705435580; 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=NG75TodEN+Fdq4byjKuPDe2K/WbTtj0pFFtb9u0iLVY=; b=QEPO92uIx7GL2bzXuhx4nmCYtrc9J+MW2PH3p0Nj2TdYwTcuRf8lUFSp7ukxltM1T1 jzgZ7gtngLb7SmbOuqPuDeCup1kztvmbYZkx2YPCO5aOAy9eTDOhljwqdnEBT62grWvg HUDZVzQzE/SL7OvmDJrQg3bhjO4eYMTbLCRiPuXxlTbcuLxYG+9DD+pHTMQM/vClxF0K cw2V4Lzyk18yAVHsiRmnKe8rmANngELzqdfw8yo4736wkuHrruOCrdii3r8fVo78DITe RAx9de/K3Dw05T5dU7yIlaz/N5zNlnsyytZVQ+4Kbe7WG1JpCE5p9uw+IC6f0HlG1uYx 33Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704830780; x=1705435580; 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=NG75TodEN+Fdq4byjKuPDe2K/WbTtj0pFFtb9u0iLVY=; b=Eu8aBNK2xHsATFXuRt1lhwR3N63BX1WfeG8Js29+UEy3fSshJQwyIHJjpHLq7h4EQ8 3TlzDSlicA88MffIIsRQrtdkQaqx4jrXrLD7dhTe2ncS5vrPVhmbAyBvkLoViTI2f8FA SZ7bgZMvxSoT57CxwPqMnuJaxqPXR2TYlz/nLmc54nEER+tO3oZD66D92SZP43vDqzXk elCZ0OGPZ2momNb9is//2OHzxsNRiITiB8OWopMqmmP78ZZz51sTCvNVHQlcoulaGPZl UEOWWsZ0Bkts02/rusxxtgsuaRHSgs7vTz9T/3JYHTKVaCJzVV4Ip2MknhBWPWNT8bV/ arHg== X-Gm-Message-State: AOJu0YynsZJcKkGImmJzfciTftkMIbIkqfUpmQEeIxti8RX406ljeaUP z4vpBnbTZWhdK9Djh6O7jg/0NPXrd7A= X-Google-Smtp-Source: AGHT+IG8YxyP8WS6lKn48d3P6AuFv4J1UC6DBiAtT2dkOZTrON365t7XVMBqGnpKxLDDUMacrnCKgQ== X-Received: by 2002:a05:6a20:49a2:b0:199:b434:aa95 with SMTP id fs34-20020a056a2049a200b00199b434aa95mr3065774pzb.114.1704830780568; Tue, 09 Jan 2024 12:06:20 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.169.119]) by smtp.gmail.com with ESMTPSA id 24-20020aa79258000000b006d7903784casm2052617pfp.131.2024.01.09.12.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 12:06:20 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id B4744740139; Tue, 9 Jan 2024 12:06:18 -0800 (PST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: adhemerval.zanella@linaro.org, goldstein.w.n@gmail.com Subject: [PATCH v2 0/4] i386: Remove remaining CET bits Date: Tue, 9 Jan 2024 12:06:14 -0800 Message-ID: <20240109200618.1508659-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3018.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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+patchwork=sourceware.org@sourceware.org Changes in v2: 1. Remove sysdeps/i386/libc-start.h. 2. Replace x86 to x86-64 in comments in sysdeps/x86_64/dl-cet.c and sysdeps/x86_64/feature-control.h. 3. Replace _CET_CONTROL_H with _X86_64_FEATURE_CONTROL_H in sysdeps/x86_64/feature-control.h. 1. Move sysdeps/x86/libc-start.h to sysdeps/x86_64/libc-start.h . 2. Move dl-cet.[ch] to x86_64 directories. 3. Move check-cet.awk to x86_64. 4. i386: Remove CET support bits. H.J. Lu (4): x86: Move x86-64 shadow stack startup codes x86-64/cet: Move dl-cet.[ch] to x86_64 directories x86-64/cet: Move check-cet.awk to x86_64 i386: Remove CET support bits sysdeps/i386/dl-machine.h | 11 +-- sysdeps/i386/dl-trampoline.S | 69 ------------------- sysdeps/unix/sysv/linux/x86/dl-cet.h | 63 ----------------- sysdeps/unix/sysv/linux/x86_64/dl-cet.h | 49 ++++++++++++- sysdeps/x86/cpu-features-offsets.sym | 2 - sysdeps/x86/cpu-features.c | 4 +- sysdeps/x86/ldsodefs.h | 1 - sysdeps/x86_64/Makefile | 4 +- sysdeps/{x86 => x86_64}/check-cet.awk | 0 sysdeps/{x86 => x86_64}/dl-cet.c | 2 +- sysdeps/{x86 => x86_64}/dl-procruntime.c | 2 +- sysdeps/x86_64/dl-trampoline.S | 1 + .../feature-control.h} | 8 +-- sysdeps/x86_64/features-offsets.sym | 6 ++ sysdeps/x86_64/ldsodefs.h | 26 +++++++ sysdeps/{x86 => x86_64}/libc-start.h | 2 +- 16 files changed, 94 insertions(+), 156 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/x86/dl-cet.h rename sysdeps/{x86 => x86_64}/check-cet.awk (100%) rename sysdeps/{x86 => x86_64}/dl-cet.c (99%) rename sysdeps/{x86 => x86_64}/dl-procruntime.c (97%) rename sysdeps/{x86/cet-control.h => x86_64/feature-control.h} (92%) create mode 100644 sysdeps/x86_64/features-offsets.sym create mode 100644 sysdeps/x86_64/ldsodefs.h rename sysdeps/{x86 => x86_64}/libc-start.h (98%)