summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJiexun Wang <wangjiexun2025@gmail.com>2026-05-03 07:28:58 +0300
committerSven Eckelmann <sven@narfation.org>2026-05-08 15:28:40 +0300
commitf03e8583532941b07761c5429de7d50766fa3110 (patch)
treee018fd576b969c07da087105c639afb8e9d813d3 /scripts
parent3d3cf6a7314aca4df0a6dde28ce784a2a30d0166 (diff)
downloadlinux-f03e8583532941b07761c5429de7d50766fa3110.tar.xz
batman-adv: stop caching unowned originator pointers in BAT IV
BAT IV keeps the last-hop neighbor address in each neigh_node, but some paths also cache an originator pointer derived from a temporary lookup. That pointer is not owned by the neigh_node and may no longer refer to a live originator entry after purge handling runs. Stop storing the auxiliary originator pointer in the BAT IV neighbor state. When BAT IV needs the neighbor originator data, resolve it from the stored neighbor address and drop the reference again after use. Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol") 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> Signed-off-by: Jiexun Wang <wangjiexun2025@gmail.com> Signed-off-by: Ren Wei <n05ec@lzu.edu.cn> [sven: avoid bonding logic for outgoing OGM] Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions