Project

General

Profile

Actions

Bug #4803

closed

af-packet: up/down logic leaks resources in autofp (tpacket v2)

Added by Victor Julien 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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.


Related issues 1 (1 open0 closed)

Related to Task #4799: af-packet: review iface up/down logicNewActions
Actions #1

Updated by Victor Julien 11 months ago

  • Related to Task #4799: af-packet: review iface up/down logic added
Actions #2

Updated by Victor Julien 11 months ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF