Thread (3 messages) 3 messages, 3 authors, 2022-08-11

Re: [PATCH] net_sched: cls_route: remove from list when handle is 0

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-08-11 06:10:20
Also in: stable

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski [off-list ref]:

On Tue,  9 Aug 2022 14:05:18 -0300 you wrote:
When a route filter is replaced and the old filter has a 0 handle, the old
one won't be removed from the hashtable, while it will still be freed.

The test was there since before commit 1109c00547fc ("net: sched: RCU
cls_route"), when a new filter was not allocated when there was an old one.
The old filter was reused and the reinserting would only be necessary if an
old filter was replaced. That was still wrong for the same case where the
old handle was 0.

[...]
Here is the summary with links:
  - net_sched: cls_route: remove from list when handle is 0
    https://git.kernel.org/netdev/net/c/9ad36309e271

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help