Re: [syzbot] [kasan?] [mm?] INFO: rcu detected stall in __run_timer_base

From: Yun Lu
Date: Mon May 06 2024 - 23:33:14 EST


Hello,

Indeed, the taprio hrtimer does cause CPU stuck in certain specific scenarios,
and this patch indirectly confirms it.

However, it seems this patch isn't the final solution?

On my testing machine, after starting Taprio hrtimer and then adjusting the
system time backward, it can be observed that the taprio hrtimer indeed gets stuck
in an infinite loop through tracing. And, the patch below can effectively resolve
this issue, but it doesn't work for syzbot's tests.

https://lore.kernel.org/all/20240506023617.1309937-1-luyun@xxxxxxxxxx/

Are there any better suggestions from others regarding the resolution of this CPU stuck issue?