From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130851 invoked by alias); 16 Apr 2018 20:41:53 -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 130824 invoked by uid 89); 16 Apr 2018 20:41:53 -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.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=H*r:2001 X-Spam-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY 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: hall.aurel32.net Received: from hall.aurel32.net (HELO hall.aurel32.net) (163.172.24.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Apr 2018 20:41:51 +0000 Received: from [2001:bc8:30d7:120:9bb5:8936:7e6a:9e36] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Awe-0001Hp-BN; Mon, 16 Apr 2018 22:41:48 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.90_1) (envelope-from ) id 1f8Awc-0002Q3-1l; Mon, 16 Apr 2018 22:41:46 +0200 From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: libc-stable@sourceware.org, DJ Delorie , Andrew Waterman , Darius Rad , Palmer Dabbelt , Aurelien Jarno Subject: [PATCH 2.27] RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069] Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-Id: <20180416204132.9251-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.16.3 X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00010.txt.bz2 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. This patch adds a RISC-V specific version of kernel_sigaction.h to fix the issue. This fixes for example the libnih testsuite. 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 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 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also diff --git a/sysdeps/unix/sysv/linux/riscv/kernel_sigaction.h b/sysdeps/unix/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; +}; -- 2.16.3