public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.15 0/2] vlan: fix netdev refcount leak
@ 2023-12-01 13:30 Olivier Matz
  2023-12-01 13:30 ` [PATCH 5.15 1/2] vlan: introduce vlan_dev_free_egress_priority Olivier Matz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Olivier Matz @ 2023-12-01 13:30 UTC (permalink / raw)
  To: stable

The backport of commit 21032425c36f ("net: vlan: fix a UAF in
vlan_dev_real_dev()") in v5.15.3 introduced a netdevice refcount leak
that was fixed upstream.

The first commit is trivial and helps to limit conflicts when applying
the second commit, which fixes the issue.

The last conflict is solved by using dev_put() instead of
dev_put_track(), as the latter was introduced in 5.17 and does not
exist in 5.15.x.

Xin Long (2):
  vlan: introduce vlan_dev_free_egress_priority
  vlan: move dev_put into vlan_dev_uninit

 net/8021q/vlan.h         |  2 +-
 net/8021q/vlan_dev.c     | 15 +++++++++++----
 net/8021q/vlan_netlink.c |  7 ++++---
 3 files changed, 16 insertions(+), 8 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-12-03 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 13:30 [PATCH 5.15 0/2] vlan: fix netdev refcount leak Olivier Matz
2023-12-01 13:30 ` [PATCH 5.15 1/2] vlan: introduce vlan_dev_free_egress_priority Olivier Matz
2023-12-01 13:30 ` [PATCH 5.15 2/2] vlan: move dev_put into vlan_dev_uninit Olivier Matz
2023-12-03 13:56 ` [PATCH 5.15 0/2] vlan: fix netdev refcount leak Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox