summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-05-31 13:26:35 +0000
committerJakub Kicinski <kuba@kernel.org>2024-06-03 18:50:09 -0700
commitcf28ff8e4c02e1ffa850755288ac954b6ff0db8c (patch)
tree89f3d6c9ecedbc77668983cdb86011501da72aa5 /net/core
parentc0b98ac1cc104f48763cdb27b1e9ac25fd81fc90 (diff)
downloadlinux-cf28ff8e4c02e1ffa850755288ac954b6ff0db8c.tar.gz
linux-cf28ff8e4c02e1ffa850755288ac954b6ff0db8c.tar.bz2
linux-cf28ff8e4c02e1ffa850755288ac954b6ff0db8c.zip
ila: block BH in ila_output()
As explained in commit 1378817486d6 ("tipc: block BH before using dst_cache"), net/core/dst_cache.c helpers need to be called with BH disabled. ila_output() is called from lwtunnel_output() possibly from process context, and under rcu_read_lock(). We might be interrupted by a softirq, re-enter ila_output() and corrupt dst_cache data structures. Fix the race by using local_bh_disable(). Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Link: https://lore.kernel.org/r/20240531132636.2637995-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions