diff options
author | Martin Willi <martin@strongswan.org> | 2022-04-12 11:34:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-13 12:25:02 +0100 |
commit | e16b859872b87650bb55b12cca5a5fcdc49c1442 (patch) | |
tree | d1b64ce77ef60d6eb9b7538d5252884d0d953704 /net/dsa | |
parent | 625e8cb8e0e7b9eb6566c5a6e4fa95fb9dad9d4e (diff) | |
download | linux-e16b859872b87650bb55b12cca5a5fcdc49c1442.tar.bz2 |
macvlan: Fix leaking skb in source mode with nodst option
The MACVLAN receive handler clones skbs to all matching source MACVLAN
interfaces, before it passes the packet along to match on destination
based MACVLANs.
When using the MACVLAN nodst mode, passing the packet to destination based
MACVLANs is omitted and the handler returns with RX_HANDLER_CONSUMED.
However, the passed skb is not freed, leaking for any packet processed
with the nodst option.
Properly free the skb when consuming packets to fix that leak.
Fixes: 427f0c8c194b ("macvlan: Add nodst option to macvlan type source")
Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions