From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 2AC733858D20 for ; Mon, 12 Feb 2024 00:46:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AC733858D20 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 2AC733858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707698770; cv=none; b=NIUwI5m+ePlnlbKe49Elb4gTYJyC/ShBsPI66uF9kdPhCAlnknkobUMO1Muhxm3FRFWYUpZ3cdVpL3KACgG9x+4OxQAlH2qe0yR5DaQxcmNn+WIpJ+s2UTXVadSDEL+MMYGch/hkITOVTZoU1cNZCghrjtwjAMfM6q+sBe3/0ig= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707698770; c=relaxed/simple; bh=aPmbjwnmUv8US7RwtdAV69wzh0e7TJ/84929fPt9qoU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Xy6mI/6m69jQR667ceg3PVNCFVzIPnKg6BcV9fO9VBjX+qTTRv+V6BJbqTYv4eacALFUAPpiWnsTb853yzckx2aiy4cAaoBgQcNeW93fCPw2QRbHzbbnMjNrwfrmIJHLIAw1pgxlQ0YuIBc4aHShTm6ivUEGCX5SDtBiw8REnhA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3c031776e0cso1030359b6e.0 for ; Sun, 11 Feb 2024 16:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707698768; x=1708303568; 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=17Kht93Hg6U4Zbz9uFF+OgaWc2SnOJexrcDYay8S7FU=; b=Q/PtAa6JWNIb4yQXWAF+YgLaIRtJwyKweFHsZF3DAFvnK4/FOJxgm852wVmzRZcJeB lE1LIxTQD8T79tRq3B02UOwLa2jiws23ZIvpdlJdRk2lMSDx6fqqfTkpgHda8iYCnwNl hD0Ey3iZx7LCTmVXDhwnHK1ZQQwWU52HsQHlYE0FhOagHTL1ABOIX9tn6uQBGHlGuVL8 XVFamm2fUfenqoKudAbWeRmP9SKVFEX+D74U4aZ1UxGcSnNSi1KMjIBk/9LblE6V+5tO do0ihMvx7AexJzJd3nRqnW5D4i9L4vqJZov5WDUoNQ4WKXsPv6th7ChGhkenNDlN/4g3 walw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707698768; x=1708303568; 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=17Kht93Hg6U4Zbz9uFF+OgaWc2SnOJexrcDYay8S7FU=; b=BCMf0zFx69feHxCREvkcbT62gcXmbJvTJgX40KX4CZNG/DoWOnchpISoLm3OShOWXl G8WywBWbRXREBLE4nJsQaPRwzVkvUvTuv7BfB2FG0LP7AQtVaG9LuNCv9tuJf64IDzE8 xt5tPNpwUGJU+HAY/7Bi00HIAR66HIsTYgm4hstb9z/NOsStBZH/rBC/sgOmed4pA/O5 jfHkmuN3eS1EjmrpTJ0X4dkvMsf1rwXUXAixTnlyiqOjDk1U0A241EjsKOzDe82/ueHq xd71LKsAslGC3ZYo3ytqY4Oh0GDwhVhiwoGwijDlUJsNdoCToVt8q9YH/+8DyKjNxOHn ON/A== X-Gm-Message-State: AOJu0YxuvTJTvKz8d6XG04isx3MhVpEZ8UHm2SaItfY7WcDZBSVH1U9q 7vKJzNSZ3t+vNQRqerMH0uJDEOX1HiJUkrgunRtS0PwW1NQr7T6Y X-Google-Smtp-Source: AGHT+IFZnazt4wAjC1T7prV3iq7j/6rdjTfMfqsQYZWCOEDpWIVs6CAhGf97UsIjIrVFUO93UvidxA== X-Received: by 2002:a05:6871:2301:b0:21a:3787:580c with SMTP id sf1-20020a056871230100b0021a3787580cmr6078561oab.50.1707698768002; Sun, 11 Feb 2024 16:46:08 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.168.224]) by smtp.gmail.com with ESMTPSA id t191-20020a6381c8000000b005ca0ae17983sm5758210pgd.8.2024.02.11.16.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 16:46:07 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 69424740098; Sun, 11 Feb 2024 16:46:06 -0800 (PST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: fweimer@redhat.com Subject: [PATCH] x86-64: Save APX registers in ld.so trampoline Date: Sun, 11 Feb 2024 16:46:06 -0800 Message-ID: <20240212004606.969653-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3020.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_ABUSEAT,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,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 List-Id: Remove bound registers from STATE_SAVE_MASK and add APX registers to STATE_SAVE_MASK so that APX registers are saved in ld.so trampoline. This fixes BZ #31371. --- sysdeps/x86/sysdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h index 85d0a8c943..9877a3a46f 100644 --- a/sysdeps/x86/sysdep.h +++ b/sysdeps/x86/sysdep.h @@ -26,9 +26,9 @@ aligned to 16 bytes for fxsave and 64 bytes for xsave. */ #define STATE_SAVE_OFFSET (8 * 7 + 8) -/* Save SSE, AVX, AVX512, mask and bound registers. */ +/* Save SSE, AVX, AVX512, mask and APX registers. */ #define STATE_SAVE_MASK \ - ((1 << 1) | (1 << 2) | (1 << 3) | (1 << 5) | (1 << 6) | (1 << 7)) + ((1 << 1) | (1 << 2) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 19)) /* Constants for bits in __x86_string_control: */ -- 2.43.0