#21920: Regression: iw (with netlink fail) may kill extra wlan interface
-----------------------+------------------------
Reporter: rmilecki | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+------------------------
Description changed by rmilecki:
Old description:
> 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 I'm getting following output (including logread):
> {{{
> }}}
> 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:
> which is a backport of:
New description:
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
--
--
Ticket URL: <https://dev.openwrt.org/ticket/21920#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets