]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: gro_cells: Use nested-BH locking for gro_cell
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 9 Oct 2025 09:43:38 +0000 (11:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Oct 2025 00:33:32 +0000 (17:33 -0700)
commit25718fdcbdd2dadd15fc8b684df59b43970b91ed
tree03b00c8ffae18147239cf41deffc22c5e75020af
parentfcb8b32a68fd40b0440cb9468cf6f6ab9de9f3c5
net: gro_cells: Use nested-BH locking for gro_cell

The gro_cell data structure is per-CPU variable and relies on disabled
BH for its locking. Without per-CPU locking in local_bh_disable() on
PREEMPT_RT this data structure requires explicit locking.

Add a local_lock_t to the data structure and use
local_lock_nested_bh() for locking. This change adds only lockdep
coverage and does not alter the functional behaviour for !PREEMPT_RT.

Reported-by: syzbot+8715dd783e9b0bef43b1@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/68c6c3b1.050a0220.2ff435.0382.GAE@google.com/
Fixes: 3253cb49cbad ("softirq: Allow to drop the softirq-BKL lock on PREEMPT_RT")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://patch.msgid.link/20251009094338.j1jyKfjR@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/gro_cells.c