From patchwork Fri Nov 3 16:21:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 79035 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 6B340385841F for ; Fri, 3 Nov 2023 16:21:36 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id F29A73858CD1 for ; Fri, 3 Nov 2023 16:21:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F29A73858CD1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F29A73858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.137.180 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699028485; cv=none; b=Z9TOyagM0VXrGvIRzGT5F6NhjYurPbyKJyObUxdxgZFX37sPHyuUV103BLHmD3lKKbh5NWS1MJW5E6p2fFX5Y2P0BJPf1EyQjH8ndB2mwjaToXKORdKVdqYRfTZjykI99EPzoX8Q9jd4UWuJewKEVTiBpi7qeZNqYgdRppitxV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699028485; c=relaxed/simple; bh=ASYkK91sI6fmEradyrQFmJDCUd7nRgNY8byqgnanEBQ=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=iN44SQgG6n433ubZBq/Qmpv/Tjm+DAJ5gSm4oIz2tQJy5bMBbKtDBBxiJhad0fPN+bjSftNGwKHylLvfEBWPkr++ui4BUV1YhWZBhOdfgCPURTAyyeCK7LaIWSUvUgH+Ges+CmCbINdaGPUMa1w7GoyYhmCaNCBe2yDs9M7vLgk= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: SgZftJKnTWiNovfBbFjnhg== X-CSE-MsgGUID: mRWsdP96S0maeqY/qgSklA== X-IronPort-AV: E=Sophos;i="6.03,273,1694764800"; d="scan'208";a="21784943" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 03 Nov 2023 08:21:22 -0800 IronPort-SDR: a1BGdMMO/WvElH7/OVTHE/AkjgqMV5EAUe9sLNMIaRRnKxt74KzOHpzcjgvy6/r/leYdjACPy1 WECPej+Wxjsv/iOQzbuP7bWE2TjwWyTwOYRSGz6rEHehagLh67HmVG/axaFIwzpmLNgdeqmYs5 Gu7Kpp22HFX1FSb22/xv5eo6Da/iUbgdUbI2ty8bg90I+azxRCKPggz4tGCD7Y0vSk7YsRyFir t/O0kj8hvnYjL3BlO5p6cVEw4SMaM+8wXszLw6COXRtPhFcKdGsyzz/ZWt37voLADIKkAvVTEk cvQ= Date: Fri, 3 Nov 2023 16:21:18 +0000 From: Joseph Myers To: Subject: Add SEGV_CPERR from Linux 6.6 to bits/siginfo-consts.h Message-ID: <799ec0b2-6bea-b319-450-d08d734ecc80@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3109.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, 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 Linux 6.6 adds the constant SEGV_CPERR. Add it to glibc's bits/siginfo-consts.h. Tested for x86_64. Reviewed-by: Adhemerval Zanella diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h index 49f7744739..2236def72c 100644 --- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h @@ -134,8 +134,10 @@ enum # define SEGV_ADIPERR SEGV_ADIPERR SEGV_MTEAERR, /* Asynchronous ARM MTE error. */ # define SEGV_MTEAERR SEGV_MTEAERR - SEGV_MTESERR /* Synchronous ARM MTE exception. */ + SEGV_MTESERR, /* Synchronous ARM MTE exception. */ # define SEGV_MTESERR SEGV_MTESERR + SEGV_CPERR /* Control protection fault. */ +# define SEGV_CPERR SEGV_CPERR }; /* `si_code' values for SIGBUS signal. */