Actions
Bug #4803
closedaf-packet: up/down logic leaks resources in autofp (tpacket v2)
Affected Versions:
Effort:
Difficulty:
Label:
Description
A race condition in the logic of interface down handling leads to leaking of the socket and other resources.
The sock_usage
ref count is checked to be 0 in AFPSwitchState
. If it is, the resources are freed. If it isn't, which is a common thing in autofp
, there are never freed and AFPTryReopen
will overwrite the socket and other resources.
Updated by Victor Julien about 3 years ago
- Related to Task #4799: af-packet: review iface up/down logic added
Updated by Victor Julien about 3 years ago
- Status changed from Assigned to Closed
Actions