From patchwork Wed Jan 6 17:34:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 41652 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 1FF3A3950C68; Wed, 6 Jan 2021 17:34:38 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 8375E3857C65 for ; Wed, 6 Jan 2021 17:34:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8375E3857C65 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: rgQfEUum0V8Idy+p9auCxyqUnhEIMvUkw1JjhLupiN0gaGt7JHP2z34r1SH+NBNC87uo4kpxzS d46FP81ck+7EEw/OZkgG4h3LFeoOjRuqngqYTcxMUzMG6WmndgeKBc0h0kSSF6kskDQAvocxM2 Y8Aui3MNhpKUqgRVY8PAS5Pkjf7ivFp2JCx3o+igHQvcUJUC0D3HguKicOicrvsmRiEhK3vas9 r4grhtW41LRLXeM3Tg8F2IEHvB0WSv7eIgKrYwJKRA/mFIqA+zcxoAc9A8vIUdhT+s7CzJWuim LgU= X-IronPort-AV: E=Sophos;i="5.79,327,1602576000"; d="scan'208";a="59096670" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 06 Jan 2021 09:34:34 -0800 IronPort-SDR: TmxY2B1SKoWfo1eYERcdi1Tn/E4Bl4eeNHruMfHXx9EeKPHiGp+PYNCq+MX/uGvLDYh65kBHwp hFwQa2cIJMFVxtmTJK2mN3z9b1kekXuR+hNLZOav5YC2dkxFdNM1UMNTHh/EF+icgSVym2BEyE yLU5gHmE1L2QiIP3Rqh0in0OSx/SL1IxnWz8PxdtnGmpwxM6eqCSCetlI4HRVKbhEU+Eclzdqi kX4Ay0I0YH5C5IrcVlsyYuSTDRbzkvL5ShKLcPkAcZGC9OJdrLK3IIPC4RmoZRNCuCVsqF6UVq zMM= Date: Wed, 6 Jan 2021 17:34:30 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add SEGV_MTEAERR and SEGV_MTESERR from Linux 5.10 Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3129.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Linux 5.10 adds constants SEGV_MTEAERR and SEGV_MTESERR to asm-generic/siginfo.h. Add these to glibc's bits/siginfo-consts.h. Tested for x86_64. diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h index 3bbe04b941..48033278b3 100644 --- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h @@ -130,8 +130,12 @@ enum # define SEGV_ACCADI SEGV_ACCADI SEGV_ADIDERR, /* Disrupting MCD error. */ # define SEGV_ADIDERR SEGV_ADIDERR - SEGV_ADIPERR /* Precise MCD exception. */ + SEGV_ADIPERR, /* Precise MCD exception. */ # define SEGV_ADIPERR SEGV_ADIPERR + SEGV_MTEAERR, /* Asynchronous ARM MTE error. */ +# define SEGV_MTEAERR SEGV_MTEAERR + SEGV_MTESERR /* Synchronous ARM MTE exception. */ +# define SEGV_MTESERR SEGV_MTESERR }; /* `si_code' values for SIGBUS signal. */