openwrt/target/linux/generic
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
..
backport-4.9 kernel: bump 4.9 to 4.9.160 2019-02-25 17:34:25 +01:00
backport-4.14 kernel: bump 4.14 to 4.14.102 2019-02-25 10:23:44 +01:00
files kernel: fix refcnt leak in LED netdev trigger on interface rename 2019-03-06 06:08:15 +01:00
hack-4.9 kernel: bump 4.9 to 4.9.160 2019-02-25 17:34:25 +01:00
hack-4.14 kernel: bump 4.14 to 4.14.103 2019-02-25 17:34:25 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.9 kernel: bump 4.9 to 4.9.155 2019-02-13 10:30:04 +01:00
pending-4.14 kernel: bump 4.14 to 4.14.98 2019-02-13 10:30:04 +01:00
config-4.9 kernel: support gcc-optimized inlining on all architectures 2018-12-18 17:22:04 +01:00
config-4.14 kernel: bump 4.14 to 4.14.96 2019-01-31 15:35:22 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00