openwrt/target
Markus Stockhausen c1111ed5d6 realtek: vlan: protect the entire VLAN MSTI update
rtldsa_vlan_msti_set() holds reg_mutex only while replacing the MST
slot. The VLAN table read and write remain unprotected, allowing
concurrent updates to overwrite VLAN data or leave the VLAN FID
inconsistent with MST slot bookkeeping.

Use scoped_guard() to hold reg_mutex across the VLAN table read,
MST slot replacement and VLAN table write. This also releases the
mutex automatically if the slot replacement fails.

Assisted-by: ChatGPT (OpenAI GPT-6 Astra)
Link: https://github.com/openwrt/openwrt/pull/25258
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-09-19 17:58:33 +02:00
..
imagebuilder
linux realtek: vlan: protect the entire VLAN MSTI update 2026-09-19 17:58:33 +02:00
llvm-bpf
sdk
toolchain
Config.in
Makefile