CVE-2022-49322 Information
Description
In the Linux kernel the following vulnerability has been resolved:
tracing: Fix sleeping function called from invalid context on RT kernel
When setting bootparams= race_event=initcall:initcall_start tp_printk=1\ in the cmdline the output_printk() was called and the spin_lock_irqsave() was called in the atomic and irq disable interrupt context suitation. On the PREEMPT_RT kernel these locks are replaced with sleepable rt-spinlock so the stack calltrace will be triggered. Fix it by raw_spin_lock_irqsave when PREEMPT_RT and race_event=initcall:initcall_start tp_printk=1\ enabled.
BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:46
in_atomic(): 1 irqs_disabled(): 0 non_block: 0 pid: 1 name: swapper/0
preempt_count: 2 expected: 0
RCU nest depth: 0 expected: 0
Preemption disabled at:
[
Reference
https://git.kernel.org/stable/c/12025abdc8539ed9d5014e2d647a3fd1bd3de5cd https://git.kernel.org/stable/c/1788e6dbb61286215442b1af99e51405a6206762 https://git.kernel.org/stable/c/40f9fde06b25884baa0c4bd138b909a9b67218b4 https://git.kernel.org/stable/c/43bfc4dccc416c964b53cbdc430e814f8b6f770b https://git.kernel.org/stable/c/48c6ee7d6c614f09b2c8553a95eefef6ecf196e0 https://git.kernel.org/stable/c/9abf3db8bdb63ab545034148ef2118f4d088ca59 https://git.kernel.org/stable/c/9b534640a2c6a8d88168febc82ec6d161184f2ec https://git.kernel.org/stable/c/be1f323fb9d9b14a505ca22d742d321769454de1
Share on: