diff options
| author | Paul E. McKenney <[email protected]> | 2022-10-20 17:58:14 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2022-10-20 22:34:49 +0000 |
| commit | 31d8aaa87fcef1be5932f3813ea369e21bd3b11d (patch) | |
| tree | 9b97129027fd619ef63f8cebd7bab04d4c75ef7b /net/lapb/lapb_in.c | |
| parent | Linux 6.1-rc1 (diff) | |
| download | kernel-31d8aaa87fcef1be5932f3813ea369e21bd3b11d.tar.gz kernel-31d8aaa87fcef1be5932f3813ea369e21bd3b11d.zip | |
rcu: Keep synchronize_rcu() from enabling irqs in early boot
Making polled RCU grace periods account for expedited grace periods
required acquiring the leaf rcu_node structure's lock during early boot,
but after rcu_init() was called. This lock is irq-disabled, but the
code incorrectly assumes that irqs are always disabled when invoking
synchronize_rcu(). The exception is early boot before the scheduler has
started, which means that upon return from synchronize_rcu(), irqs will
be incorrectly enabled.
This commit fixes this bug by using irqsave/irqrestore locking primitives.
Fixes: bf95b2bc3e42 ("rcu: Switch polled grace-period APIs to ->gp_seq_polled")
Reported-by: Steven Rostedt <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
