git-sem_wait_race
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 6 Feb 2024 22:41:45 +0000 (22:41 +0000)
committerRaspbian forward porter <root@raspbian.org>
Tue, 6 Feb 2024 22:41:45 +0000 (22:41 +0000)
commite5d3c3f237db0fa17b9fb03eade9082e175440cd
tree9bed07deb380c687657143a188ba6ab8c01ebe39
parente2209ec25007c64e96aff3262c6e90118ca24b04
git-sem_wait_race

commit 289b098c9e21e2805e3835f9b5780235ab14a290
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Fri Dec 30 00:40:18 2022 +0100

    htl: Fix sem_wait race between read and gsync_wait

    If the value changes between sem_wait's read and the gsync_wait call,
    the kernel will return KERN_INVALID_ARGUMENT, which we have to interpret
    as the value having already changed.

    This fixes applications (e.g. libgo) seeing sem_wait erroneously return
    KERN_INVALID_ARGUMENT.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-sem_wait_race.diff
sysdeps/htl/sem-timedwait.c