Revert "vlan: Fix VLAN 0 memory leak"
authorVlad Buslov <vladbu@nvidia.com>
Fri, 11 Aug 2023 15:45:23 +0000 (17:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2023 07:14:00 +0000 (08:14 +0100)
commitace0ab3a4b54205a01d3f4a0fd9bdb4616cfb60b
tree00b7fe3f5fee49a5fa695f8d8df8d412332526f5
parentcc941e548bffc01b5816b4edc5cb432a137a58b3
Revert "vlan: Fix VLAN 0 memory leak"

This reverts commit 718cb09aaa6fa78cc8124e9517efbc6c92665384.

The commit triggers multiple syzbot issues, probably due to possibility of
manually creating VLAN 0 on netdevice which will cause the code to delete
it since it can't distinguish such VLAN from implicit VLAN 0 automatically
created for devices with NETIF_F_HW_VLAN_CTAG_FILTER feature.

Reported-by: syzbot+662f783a5cdf3add2719@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/00000000000090196d0602a6167d@google.com/
Reported-by: syzbot+4b4f06495414e92701d5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/00000000000096ae870602a61602@google.com/
Reported-by: syzbot+d810d3cd45ed1848c3f7@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/0000000000009f0f9c0602a616ce@google.com/
Fixes: 718cb09aaa6f ("vlan: Fix VLAN 0 memory leak")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c