Re: [GIT PULL] sched/urgent for 5.17-rc4

From: Peter Zijlstra
Date: Mon Feb 14 2022 - 03:46:23 EST


On Sun, Feb 13, 2022 at 10:02:22AM -0800, Linus Torvalds wrote:
> On Sun, Feb 13, 2022 at 4:37 AM Borislav Petkov <bp@xxxxxxx> wrote:
> >
> > Tadeusz Struk (1):
> > sched/fair: Fix fault in reweight_entity
>
> I've pulled this, but this really smells bad to me.
>
> If set_load_weight() can see a process that hasn't even had the
> runqueue pointer set yet, then what keeps *others* from the same
> thing?

Urgh, I think you're right, the moment we enter the pidhash and become
visible we should be complete. That means the previous commit
(4ef0c5c6b5ba) is buggered... Let me try and make sense of all that
cgroup stuff again :-(