Project

General

Profile

Actions

Bug #14025

open

ipnet sniffing leaks promisc mode

Added by Arne Jansen 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

When using tcpdump on an ipnet interface, after termination the physical interface still stays in PROMISC mode. This can lead to a severe performance degradation.

The problem is that ipnet_promisc_add calls ipnet_join_allmulti, but ipnet_promisc_remove fails to call ipnet_leave_allmulti.

Actions #1

Updated by Dan McDonald 4 months ago

Not only does ipnet_promisc_remove() not call ipnet_leave_allmulti, but so does the error-cleanup path in ipnet_promisc_add().

Actions #2

Updated by Arne Jansen 4 months ago

It also looks like the netstack is referenced after it has been released in the ipnet_promisc path.

Actions

Also available in: Atom PDF