Re: [RT BUG] Mismatched get_uid/free_uid usage in signals in some rts (2nd try)

From: Sebastian Andrzej Siewior
Date: Thu Aug 18 2022 - 12:08:28 EST


On 2022-06-26 08:30:19 [-0400], Joe Korty wrote:
> Hi Mark,
> Absent an actual test of your port of a99e09659e6c to 4.9-rt, I just
> eye-verified that the change it makes to sigqueue_free_current looks
> correct. In detail,
>
> matches the same change the Linus patch makes to __sigqueue_free (ie,
> to the routine that sigqueue_free_current is a copy of).
>
> That the new variable 'up', in sigqueue_free_current, is being used
> in the patch (some variants of this fix do not have 'up'), and that
> variable is present in 4.9's version of sigqueue_free_current.
>
> That atomic_dec_and_test, rather than the refcounting version of that
> some function, is being used (some versions of this patch are refcounted
> instead).

What is the status here? Is this still needed?

> Regards,
> Joe

Sebastian