summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZihan Xi <zihanx@nebusec.ai>2026-09-09 12:37:18 +0000
committerJohannes Berg <johannes.berg@intel.com>2026-09-14 14:48:01 +0200
commite5c8d7acd31b27057ea42cd405d0b3ece097bc89 (patch)
tree0947328deb5935f4bd48cd24b22338426a64541f /tools/perf/scripts/python
parenta842cfc1d6d85b34ad73959460def4d4641e82e8 (diff)
downloadlinux-e5c8d7acd31b27057ea42cd405d0b3ece097bc89.tar.gz
linux-e5c8d7acd31b27057ea42cd405d0b3ece097bc89.zip
wifi: virt_wifi: don't transfer operstate before register
virt_wifi_newlink() calls netif_stacked_transfer_operstate() before register_netdevice(). If the lower device is dormant, that queues the new netdev on lweventlist while it is still uninitialized. If registration fails after that, for example because of an invalid name such as "bad/name", free_netdev() immediately frees the object. A later linkwatch_fire_event() then use-after-frees the list entry. Move the transfer to after netdev_upper_dev_link(), as macvlan and ipvlan already do. Fixes: c7cdba31ed8b ("mac80211-next: rtnetlink wifi simulation device") Reported-by: Vega <vega@nebusec.ai> Assisted-by: LLM Co-developed-by: Luxing Yin <root@tr0jan.top> Signed-off-by: Luxing Yin <root@tr0jan.top> Signed-off-by: Zihan Xi <zihanx@nebusec.ai> Link: https://patch.msgid.link/f5a832fb0ab228ce6e2b5a91fba4ca8b79198a2f.1788948455.git.zihanx@nebusec.ai Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions