Message ID | ZNZr0mPsIuqKzb5u@p100 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1285382vqi; Fri, 11 Aug 2023 11:40:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRC1BQ6h0dU9FPgLi92tIvpmhJrf/pFsIrawzVUjbK2nler/ZvMfnI5l1eO+TMk8YdIwDz X-Received: by 2002:a2e:b70a:0:b0:2b6:e105:6174 with SMTP id j10-20020a2eb70a000000b002b6e1056174mr2404376ljo.47.1691779206480; Fri, 11 Aug 2023 11:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691779206; cv=none; d=google.com; s=arc-20160816; b=Dii3dQeQ0Ad6UE4B8Zp068P66hKR2tQ0n5GWURuP4r5D6MEo7/a7XYrGid7o1o+qhC HKGiUM5teq0jIIMY8IxhwxpCkRc6VP1BwwRBZcQ7aw0hXsPh56/BpXSOlD8S996kxjYn JP6uW4ZPbSohdGUnc/NZtMCOReGGbrkQ7bILXaWs8jDHOyky73dkxcUBDS7c8WOU4uAO DLkHmFjPkNuD0s+t/hFcuX6Y4MVzKYd7hkavZflIhddJO9xKwwI/h/HnZq5lFJIv7uA1 XAEWk7SjzKNaFT51g087OVn8gl3nK6WBr7uWYlVj+ay/dfGYmRc7d+i4a630Ce6usYwJ iokQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=6+tZuFF+iEhQ1BhyJy2UYXeEaU4fFvoRSHLu6L1OX2w=; fh=38kV13BC4hc1XTL432FxCvZ6VLSPK0z/9ETfI+JEGLM=; b=kNDKYC7yf+1+V4r9FfZksLLJFsnn2GS+BqwY/xdltmSU9B3xCTX1rpbo1yn1QK7Xmu 0lgEOYc4fIZ0MAkJG6XLbbEq27fzlL6hOEugyUT/vrc0Q2L83/tJ0Nj62+N8Dfg3A+an ugUuek8H6AfiYzt3TQl7gHYSRMiecHQFthguauNm808f+hXnNCzMx4tTtd8XmBIugonx Qn3Mh9MV/XveIqRWpiMSJZs9qRRHujENi7B/3kbgBAkS19hUhZZad0mVNNUa816g5B15 AxHYKjgqlihTGMl2SAqDJ/4r4921H0EHFBX7pujylg7RtVcVZDf/RJxB+OJyJ6dMFBsb /7YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=DkOqj9wI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gu21-20020a170906f29500b0099392706398si3851450ejb.231.2023.08.11.11.39.41; Fri, 11 Aug 2023 11:40:06 -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=@gmx.de header.s=s31663417 header.b=DkOqj9wI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236597AbjHKRLx (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Fri, 11 Aug 2023 13:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235464AbjHKRLv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Aug 2023 13:11:51 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D49FE19F; Fri, 11 Aug 2023 10:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1691773907; x=1692378707; i=deller@gmx.de; bh=DTvpu55SnrHRDHc9jkNUw++IZViS9L+vW27eRjzRv3Y=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=DkOqj9wIEc4UoMBNLrJaRCLSnEP9hUdAx0p0e6/vxxsftXEib1fTHyc3nK+3M4zQqXtJsC8 0jXOiMJLWVn10CC3qP7LGd4gBfipA9nVQOUJHBAVcjMdIuKCwxb7kYMVaLB/1LARbPMd7p4mo 2mksPuaJ868WHRj0MV1+9xUYRu+QhJVpU5b8XVeOr2v6+iR00z8o8fk0+KIvDPl8mPcvtkvw4 GqcBZm1gondfCaVn3Clll1aabirp5Uqi94L1eUmlPbSo8JsQFfZ4nNbUC3pCeq/WpSiL9PXMS wiO5EJxC6cVMCKTwe+pdONyhL45WA8PL5vMOw3lkLDQcvuOWqY8w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100 ([94.134.154.87]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mg6Zq-1prbsz2frq-00hah5; Fri, 11 Aug 2023 19:11:47 +0200 Date: Fri, 11 Aug 2023 19:11:46 +0200 From: Helge Deller <deller@gmx.de> To: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, Petr Mladek <pmladek@suse.com> Cc: linux-parisc@vger.kernel.org Subject: [PATCH] watchdog: Fix lockdep warning Message-ID: <ZNZr0mPsIuqKzb5u@p100> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Provags-ID: V03:K1:6lJNnMqR+HtTA3+h9xFX3VvmWhCWQ5tSmahp9ChlB8pyFPi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nUaJzLmOBGcxJTCbMnE7k5ZcwGxn3TpmZ Pflu1q+5T1lso5OQ7v09A/Ygd67ssBeIi645xax0LsJh5ZM86iIjlw45sMgdzkRPr4Nh9UbrC +J/BxG8ZAaHEGFtvhnHv6ya65jo= Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773959073143774156 X-GMAIL-MSGID: 1773959073143774156 |
Series |
watchdog: Fix lockdep warning
|
|
Commit Message
Helge Deller
Aug. 11, 2023, 5:11 p.m. UTC
Fully initialize detector_work work struct to avoid this kernel warning
when lockdep is enabled:
=====================================
WARNING: bad unlock balance detected!
6.5.0-rc5+ #687 Not tainted
-------------------------------------
swapper/0/1 is trying to release lock (detector_work) at:
[<000000004037e554>] __flush_work+0x60/0x658
but there are no more locks to release!
other info that might help us debug this:
no locks held by swapper/0/1.
stack backtrace:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.5.0-rc5+ #687
Hardware name: 9000/785/C3700
Backtrace:
[<0000000041455d5c>] print_unlock_imbalance_bug.part.0+0x20c/0x230
[<000000004040d5e8>] lock_release+0x2e8/0x3f8
[<000000004037e5cc>] __flush_work+0xd8/0x658
[<000000004037eb7c>] flush_work+0x30/0x60
[<000000004011f140>] lockup_detector_check+0x54/0x128
[<0000000040306430>] do_one_initcall+0x9c/0x408
[<0000000040102d44>] kernel_init_freeable+0x688/0x7f0
[<000000004146df68>] kernel_init+0x64/0x3a8
[<0000000040302020>] ret_from_kernel_thread+0x20/0x28
Signed-off-by: Helge Deller <deller@gmx.de>
---
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index be38276a365f..eab0dfcfa3f9 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -1022,5 +1022,6 @@ void __init lockup_detector_init(void) else allow_lockup_detector_init_retry = true; + INIT_WORK(&detector_work, lockup_detector_delay_init); lockup_detector_setup(); }