From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48923 invoked by alias); 28 Apr 2018 11:19:22 -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 48795 invoked by uid 89); 28 Apr 2018 11:19:20 -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:121 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-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; Sat, 28 Apr 2018 11:19:18 +0000 Received: from [2001:bc8:30d7:121:cc44:2c6c:4d9c:42c0] (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 1fCNsq-0004Ze-Dd; Sat, 28 Apr 2018 13:19:16 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.90_1) (envelope-from ) id 1fCNso-00054B-3c; Sat, 28 Apr 2018 13:19:14 +0200 From: Aurelien Jarno To: libc-stable@sourceware.org Cc: Aurelien Jarno Subject: [2.27 COMMITTED 1/2] RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069] Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-Id: <20180428111849.19422-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.17.0 X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00016.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..17e67190ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-04-28 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.17.0