git-sem_wait_race
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 10 Apr 2023 08:35:16 +0000 (09:35 +0100)
committerAurelien Jarno <aurel32@debian.org>
Mon, 10 Apr 2023 08:35:16 +0000 (09:35 +0100)
commit805145f7b14206e0e61deadb5853e38661963029
tree42bb46954e4f26ec93d0c73ebcd46a851034fd0d
parent5f767c8e1dd81af89773adac88b5744b2f2572bc
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