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.
Actions