y2038: nptl: Provide __futex_clock_wait_bitset64 to support 64 bit bitset
authorLukasz Majewski <lukma@denx.de>
Mon, 19 Oct 2020 13:05:47 +0000 (15:05 +0200)
committerLukasz Majewski <lukma@denx.de>
Wed, 21 Oct 2020 09:43:35 +0000 (11:43 +0200)
commit9cb2c923844ba1b77a7b9ade777e838242a4e201
treebc3870647b9b6f5e285d7cddaef9e63315d2102d
parent56b223c1c8334e4255bf11aed1386a007822702a
y2038: nptl: Provide __futex_clock_wait_bitset64 to support 64 bit bitset

The commit:
"y2038: nptl: Convert pthread_mutex_{clock|timed}lock to support 64 bit"
SHA1: 29e9874a048f47e2d46c40253036c8d2de921548

introduced support for 64 bit timeouts. Unfortunately, it was missing the
code for bitset - i.e. lll_futex_clock_wait_bitset C preprocessor macro
was used. As a result the 64 bit struct __timespec64 was coerced to 32
bit struct timespec and regression visible as timeout was observed
(nptl/tst-robust10 on s390).

Reported-by: Stefan Liebler <stli@linux.ibm.com>
Tested-by: Stefan Liebler <stli@linux.ibm.com>
nptl/pthread_mutex_timedlock.c
sysdeps/nptl/futex-internal.c
sysdeps/nptl/futex-internal.h