Netdev Archive on
help / color / mirror / Atom feed
From: Ido Schimmel <>
To: Mark Bloch <>
Subject: Re: [net-next PATCH v2] net/sched: cls_api, reset flags on replay
Date: Tue, 10 Aug 2021 10:41:34 +0300	[thread overview]
Message-ID: <YRItrkt3capthkUE@shredder> (raw)
In-Reply-To: <>

On Tue, Aug 10, 2021 at 03:43:05AM +0000, Mark Bloch wrote:
> tc_new_tfilter() can replay a request if it got EAGAIN. The cited commit
> didn't account for this when it converted TC action ->init() API
> to use flags instead of parameters. This can lead to passing stale flags
> down the call chain which results in trying to lock rtnl when it's
> already locked, deadlocking the entire system.
> Fix by making sure to reset flags on each replay.


> Fixes: 695176bfe5de ("net_sched: refactor TC action init API")
> Signed-off-by: Mark Bloch <>
> Reviewed-by: Vlad Buslov <>

Reviewed-by: Ido Schimmel <>
Tested-by: Ido Schimmel <>

  reply	other threads:[~2021-08-10  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10  3:43 Mark Bloch
2021-08-10  7:41 ` Ido Schimmel [this message]
2021-08-10 23:10 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRItrkt3capthkUE@shredder \ \ \ \ \ \ \ \ \
    --subject='Re: [net-next PATCH v2] net/sched: cls_api, reset flags on replay' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).