From: Oleg Nesterov <oleg@redhat.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: [GIT pull] timers/core for v7.2-rc1
Date: Mon, 15 Jun 2026 15:35:21 +0200 [thread overview]
Message-ID: <ai__mdoKsWR5lIlY@redhat.com> (raw)
In-Reply-To: <178137556644.445890.6379164368087565389.tglx@fw13>
On 06/13, Thomas Gleixner wrote:
>
> Linus,
>
> please pull the latest timers/core branch from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-2026-06-13
>
> up to: 87bd2ad568e1: posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path
...
> --- a/kernel/time/jiffies.c
> +++ b/kernel/time/jiffies.c
> @@ -60,15 +60,14 @@ EXPORT_SYMBOL(get_jiffies_64);
>
> EXPORT_SYMBOL(jiffies);
>
> -static int __init init_jiffies_clocksource(void)
> -{
> - return __clocksource_register(&clocksource_jiffies);
> -}
> -
> -core_initcall(init_jiffies_clocksource);
> +static bool cs_jiffies_registered __initdata;
>
> 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.
So I got
=============================
[ BUG: Invalid wait context ]
7.1.0-00977-g7a78e6f6bb02 #237 Not tainted
-----------------------------
swapper/0/0 is trying to lock:
ffffffff820415e8 (clocksource_mutex){....}-{4:4}, at: __clocksource_register_scale+0x186/0x230
other info that might help us debug this:
context-{5:5}
1 lock held by swapper/0/0:
#0: ffffffff8327dfb8 (&tkd->lock){....}-{2:2}, at: timekeeping_init+0x159/0x1f0
at boot time after git pull.
Oleg.
next prev parent reply other threads:[~2026-06-15 13:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-13 21:24 [GIT pull] core/rseq for v7.2-rc1 Thomas Gleixner
2026-06-13 21:24 ` [GIT pull] irq/core " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:24 ` [GIT pull] irq/drivers " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:24 ` [GIT pull] irq/msi " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:25 ` [GIT pull] smp/core " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:25 ` [GIT pull] timers/clocksource " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:25 ` [GIT pull] timers/core " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-15 13:35 ` Oleg Nesterov [this message]
2026-06-13 21:25 ` [GIT pull] timers/nohz " Thomas Gleixner
2026-06-15 8:00 ` Ingo Molnar
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:25 ` [GIT pull] timers/ptp " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-13 21:25 ` [GIT pull] timers/vdso " Thomas Gleixner
2026-06-15 8:51 ` pr-tracker-bot
2026-06-15 8:51 ` [GIT pull] core/rseq " pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ai__mdoKsWR5lIlY@redhat.com \
--to=oleg@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.