diff options
author | Justin Iurman <justin.iurman@uliege.be> | 2025-04-16 18:07:16 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-04-22 15:37:01 +0200 |
commit | c03a49f3093a4903c8a93c8b5c9a297b5343b169 (patch) | |
tree | 9c354c22347f412de2c7f9f406887a911e5637bf /scripts/gdb/linux/pgtable.py | |
parent | 9e8d1013b0c38910cbc9e60de74dbe883878469d (diff) | |
download | linux-stable-c03a49f3093a4903c8a93c8b5c9a297b5343b169.tar.gz linux-stable-c03a49f3093a4903c8a93c8b5c9a297b5343b169.tar.bz2 linux-stable-c03a49f3093a4903c8a93c8b5c9a297b5343b169.zip |
net: lwtunnel: disable BHs when required
In lwtunnel_{output|xmit}(), dev_xmit_recursion() may be called in
preemptible scope for PREEMPT kernels. This patch disables BHs before
calling dev_xmit_recursion(). BHs are re-enabled only at the end, since
we must ensure the same CPU is used for both dev_xmit_recursion_inc()
and dev_xmit_recursion_dec() (and any other recursion levels in some
cases) in order to maintain valid per-cpu counters.
Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Closes: https://lore.kernel.org/netdev/CAADnVQJFWn3dBFJtY+ci6oN1pDFL=TzCmNbRgey7MdYxt_AP2g@mail.gmail.com/
Reported-by: Eduard Zingerman <eddyz87@gmail.com>
Closes: https://lore.kernel.org/netdev/m2h62qwf34.fsf@gmail.com/
Fixes: 986ffb3a57c5 ("net: lwtunnel: fix recursion loops")
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250416160716.8823-1-justin.iurman@uliege.be
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/pgtable.py')
0 files changed, 0 insertions, 0 deletions