From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70139 invoked by alias); 20 Apr 2018 17:50:45 -0000 Mailing-List: contact libc-stable-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Archive: Sender: libc-stable-owner@sourceware.org Received: (qmail 70110 invoked by uid 89); 20 Apr 2018 17:50:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.4 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-25.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: vmicros1.altlinux.org Received: from vmicros1.altlinux.org (HELO vmicros1.altlinux.org) (194.107.17.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Apr 2018 17:50:43 +0000 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id DE17772CCE5; Fri, 20 Apr 2018 20:50:40 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id CF9557CC6FF; Fri, 20 Apr 2018 20:50:40 +0300 (MSK) Date: Mon, 01 Jan 2018 00:00:00 -0000 From: "Dmitry V. Levin" To: Aurelien Jarno Cc: libc-alpha@sourceware.org, libc-stable@sourceware.org, DJ Delorie , Andrew Waterman , Darius Rad , Palmer Dabbelt Subject: Re: [PATCH 2.27] RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069] Message-ID: <20180420175040.GB5959@altlinux.org> Mail-Followup-To: Aurelien Jarno , libc-alpha@sourceware.org, libc-stable@sourceware.org, DJ Delorie , Andrew Waterman , Darius Rad , Palmer Dabbelt References: <20180416204132.9251-1-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" Content-Disposition: inline In-Reply-To: <20180416204132.9251-1-aurelien@aurel32.net> X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00015.txt.bz2 --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1740 On Mon, Apr 16, 2018 at 10:41:32PM +0200, Aurelien Jarno wrote: > The RISC-V kernel doesn't define SA_RESTORER, hence the kernel version > of struct sigaction doesn't have the sa_restorer field. The default > kernel_sigaction.h therefore can't be used. >=20 > This patch adds a RISC-V specific version of kernel_sigaction.h to fix > the issue. This fixes for example the libnih testsuite. >=20 > Note that this patch is not needed in master as the bug has been fixed > by commit b4a5d26d8835 ("linux: Consolidate sigaction implementation"). > --- > ChangeLog | 5 +++++ > sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h | 7 +++++++ > 2 files changed, 12 insertions(+) > create mode 100644 sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h >=20 > diff --git a/ChangeLog b/ChangeLog > index 536fcf1c4f..f365475a47 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,8 @@ > +2018-04-16 Aurelien Jarno > + > + [BZ #23069] > + * sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h: New file. > + > 2018-03-29 Florian Weimer >=20=20 > * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also > diff --git a/sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h b/sysdeps/u= nix/sysv/linux/riscv/kernel_sigaction.h > new file mode 100644 > index 0000000000..2a62bcc5bc > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h > @@ -0,0 +1,7 @@ > +/* This is the sigaction structure from the RISC-V Linux 4.15 kernel. */ > + > +struct kernel_sigaction { > + __sighandler_t k_sa_handler; > + unsigned long sa_flags; > + sigset_t sa_mask; > +}; I think this is OK given that b4a5d26d8835 cannot be easily backported to 2= .27. --=20 ldv --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 801 -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJa2ihwAAoJEAVFT+BVnCUIymgP/30mFcDvebRiNQ1kM5CTOUAX uvOzvDVbFdNRkjfnGPRdgtCxJ0F1+Za6NJ0lbfgvqqFpTAGsBcKEsHEjeImO0iR2 uKaF4uhwKqtd/XKGLAtHlUcV+Vu1PNepO5fkE4jls9wlfU+0k/8EFvdJ/P4ikkxw EJjaJPEGZ6rLRiDCCDgj4AyShKJngI93xdxjpHCrDRaDz/XPElytBIV+E4ERiV9Z vwMT6L6MhOFB2ibKasviYZg6v7/iE0wNuClMyzax94Zhcghz1bgsAlg0TXTuulfn PWhfXPQzE5uFYip2mujgMNgV5PRf0UA9/hyPZwBBfJw/kAxiUBRic2gM0Fp4iD0Y 1zpDsjUi5MdEgvhwksmy9GCnSQUwH41wK1AxVjpol0cfTSxRhN8vuUQdWYkBmeLK 4wPj9z1YjgOjMZjMLiKUzDFZ7Ictj3yLMjZkoG9KwHQmRZncJxXz1Oo0DiyKIMpk 6PDbFtrnas1uSeBF5Ouf58ZrW+RgPQnrYqMTGq1pNX6kS05B7T3hvDAMilPFHNsk 8nFFQ9HXzrKWddoYEMB59ZTHlok3mNOXL/M2+/14JQ+tVgEcP3tYe21Gznl8uCEi PAZpVLeT+t0pZDedX6CQObbALaZ+YwDYm1iF6zFmNgHr5FvqszPmRrPot6y3veCi Q3RLDRvei3tSGhxQhoQ+ =/5Lp -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--