Re: Fwd: Possible race in rt_mutex_adjust_prio_chain

From: Henry Wu
Date: Fri Jul 07 2023 - 13:28:41 EST


Hi, Peter and Mike.

Mike Galbraith <efault@xxxxxx> 于2023年7月7日周五 23:39写道:
>
> On Fri, 2023-07-07 at 14:59 +0200, Peter Zijlstra wrote:
> >
> > The below implements this duplication and seems to not insta-crash.
>
> RT bits of ww_mutex.h needed tree_entry -> tree.entry. Modulo that, RT
> seems content.
>
> -Mike

I patched my kernel with Peter's patch and tested it with my test
program. I haven't seen any race so far and I will test more tomorrow.
Fedora's default kernel config doesn't enable CONFIG_PREEMPT_RT so I
didn't come across with compile error. I will test final patch if
available.