Re: BUG-RT: scheduling while in atomic in the watchdog's hrtimer

From: Peter Zijlstra
Date: Thu Mar 21 2019 - 17:46:21 EST


On Thu, Mar 21, 2019 at 10:27:30PM +0100, Daniel Bristot de Oliveira wrote:
> Hi,
>
> In the 4.19/5.0-rt configured !SMP, the following chain of events can
> take place:
>
> ------------------------------ %< -------------------------------------
> smp_apic_timer_interrupt(){
> hrtimer_interrupt() {
> __hrtimer_run_queues() {
> watchdog_timer_fn() {
> stop_one_cpu_nowait() {
> #ifdef !CONFIG_SMP

ARGGHH..