mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
net: openvswitch: fix skb leak on flow key update failure during recirculation
[ Upstream commite1cf066244] do_execute_actions() returns right away when execute_recirc() fails on the last action as it assumes this function always takes ownership of the skb when 'last' is true. But when the flow key update fails, the function doesn't free the skb and it ends up leaked. This is a very unlikely scenario as it requires the packet to become unparseable by applying a set of actions on a previously parseable skb, but should be fixed nevertheless. Reported by Sashiko. Fixes:971427f353("openvswitch: Add recirc and hash action.") Cc: stable@vger.kernel.org Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Reviewed-by: Aaron Conole <aconole@redhat.com> Link: https://patch.msgid.link/20260727181851.306076-2-i.maximets@ovn.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> [OVS drop reasons are not available in 5.15, hence plain kfree_skb()] Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f87c080608
commit
f583bac0da
1 changed files with 8 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue