diff options
author | Aaron Conole | 2022-12-20 16:27:17 -0500 |
---|---|---|
committer | Jakub Kicinski | 2022-12-21 17:48:12 -0800 |
commit | 95637d91fefdb94d6e7389222ba9ddab0e9f5abe (patch) | |
tree | 693a4ce55280a7a1108b518fc68d7d1b4fcad492 /net/packet | |
parent | f2575c8f404911da83f25b688e12afcf4273e640 (diff) |
net: openvswitch: release vport resources on failure
A recent commit introducing upcall packet accounting failed to properly
release the vport object when the per-cpu stats struct couldn't be
allocated. This can cause dangling pointers to dp objects long after
they've been released.
Cc: wangchuanlei <wangchuanlei@inspur.com>
Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets")
Reported-by: syzbot+8f4e2dcfcb3209ac35f9@syzkaller.appspotmail.com
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://lore.kernel.org/r/20221220212717.526780-1-aconole@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions