summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorGinger Li <ginger.jzllee@gmail.com>2026-09-22 16:09:09 +0800
committerJakub Kicinski <kuba@kernel.org>2026-09-24 10:21:45 -0700
commit8e1937fed6738460554ec123c64839e2445e7d53 (patch)
tree5d10c6bd523256962d460cb9fc378f48216ffa8b /tools/perf/scripts/python/bin/stackcollapse-report
parentb94773dc4df7026a6f29b2c65e96e88d29cdb576 (diff)
downloadlinux-next-8e1937fed6738460554ec123c64839e2445e7d53.tar.gz
linux-next-8e1937fed6738460554ec123c64839e2445e7d53.zip
tipc: Fix a data race on mon->peer_cnt in mon_timeout()
mon_timeout() evaluates dom_size(mon->peer_cnt) before it takes mon->lock, while mon->peer_cnt is updated under that lock by tipc_mon_add_peer() and tipc_mon_remove_peer(). The value can therefore be stale, and the decision whether the local domain has to be recomputed can be based on an outdated member count. Read mon->peer_cnt inside the write_lock_bh(&mon->lock) protected region. Fixes: 35c55c9877f8 ("tipc: add neighbor monitoring framework") Signed-off-by: Ginger Li <ginger.jzllee@gmail.com> Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech> Link: https://patch.msgid.link/20260922080909.21123-1-ginger.jzllee@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions