netifd: rework/fix device free handling
authorFelix Fietkau <nbd@nbd.name>
Mon, 27 Sep 2021 16:56:21 +0000 (18:56 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 27 Sep 2021 16:58:01 +0000 (18:58 +0200)
commit5a4ac30c7a15712d01110befec1acfe86c2cbed0
treead52b0310a781078efb9b016fbe80d89ca50001d
parent08e954e137ffcf7770200bbd6476dc36bbd326f5
netifd: rework/fix device free handling

Instead of explicitly preventing free in specific code sections using
device_lock/device_unlock, defer all device free handling via uloop timeout
This avoids an entire class of lurking use-after-free bugs triggered
by device event processing and simplifies the code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
alias.c
bonding.c
bridge.c
config.c
device.c
device.h
extdev.c
interface.c
ubus.c