[SRU][J:linux-bluefield][PATCH 0/1] net/sched: flower: Add lock protection when remove filter handle

William Tu witu at nvidia.com
Mon Feb 26 23:02:29 UTC 2024


BugLink: https://bugs.launchpad.net/bugs/2055052

* intro
As IDR can't protect itself from the concurrent modification, place
idr_remove() under the protection of tp->lock.

* how to fix
need to backport the patch from Jianbo
"net/sched: flower: Add lock protection when remove filter handle"
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=1fde0ca3a0de7e9f917668941156959dd5e9108b

* reproduce and verification
It's hard to reproduce because it is a race condition we found in k8s+ovn deployment.


Jianbo Liu (1):
  net/sched: flower: Add lock protection when remove filter handle

 net/sched/cls_flower.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
2.37.1 (Apple Git-137.1)




More information about the kernel-team mailing list