All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2 v2] net: bridge: vlan tunnel egress path fixes
@ 2021-06-10 12:04 ` Nikolay Aleksandrov
  0 siblings, 0 replies; 8+ messages in thread
From: Nikolay Aleksandrov @ 2021-06-10 12:04 UTC (permalink / raw)
  To: netdev; +Cc: roopa, davem, bridge, Nikolay Aleksandrov

From: Nikolay Aleksandrov <nikolay@nvidia.com>

Hi,
These two fixes take care of tunnel_dst problems in the vlan tunnel egress
path. Patch 01 fixes a null ptr deref due to the lockless use of tunnel_dst
pointer without checking it first, and patch 02 fixes a use-after-free
issue due to wrong dst refcounting (dst_clone() -> dst_hold_safe()).

Both fix the same commit and should be queued for stable backports:
Fixes: 11538d039ac6 ("bridge: vlan dst_metadata hooks in ingress and egress paths")

v2: no changes, added stable list to CC

Thanks,
 Nik

Nikolay Aleksandrov (2):
  net: bridge: fix vlan tunnel dst null pointer dereference
  net: bridge: fix vlan tunnel dst refcnt when egressing

 net/bridge/br_private.h     |  4 ++--
 net/bridge/br_vlan_tunnel.c | 38 +++++++++++++++++++++++--------------
 2 files changed, 26 insertions(+), 16 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-10 21:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 12:04 [PATCH net 0/2 v2] net: bridge: vlan tunnel egress path fixes Nikolay Aleksandrov
2021-06-10 12:04 ` [Bridge] " Nikolay Aleksandrov
2021-06-10 12:04 ` [PATCH net 1/2 v2] net: bridge: fix vlan tunnel dst null pointer dereference Nikolay Aleksandrov
2021-06-10 12:04   ` [Bridge] " Nikolay Aleksandrov
2021-06-10 12:04 ` [PATCH net 2/2 v2] net: bridge: fix vlan tunnel dst refcnt when egressing Nikolay Aleksandrov
2021-06-10 12:04   ` [Bridge] " Nikolay Aleksandrov
2021-06-10 21:50 ` [PATCH net 0/2 v2] net: bridge: vlan tunnel egress path fixes patchwork-bot+netdevbpf
2021-06-10 21:50   ` [Bridge] " patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.