diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2019-12-15 11:38:57 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-02-20 15:58:21 -0800 |
commit | 82dd8419e225958f01708cda8a3fc6c3c5356228 (patch) | |
tree | d11b6e4bf1cbcbeaf29bc916762b2fdbaf24c3f1 /net/ipv6/icmp.c | |
parent | 9f01eb5d4936f12d57da84cdfbc2a3623e23a7eb (diff) | |
download | linux-82dd8419e225958f01708cda8a3fc6c3c5356228.tar.gz linux-82dd8419e225958f01708cda8a3fc6c3c5356228.tar.bz2 linux-82dd8419e225958f01708cda8a3fc6c3c5356228.zip |
rcu: Warn on for_each_leaf_node_cpu_mask() from non-leaf
The for_each_leaf_node_cpu_mask() and for_each_leaf_node_possible_cpu()
macros must be invoked only on leaf rcu_node structures. Failing to
abide by this restriction can result in infinite loops on systems with
more than 64 CPUs (or for more than 32 CPUs on 32-bit systems). This
commit therefore adds WARN_ON_ONCE() calls to make misuse of these two
macros easier to debug.
Reported-by: Qian Cai <cai@lca.pw>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'net/ipv6/icmp.c')
0 files changed, 0 insertions, 0 deletions