From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111217 invoked by alias); 14 Mar 2019 22:06:12 -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 111201 invoked by uid 89); 14 Mar 2019 22:06:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HTo:U*libc-stable, HContent-Transfer-Encoding:8bit X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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; Thu, 14 Mar 2019 22:06:10 +0000 Received: from watt.rr44.fr ([82.228.202.134] 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 1h4YUJ-00018S-HD; Thu, 14 Mar 2019 23:06:07 +0100 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.92) (envelope-from ) id 1h4YPS-0002Ht-P1; Thu, 14 Mar 2019 23:01:06 +0100 From: Aurelien Jarno To: libc-stable@sourceware.org Cc: Andreas Schwab Subject: [2.28 COMMITTED] RISC-V: don't assume PI mutexes and robust futexes before 4.20 (bug 23864) Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-Id: <20190314220042.8731-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00001.txt.bz2 From: Andreas Schwab Support for futex_cmpxchg as only been added to 4.20-rc1. (cherry picked from commit 295132ff052b32960207d82a950c0efbf0766857) --- ChangeLog | 7 +++++++ NEWS | 1 + sysdeps/unix/sysv/linux/riscv/kernel-features.h | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 42fe0aeb1e5..e5011123eb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-11-07 Andreas Schwab + + [BZ #23864] + * sysdeps/unix/sysv/linux/riscv/kernel-features.h + (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]: + Undef. + 2018-09-21 Adhemerval Zanella * NEWS: Add note about new TLE support on powerpc64le. diff --git a/NEWS b/NEWS index 60b15116d63..11d9af739c3 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,7 @@ The following bugs are resolved with this release: [23717] Fix stack overflow in stdlib/tst-setcontext9 [23821] si_band in siginfo_t has wrong type long int on sparc64 [23822] ia64 static libm.a is missing exp2f, log2f and powf symbols + [23864] libc: [riscv] missing kernel-features.h undefines [23844] pthread_rwlock_trywrlock results in hang [23927] Linux if_nametoindex() does not close descriptor (CVE-2018-19591) [23972] __old_getdents64 uses wrong d_off value on overflow diff --git a/sysdeps/unix/sysv/linux/riscv/kernel-features.h b/sysdeps/unix/sysv/linux/riscv/kernel-features.h index 37f4d99a92f..d21c824624f 100644 --- a/sysdeps/unix/sysv/linux/riscv/kernel-features.h +++ b/sysdeps/unix/sysv/linux/riscv/kernel-features.h @@ -21,3 +21,8 @@ #undef __ASSUME_CLONE_DEFAULT #define __ASSUME_CLONE_BACKWARDS 1 + +/* No support for PI mutexes or robust futexes before 4.20. */ +#if __LINUX_KERNEL_VERSION < 0x041400 +# undef __ASSUME_SET_ROBUST_LIST +#endif -- 2.20.1