Modify

Opened 2 years ago

Last modified 2 years ago

#21920 new defect

Regression: iw (with netlink fail) may kill extra wlan interface

Reported by: rmilecki Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description (last modified by rmilecki)

For testing some corner cases I'm running following script:

#!/bin/sh
while [ 1 ]
do
	iw phy phy0 interface add mon0 type monitor
	ifconfig mon0 up
	iw dev mon0 del
done

on my Linksys WRT160NL (ar71xx).

When iw fails (it usually takes 5 to 10 minutes) I'm getting following output (including logread):

Failed to connect to generic netlink.
Thu Feb 25 13:22:26 2016 kern.info kernel: [ 1933.114338] br-lan: port 3(wlan0-1) entered disabled state
Thu Feb 25 13:22:26 2016 kern.info kernel: [ 1933.335568] device wlan0-1 left promiscuous mode
Thu Feb 25 13:22:26 2016 kern.info kernel: [ 1933.340385] br-lan: port 3(wlan0-1) entered disabled state
Thu Feb 25 13:22:26 2016 daemon.notice netifd: Network device 'wlan0-1' link is down
command failed: Too many open files in system (-23)

and wlan0-1 disappears.

It's a regression introduced by r47104. I bisected kernel (bad v4.1.6 & good 4.1.10) and it's a regression caused by commit:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=4e27762417669cb459971635be550eb7b5598286
which is a backport of:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1f770c0a09da855a2b51af6d19de97fb955eca85

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by rmilecki

  • Description modified (diff)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.