openwrt/target
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
..
imagebuilder imagebuilder: manifest function show stderr 2018-12-18 11:01:55 +01:00
linux kernel: fix refcnt leak in LED netdev trigger on interface rename 2019-03-06 06:08:15 +01:00
sdk sdk: find kernel modules when KDIR is a symlink 2018-11-29 11:36:58 +01:00
toolchain merge: etc: update remaining files 2017-12-08 19:41:18 +01:00
Config.in build: add support for enabling the rootfs/boot partition size option via target feature 2018-12-18 11:28:12 +01:00
Makefile build: make <subdir>/install opt-in, use it for target/ only 2017-02-09 13:51:35 +01:00