[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iLvbOP1Hnt7CtucWE5n6n72HhYBeTjNuTCqiY=AH_8DOA@mail.gmail.com>
Date: Tue, 17 Jun 2025 10:35:38 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Hyunwoo Kim <imv4bel@...il.com>
Cc: vinicius.gomes@...el.com, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
horms@...nel.org, vladimir.oltean@....com, netdev@...r.kernel.org,
v4bel@...ori.io
Subject: Re: [PATCH v3] net/sched: fix use-after-free in taprio_dev_notifier
On Fri, Jun 13, 2025 at 5:55 PM Hyunwoo Kim <imv4bel@...il.com> wrote:
>
> Since taprio’s taprio_dev_notifier() isn’t protected by an
> RCU read-side critical section, a race with advance_sched()
> can lead to a use-after-free.
>
> Adding rcu_read_lock() inside taprio_dev_notifier() prevents this.
>
> Fixes: fed87cc6718a ("net/sched: taprio: automatically calculate queueMaxSDU based on TC gate durations")
> Cc: stable@...r.kernel.org
> Signed-off-by: Hyunwoo Kim <imv4bel@...il.com>
> ---
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists