summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJiexun Wang <wangjiexun2025@gmail.com>2026-04-27 09:43:34 +0300
committerSven Eckelmann <sven@narfation.org>2026-05-02 22:58:53 +0300
commit3d3cf6a7314aca4df0a6dde28ce784a2a30d0166 (patch)
tree853960c869a4a86af027cdf0a58926b0107a70af /scripts
parent3243543592425beec83d453793e9d27caa0d8e66 (diff)
downloadlinux-3d3cf6a7314aca4df0a6dde28ce784a2a30d0166.tar.xz
batman-adv: stop tp_meter sessions during mesh teardown
TP meter sessions remain linked on bat_priv->tp_list after the netlink request has already finished. When the mesh interface is removed, batadv_mesh_free() currently tears down the mesh without first draining these sessions. A running sender thread or a late incoming tp_meter packet can then keep processing against a mesh instance which is already shutting down. Synchronize tp_meter with the mesh lifetime by stopping all active sessions from batadv_mesh_free() and waiting for sender threads to exit before teardown continues. Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation") Cc: stable@kernel.org Reported-by: Yuan Tan <yuantan098@gmail.com> Reported-by: Yifan Wu <yifanwucs@gmail.com> Reported-by: Juefei Pu <tomapufckgml@gmail.com> Reported-by: Xin Liu <bird@lzu.edu.cn> Co-developed-by: Luxing Yin <tr0jan@lzu.edu.cn> Signed-off-by: Luxing Yin <tr0jan@lzu.edu.cn> Signed-off-by: Jiexun Wang <wangjiexun2025@gmail.com> Signed-off-by: Ren Wei <n05ec@lzu.edu.cn> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions