[asterisk-bugs] [JIRA] (DAHLIN-343) Dynamic span modules fail to decrement reference counter for the underlying VLAN interface when unloading

Shaun Ruffell (JIRA) noreply at issues.asterisk.org
Wed Dec 10 08:48:29 CST 2014


     [ https://issues.asterisk.org/jira/browse/DAHLIN-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shaun Ruffell updated DAHLIN-343:
---------------------------------

    Attachment: 0001-dahdi_dynamic-Release-reference-count-on-network-dev.patch

Thanks for the report.

Odd that what you see is only seen with VLAN interfaces, but it definitely looks like there was an increment of the netdev reference count when the dynamic_spans were created without a subsequent decrement on destruction.

I've attached the untested [^0001-dahdi_dynamic-Release-reference-count-on-network-dev.patch] which I believe should fix this problem for you if you wanted to try it out. Otherwise it might be awhile before a test can be setup for this specifically.

> Dynamic span modules fail to decrement reference counter for the underlying VLAN interface when unloading
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: DAHLIN-343
>                 URL: https://issues.asterisk.org/jira/browse/DAHLIN-343
>             Project: DAHDI-Linux
>          Issue Type: Bug
>      Security Level: None
>          Components: dahdi_dynamic, dahdi_dynamic_eth
>    Affects Versions: 2.10.0
>         Environment: Linux 2.6
>            Reporter: Assen Totin
>            Assignee: Russ Meyerriecks
>            Severity: Minor
>         Attachments: 0001-dahdi_dynamic-Release-reference-count-on-network-dev.patch
>
>
> Scope: the issue is present only when a dynamic span is configured on top of a IEEE 802.1q interface (VLAN interface). 
> Effect: when a dynamic span is configured on top of a VLAN interface (e.g., eth0.N) and is later removed, unloading the modules (dahdi_dynamic_eth, dahdi_dynamic) does not decrement the kernel reference counter for the underlying VLAN interface. As a result, the kernel believes the underlying network interface is still in use, refusing to remove it upon network shutdown. The latter means that clean power-off of the Linux OS become impossible and power cycle is almost the only remaining option (especially for remote machines and VMs). 
> Notes: The effect is present only on VLAN interfaces and is not present on regular interfaces (e.g., eth0). Tested only on Linux; because Linux handles network devices differently than most other UNIX, it is likely limited to Linux. 
> Testbed: confirmed on CentOS 5 and 6 VM in ESXi 5.5 with either VMXNET3 or emulated Intel EEPRO 1000 network adapters.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list