Re: [GIT pull] timers/core for v7.2-rc1
From: Thomas Gleixner
Date: Tue Jun 16 2026 - 10:33:41 EST
On Mon, Jun 15 2026 at 15:35, Oleg Nesterov wrote:
>> struct clocksource * __init __weak clocksource_default_clock(void)
>> {
>> + if (!cs_jiffies_registered) {
>> + __clocksource_register(&clocksource_jiffies);
>> + cs_jiffies_registered = true;
>> + }
>> return &clocksource_jiffies;
>> }
>
> It seems that this change is problematic...
>
> timekeeping_init() does
>
> guard(raw_spinlock_irqsave)(&tk_core.lock);
>
> clock = clocksource_default_clock();
>
> and __clocksource_register() -> __clocksource_register_scale() takes
> clocksource_mutex.
Dammit. I missed to enable lockdep. The sleep while atomic muck does not
catch it because it's early boot. Someone sent a patch already. I'll get
the fix to Linus ASAP.
Thanks,
tglx