From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2FEE3F410A for ; Mon, 15 Jun 2026 13:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781530537; cv=none; b=m1lxH9Sa5zU0EYFd5K9bdRmgero+cVCP+TeT2aiT7ssf4ErGsL45a4AZUVbMkf52GKzjPbxcS7soXW4bNikri3KFvHm5AI9y3YDNl/sH8x0yWhAx1PDO3SOOjerSwI31L42hdIlG69JwHR02nwOAxA7O2oqZFLNIwO0ssr5M03o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781530537; c=relaxed/simple; bh=Rlqj7JCOolCe5ClmhDSqSrn3Lh2BkvYdYArZVq1fnTc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c4QBWEtJ/7BEEzzmoWoNgBc+XtfNKRcWg0bW18RZm3CS7+Hop+fip+ZaAU01H+TEHu7/oWKnxUyTj/23Y3ugHEmZE3qv/QzG7tPDV7Gfj+UTYArbRLvsvvQBefuP69NuqnMnjeaxmvfZrRtLgEGkDYTmFyO8qb6E+ZneEV2rgN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SQHDso4V; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SQHDso4V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781530530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XfoLLuqZ8bXHUWZz3Srlw+Y4dzlNhwaIQpZbMN9isIk=; b=SQHDso4VCkG16j9wr0edVmXqqMZ95vM62LIWGhEG9Wq5i1TiEgmUukWUQJ4zJhwUIPl1RJ s5QtZAbyTNsTZCg4uT4a0adBIsbRqgdxmSOpzUJ0dTapl9gAnTZPcZFV4BTv6Tvh+d7rku m+OQ0mGCVygX7MglA3fUTgNeSxdofUw= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222-fpRBnbobMy-0I5H29WJuMg-1; Mon, 15 Jun 2026 09:35:25 -0400 X-MC-Unique: fpRBnbobMy-0I5H29WJuMg-1 X-Mimecast-MFC-AGG-ID: fpRBnbobMy-0I5H29WJuMg_1781530524 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1057119560BD; Mon, 15 Jun 2026 13:35:24 +0000 (UTC) Received: from fedora (unknown [10.44.32.13]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 63EAD1800367; Mon, 15 Jun 2026 13:35:22 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 15 Jun 2026 15:35:23 +0200 (CEST) Date: Mon, 15 Jun 2026 15:35:21 +0200 From: Oleg Nesterov To: Thomas Gleixner Cc: Linus Torvalds , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [GIT pull] timers/core for v7.2-rc1 Message-ID: References: <178137555902.445890.9588113013654487803.tglx@fw13> <178137556644.445890.6379164368087565389.tglx@fw13> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <178137556644.445890.6379164368087565389.tglx@fw13> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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.