Re: [PATCH] futex: Prevent robust futex exit race more
From: Thomas Gleixner
Date: Tue Jul 28 2026 - 17:29:43 EST
On Tue, Jul 28 2026 at 21:43, Thomas Gleixner wrote:
> On Mon, Jul 27 2026 at 13:23, Keno Fischer wrote:
>
>> On Mon, Jul 27, 2026 at 9:12 AM Thomas Gleixner <tglx@xxxxxxxxxx> wrote:
>>> Reworked version below.
>>
>> Patch looks good and passes all my local tests! Thanks!
>
> Let me write a change log then ...
While doing so I thought about your initial fix some more.
I still hate it because it papers over the underlying problem, but on
the other hand it'll take quite some time until the robust unlock
changes will be adopted by libraries and backport wise this is innocuous
enough. So I'm going to apply it under protest :)
Rusty Russel said in 2002: "Futexes are really cursed." See
kernel/futex/core.c::31
Maybe I should remove that comment to put that to an end :)
Thanks,
tglx