openwrt/target/linux
Rafał Miłecki eea538204b kernel: fix refcnt leak in LED netdev trigger on interface rename
Renaming a netdev-trigger-tracked interface was resulting in an
unbalanced dev_hold().

Example:
> iw phy phy0 interface add foo type __ap
> echo netdev > trigger
> echo foo > device_name
> ip link set foo name bar
> iw dev bar del
[  237.355366] unregister_netdevice: waiting for bar to become free. Usage count = 1
[  247.435362] unregister_netdevice: waiting for bar to become free. Usage count = 1
[  257.545366] unregister_netdevice: waiting for bar to become free. Usage count = 1

Above problem was caused by trigger checking a dev->name which obviously
changes after renaming an interface. It meant missing all further events
including the NETDEV_UNREGISTER which is required for calling dev_put().

This change fixes that by:
1) Comparing device struct *address* for notification-filtering purposes
2) Dropping unneeded NETDEV_CHANGENAME code (no behavior change)

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2019-03-06 06:08:15 +01:00
..
apm821xx kernel: bump 4.14 to 4.14.91 2019-01-08 13:13:16 +01:00
ar7 kernel: bump 4.9 to 4.9.153 2019-01-31 15:35:22 +01:00
ar71xx ar71xx: Fix 5 GHz MAC address for Archer C60 v2 2019-02-20 18:41:37 +01:00
arc770 arc770: remove source-only 2018-05-24 17:24:30 +02:00
archs38 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
armvirt kernel: bump 4.14 to 4.14.77 2018-10-19 10:00:48 +02:00
at91 kernel: bump 4.9 to 4.9.143 2018-12-13 13:28:41 +01:00
ath25 kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:47 +01:00
bcm53xx bcm53xx: backport DTS changes queued for the 4.21 2018-12-27 08:30:07 +01:00
brcm47xx kernel: bump 4.14 to 4.14.93 2019-01-15 13:58:36 +01:00
brcm63xx brcm63xx: HG655b: fix the imagetag at dts 2019-02-01 16:16:15 +01:00
brcm2708 kernel: bump 4.9 to 4.9.159 2019-02-25 10:23:44 +01:00
cns3xxx kernel: bump 4.14 to 4.14.93 2019-01-15 13:58:36 +01:00
gemini kernel: bump 4.14 to 4.14.99 2019-02-15 10:53:17 +01:00
generic kernel: fix refcnt leak in LED netdev trigger on interface rename 2019-03-06 06:08:15 +01:00
imx6 imx6: fix DMA transaction errors 2018-11-06 11:49:55 +01:00
ipq40xx kernel: bump 4.14 to 4.14.102 2019-02-25 10:23:44 +01:00
ipq806x kernel: bump 4.14 to 4.14.102 2019-02-25 10:23:44 +01:00
ixp4xx kernel: bump 4.9 to 4.9.160 2019-02-25 17:34:25 +01:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
lantiq kernel: bump 4.14 to 4.14.96 2019-01-31 15:35:22 +01:00
layerscape kernel: bump 4.9 to 4.9.160 2019-02-25 17:34:25 +01:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mediatek kernel: bump 4.14 to 4.14.99 2019-02-15 10:53:17 +01:00
mpc85xx mpc85xx: add migration script for TP-Link TL-WDR4900 v1 WLAN PCI paths 2018-09-04 21:28:52 +02:00
mvebu kernel: bump 4.14 to 4.14.98 2019-02-13 10:30:04 +01:00
mxs kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
octeon octeon: fix typo in platform.sh 2019-01-13 10:12:56 +01:00
octeontx kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
omap kernel: bump 4.14 to 4.14.77 2018-10-19 10:00:48 +02:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas oxnas: add SoC restart driver for reboot 2019-03-03 18:14:45 +01:00
pistachio kernel: Add support for Winbond w25q128jv SPI NOR flash 2018-11-07 11:41:59 +01:00
ramips kernel: bump 4.14 to 4.14.99 2019-02-15 10:53:17 +01:00
rb532 treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
sunxi sunxi: remove kernel 4.9 support 2018-11-14 16:27:43 +01:00
uml kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
x86 x86: make sysupgrade.tgz reachable again 2018-12-18 17:22:08 +01:00
Makefile