musl: fix locking synchronization bug
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 23 May 2020 19:16:44 +0000 (21:16 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 26 May 2020 21:45:16 +0000 (23:45 +0200)
commit10c211031ccd4703230493025a5a3b9d6fcad2f2
treee04671a49711994cbfa92ba78df1654e1feacf4a
parent64d088d8f9f2fbca75f3240ced5cf40b721dc3f2
musl: fix locking synchronization bug

Import proposed upstream fix [2] for the critical locking
synchronization bug recently found in musl [1].

This affects all programs that are temporarily multithreaded, but then
return to single-threaded operation.

[1] https://www.openwall.com/lists/musl/2020/05/22/3
[2] https://www.openwall.com/lists/musl/2020/05/22/10

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
toolchain/musl/patches/500-0002-don-t-use-libc.threads_minus_1-as-relaxed-atomic-for.patch [new file with mode: 0644]