Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2123992ybh; Fri, 13 Mar 2020 13:15:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuBXlxsNrTvdWjD6qQ7hh4ADJw4Lw6SwUV32SyTb/8cIawqBCeY89nN9jYXwdyHPxYAi5OQ X-Received: by 2002:a05:6808:907:: with SMTP id w7mr8250788oih.78.1584130510282; Fri, 13 Mar 2020 13:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584130510; cv=none; d=google.com; s=arc-20160816; b=rOQL8jq6VRDpyn+L+Ok40V+Ro76c/i01yKkr/m+bIEeaE5F1LmmA05EANvYWN4G7Kd /bOxRDSkXMEp6o7vypP/J3jfNLzawaLwvW/Oqooup4OzrNjD7apk4hyjPwJeoQWqATvP Ky52fX+qtyU99EQ/oEcZT+wauIqdUpA67xB3y/prva08Uj//9I/NOmB4wYwV3Kiy522I wluLR9AdEtRrXgcZfqi0DNK8lzaQLvGXosCgujUg6mwcNkPOnn9WxVg9nKUu6Y41nIxA CMNetQj1HUjmak5tX/n+CaUqceIf41R7MI1oe/NEHvIkJ9+5TSse814xDI/L9BStydtZ g9AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nkWFycqpZYJt7ggLqsbJH3T3DjF+vfsv/OvaOnZE3tM=; b=Lw5u7N4xNBxjzb4G9PHexAs7n0RJYojRbocXf4sT/xKeRXLk2gLZEalBLU8JcN6Q2Z 9YPUKNtfuCZ45jtX58qVlMH7VgwAgIVrfGOPgiufs22h20aYkMOdz0wYfc/kHe5Vxy7W gUZitjQkjPT4pwDiomrfpJYdzY1q4sS8Q2GeSbtlAfTC19rFLmdfnYg5FhW71/mlgqb3 /ebd4zTS3yom2UoW7kJPUFmZEGNyLnlgq3k1sZ9txZJ8jRZAzwsrh/PJ4DO80ALp1DIl uXVqVyJEwreix8ufDLId3OxMYl5lJFDLxZhTJGPABf8XR6SMM8I6J3IT35mAdj1K2w1a k6HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=puBKDSJG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si3069053otq.115.2020.03.13.13.14.55; Fri, 13 Mar 2020 13:15:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=puBKDSJG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbgCMUNY (ORCPT + 99 others); Fri, 13 Mar 2020 16:13:24 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44176 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgCMUNY (ORCPT ); Fri, 13 Mar 2020 16:13:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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=nkWFycqpZYJt7ggLqsbJH3T3DjF+vfsv/OvaOnZE3tM=; b=puBKDSJGCExOyIMm7/FV0x5lNv 79sKZ7deeZ9Isr4e+GswJCa+yRFQnir6tchmzpDS55jss+6sL2UZ5wTfpgAeg+V9Ga1n28Bza01Di rM3Rj68oy+HtLHvfjsRFKLZM6WR6oHqwDY4iZkJH4p++RrI+okjY2QrQ7Ly0Km8XoHPNCA3VOy+Bp tj6vgZQ+5NABiNUa47lSC1W/PS4T2WUS8nWqS5IeCQxbvrzMeuQGI1TRz4m61WUCRB7uyNewXwghx loDcd5b4DMoRmt1Y2swDPVt1jczEVI+4tAFetgAS1Y+9GlcYdjnHj++Ose9fath+Ykt7jtvoDzgkr SY4U9CXw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCqgG-0006uB-KP; Fri, 13 Mar 2020 20:13:16 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 30EAE980FAC; Fri, 13 Mar 2020 21:13:14 +0100 (CET) Date: Fri, 13 Mar 2020 21:13:14 +0100 From: Peter Zijlstra To: Qian Cai Cc: Thomas Gleixner , John Stultz , sboyd@kernel.org, rostedt@goodmis.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] timer: silenct a lockdep splat with debugobjects Message-ID: <20200313201314.GE5086@worktop.programming.kicks-ass.net> References: <20200313154221.1566-1-cai@lca.pw> <20200313180811.GD12521@hirez.programming.kicks-ass.net> <4FFD109D-EAC1-486F-8548-AA1F5E024120@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FFD109D-EAC1-486F-8548-AA1F5E024120@lca.pw> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 03:32:52PM -0400, Qian Cai wrote: > Well, in mm/vmstat.c (init_mm_internals) case for example, it was initialized > as a static, > > static DECLARE_DEFERRABLE_WORK(shepherd, vmstat_shepherd); > > which will not call __debug_object_init(). Then fix that. That is, all of: DECLARE_DEFERRABLE_WORK KTHREAD_DELAYED_WORK_INIT DEFINE_TIMER are broken and need to go. Unless of course, you can frob debugobjects such that we can provide the required storage through is_static_object() and modify the above static declarators to provide the storage. Or, fix that random crud to do the wakeup outside of the lock. Plenty options..