git-sem_wait_race
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 6 Mar 2025 22:46:53 +0000 (23:46 +0100)
committerAurelien Jarno <aurel32@debian.org>
Thu, 6 Mar 2025 22:46:53 +0000 (23:46 +0100)
commit078b20d2d2eb6c1cf3d02ee3104d802e5af08737
treecd343987eaba111d7699446962326ce5d4eb9129
parente86218b311eafda5ba5e482cebddda3708d41c53
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