[LTP] [PATCH] cve/ghostlock.c: Print return value and attempt in TBROK message
Petr Vorel
pvorel@suse.cz
Tue Nov 10 16:36:18 CET 2026
Hi Avinesh,
> The check after FUTEX_CMP_REQUEUE_PI breaks if the call did not fail
> with EDEADLK, but the message only said "did not return -EDEADLK" and
> TTERRNO appended errno, which is 0 when the call succeeds. The resulting
> "SUCCESS (0)" reads like a return value of 0 and hides what the call
> actually returned.
> ghostlock.c:243: TBROK: FUTEX_CMP_REQUEUE_PI did not return -EDEADLK: SUCCESS (0)
> Print TST_RET and the attempt number, so a TBROK here shows right away
> whether the call succeeded (and how many waiters it moved) or failed
> with another errno, and on which attempt it happened.
Make sense, merged.
Thank you!
Kind regards,
Petr
More information about the ltp
mailing list