net: hsr: remove one synchronize_rcu() from hsr_del_port()
Subsystems (3)
PATCH 1/1 net: hsr: remove one synchronize_rcu() from hsr_del_port()
Use kfree_rcu() instead of synchronize_rcu()+kfree().
This might allow syzbot to fuzz HSR a bit faster...
Signed-off-by Eric Dumazet <[email protected]>
--- net/hsr/hsr_main.h | 1 + net/hsr/hsr_slave.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-)
net/hsr/hsr_main.h +1 -0
@@ -163,6 +163,7 @@ struct hsr_port {struct net_device *dev;struct hsr_priv *hsr;enum hsr_port_type type; +struct rcu_head rcu; };struct hsr_frame_info ;
net/hsr/hsr_slave.c +1 -3
@@ -235,7 +235,5 @@ void hsr_del_port(struct hsr_port *port)netdev_upper_dev_unlink (port->dev, master->dev); } -synchronize_rcu (); - -kfree (port); +kfree_rcu (port, rcu); }
Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog
Quoted 5 lines · Eric Dumazet
Use
kfree_rcu()instead of synchronize_rcu()+kfree().This might allow syzbot to fuzz HSR a bit faster...
Signed-off-by Eric Dumazet <[email protected]>
Reviewed-by Simon Horman <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Fri, 3 Jan 2025 10:11:48 +0000 you wrote:
Use
kfree_rcu()instead of synchronize_rcu()+kfree().This might allow syzbot to fuzz HSR a bit faster...
Signed-off-by Eric Dumazet <[email protected]>--- net/hsr/hsr_main.h | 1 + net/hsr/hsr_slave.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-)
Here is the summary with links:
- [net-next] net: hsr: remove one synchronize_rcu() from hsr_del_port()
https://git.kernel.org/netdev/net-next/c/4475d56145f3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html