Re: [PATCH v2] sched: rcu: fix rq->{curr,donor} address space annotations
From: sun jian
Date: Fri Feb 20 2026 - 20:53:45 EST
On Sat, Feb 21, 2026 at 3:48 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> On Sat, Feb 21, 2026 at 03:33:53AM +0800, Sun Jian wrote:
> > With CONFIG_SCHED_PROXY_EXEC enabled, struct rq::curr and rq::donor are
> > annotated as __rcu. Several call sites access these pointers as plain
> > struct task_struct * while holding rq locks, which triggers address
> > space warnings from sparse.
>
> Yeah, lets not do this. It makes the code horrible.
Understood, I'll drop it.