From: Ido Schimmel <idosch@idosch•org>
To: Vlad Buslov <vladbu@nvidia•com>
Cc: davem@davemloft•net, kuba@kernel•org, edumazet@google•com,
pabeni@redhat•com, netdev@vger•kernel.org,
amir.hanania@intel•com, jeffrey.t.kirsher@intel•com,
john.fastabend@gmail•com, horms@kernel•org
Subject: Re: [PATCH net v2] vlan: Fix VLAN 0 memory leak
Date: Tue, 8 Aug 2023 15:01:39 +0300 [thread overview]
Message-ID: <ZNIuo2ckq39GUvAW@shredder> (raw)
In-Reply-To: <20230808093521.1468929-1-vladbu@nvidia.com>
On Tue, Aug 08, 2023 at 11:35:21AM +0200, Vlad Buslov wrote:
> The referenced commit intended to fix memleak of VLAN 0 that is implicitly
> created on devices with NETIF_F_HW_VLAN_CTAG_FILTER feature. However, it
> doesn't take into account that the feature can be re-set during the
> netdevice lifetime which will cause memory leak if feature is disabled
> during the device deletion as illustrated by [0]. Fix the leak by
> unconditionally deleting VLAN 0 on NETDEV_DOWN event.
[...]
> Fixes: efc73f4bbc23 ("net: Fix memory leak - vlan_info struct")
> Signed-off-by: Vlad Buslov <vladbu@nvidia•com>
Reviewed-by: Ido Schimmel <idosch@nvidia•com>
next prev parent reply other threads:[~2023-08-08 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 9:35 [PATCH net v2] vlan: Fix VLAN 0 memory leak Vlad Buslov
2023-08-08 12:01 ` Ido Schimmel [this message]
2023-08-09 21:00 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZNIuo2ckq39GUvAW@shredder \
--to=idosch@idosch$(echo .)org \
--cc=amir.hanania@intel$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=horms@kernel$(echo .)org \
--cc=jeffrey.t.kirsher@intel$(echo .)com \
--cc=john.fastabend@gmail$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=vladbu@nvidia$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox