Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp596065rwr; Fri, 5 May 2023 01:54:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UiNcz12gWbATu+yhuYwxlLAufVkyrPNqk4WpuCX2IRjmOSrkRD7gEMxabNTsC9OVSnKyN X-Received: by 2002:a17:903:248:b0:1aa:e631:9f7f with SMTP id j8-20020a170903024800b001aae6319f7fmr617280plh.41.1683276888585; Fri, 05 May 2023 01:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683276888; cv=none; d=google.com; s=arc-20160816; b=aSYEdMGSQvq6kPfsgIEl8HpN+wMpqC41rQCRsvk56pqMhVfqqPNTGTD9tNRwjm9nyN VLYRGQ8BKSI2o+BVbnJGNIpRKQ4CKROsp5QWLHadCn1v9Uz+admKGYhspGRLpR3rdp1A SbudMPdNh2/xxtkmtj+dG+XzmIppf4QsU+ylD+yzTqHEZrPYpkV6zPijrNMuKqD1OWqc HNq4WBMh3y87vkt9v+aYOzzyR7pkdbuWkZ86JC9Xt9rQwZH3jwiKBF8ZjcZh87OKEgtr nIJ7Kjt5ztRF7msUXw1QN7QYz9NYoMJQU3pgE2Bvs6KlpY+Nkw5Tmh4DuwwC9XMp85SO 5UoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e1TkxjYsiEXsfClsV4v52Vou4gXGXVMmKNos6iSrf1s=; b=T+/Z1t/QGAuUgcNCHBl70dzUOou1C0o+OtSQsiU78BWGR6Rg7VH6xQH8U5ut78572v T14bBndE3SSRHeiu2WBcUXNXJaZamRvRu5wFmYb8AK3GV67KnrOdnot8JzWIOBFIRp5G BwwwgT/Siv3l0INBRYCePDTyeS2Ee/7oXScj5M8DxOrjNZBO/Lpmpj5udFJwAQqQSHQ3 8Y/0H/O4dee7FudM5W5Raik5+XNmp/iQ6Bky5ur3YBvjWqRxQxqZWKdv3XQ+BagEQuJ5 wj/r2b5kNbMRKOeAKOXd1HuRK2zcMQeOgfjrK/7GQPS5pIhnD39TScmjBDdV4OypUFUd u6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Gvo6oV5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a170902aa8300b0019f2506251dsi1200138plr.190.2023.05.05.01.54.33; Fri, 05 May 2023 01:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Gvo6oV5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbjEEIgL (ORCPT + 99 others); Fri, 5 May 2023 04:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjEEIgJ (ORCPT ); Fri, 5 May 2023 04:36:09 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC5F617FF5 for ; Fri, 5 May 2023 01:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=e1TkxjYsiEXsfClsV4v52Vou4gXGXVMmKNos6iSrf1s=; b=Gvo6oV5K7nj2izacjFFTf/9fdJ r5rp7L2mTGvVOA9PsqMN/nlyhKLKXneZXmluxjCk3bZ5T7zfINkmpeq2Ow/dY9pDfjY8JCI+gVoqO DcJT1z3pYXS6UW1epgM8ipMxOELNsMaFh8pAGsj1PS+nJ2KWQXI9BPQtl+LR4NY4fCDYf0QcBfIlE noBYUSxgDRjtMjQuqhrQrgMSibcCYeVLdDQHaLhAiVCDTNlikblual7E6ytDd1RnAj5D+ZbtVwDUA vu/5/BZywWbpPmUvT8Ap0TfA4KXj48Ac488hW4QzQzHQCMDtnzOhFCijP0NoAYL0I+ClaAerygy31 HAOIPbpQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1puqus-003CNr-33; Fri, 05 May 2023 08:35:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8D0CF30022D; Fri, 5 May 2023 10:35:49 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5520C23CC0167; Fri, 5 May 2023 10:35:49 +0200 (CEST) Date: Fri, 5 May 2023 10:35:49 +0200 From: Peter Zijlstra To: Tetsuo Handa Cc: Hillf Danton , Linus Torvalds , syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [fs?] INFO: task hung in synchronize_rcu (4) Message-ID: <20230505083549.GB1770668@hirez.programming.kicks-ass.net> References: <20230504061613.3901-1-hdanton@sina.com> <7ea26a76-5c8c-a0d2-5b5e-63e370cdcb99@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ea26a76-5c8c-a0d2-5b5e-63e370cdcb99@I-love.SAKURA.ne.jp> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 04, 2023 at 04:01:23PM +0900, Tetsuo Handa wrote: > On 2023/05/04 15:16, Hillf Danton wrote: > >> 4 locks held by syz-executor.2/5077: > >> #0: ffff8880b993c2d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:539 > >> #1: ffff88802296aef0 (&mm->cid_lock#2){....}-{2:2}, at: mm_cid_get kernel/sched/sched.h:3280 [inline] > >> #1: ffff88802296aef0 (&mm->cid_lock#2){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3302 [inline] > >> #1: ffff88802296aef0 (&mm->cid_lock#2){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5117 [inline] > >> #1: ffff88802296aef0 (&mm->cid_lock#2){....}-{2:2}, at: context_switch kernel/sched/core.c:5258 [inline] > >> #1: ffff88802296aef0 (&mm->cid_lock#2){....}-{2:2}, at: __schedule+0x2802/0x5770 kernel/sched/core.c:6625 > >> #2: ffff8880b9929698 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:999 > >> #3: ffffffff91fb4ac8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x134/0x3f0 lib/debugobjects.c:690 > > > > What is hard to understand in this report is, how could acquire the > > timer base lock with the mm cid lock held [1]? > > Please be aware that lockdep_print_held_locks() is not an atomic action. > Since synchronous printk() is slow, it can sometimes happen that > task_is_running(p) becomes true after passing the > > if (p != current && task_is_running(p)) > return; > > check. I think that this trace is an example where print_lock() by chance hit > hlock_class(p->held_locks + 2) != NULL. If sched_show_task() were also available, > we can know it via mismatch between sched_show_task() and lockdep_print_held_locks(). > > Linus, I think that "[PATCH v3 (repost)] locking/lockdep: add debug_show_all_lock_holders()" > helps here, but I can't wake up locking people. What can we do? How is that not also racy ? I think I've seen that patch, and it had a some 'blurb' Changelog that leaves me wondering wtf the actual problem is and how it attempts to solve it and I went on with looking at regressions because more important than random weird patch.