Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2584545rwb; Mon, 19 Sep 2022 07:11:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4EKPt91icZA28tZ6s3VINdgJ5EdqYuYiAszNOzM4a33lKBuD69Z3HxSFsEFw0oTHgIPqFw X-Received: by 2002:a05:6402:f92:b0:44e:84e0:1d2a with SMTP id eh18-20020a0564020f9200b0044e84e01d2amr15647446edb.395.1663596682680; Mon, 19 Sep 2022 07:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663596682; cv=none; d=google.com; s=arc-20160816; b=OqALDn+LYk3SCj/xYiyxJ1WbVu9vksqFpypEPG95OxmO6et42TMADOXC3S1bMl/Gyg N0W1JI15mmUwU6yEOfv5Yb1/1gesq+rlqkf+E+ZiVpNtPJFGdunB9f0fuDwwwrEiQj8l GU5iPEY28eCpivyc/qF/OGwX7AocQYeXclYX+IHnChdHGLJWpaqKnFEfn5L+RQ0L4zR5 I/P/97VhWgDa2nA3c6fFlumS7HKf6sB+1UiMsi6mKT9DKTaKN3d3QcgVzlegn+3D9pa9 heKElKFZgvuUpPA9zbCyjVmAxl6IbIsEpQLjtWImW5HfwHgi96agkKX0eTqyh/FakRRP yIZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=gi13nHHSWIAxDgAVeEvesf/zOulDqaw6mH1nNFpAgu4=; b=p5sGBxM3/kQeU/myaaOwRdyqwRwoLD7oeCIE87aXAnfz5wyyL8m2CYaPn6hAqsZPN6 bHMu82MflzJRC3s+qruRAaxt7ClH0OCz+et9/+8+iMZfOhCokKNq01+UWpQ347b1WXZM MElElPWh5oZGrRn7a00mzjbma5QUGRvacpF2xB6NF9bowJh5NhjhxkQyiqi8Y2P0mlhS +5h4+D1aj7rBFMpQSDhsrjtcSGPZ7Td4pPenP+6bBsXuHA2kdDnSkAiDjZEph3eweC5Z uhxwfoHM3G3SihslCx6FIirxezmTyoOQ8CGjyQdbyHbQWF3MvK6cSXVS8QJHck8OutuM jkqw== ARC-Authentication-Results: i=1; mx.google.com; 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 cs15-20020a170906dc8f00b00780a882d337si11055723ejc.480.2022.09.19.07.10.57; Mon, 19 Sep 2022 07:11:22 -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; 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 S229966AbiISNon (ORCPT + 99 others); Mon, 19 Sep 2022 09:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbiISNok (ORCPT ); Mon, 19 Sep 2022 09:44:40 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DFF15F61 for ; Mon, 19 Sep 2022 06:44:37 -0700 (PDT) Received: from fsav314.sakura.ne.jp (fsav314.sakura.ne.jp [153.120.85.145]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 28JDiI3U060788; Mon, 19 Sep 2022 22:44:19 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav314.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav314.sakura.ne.jp); Mon, 19 Sep 2022 22:44:18 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav314.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 28JDiIvT060785 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Sep 2022 22:44:18 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <83fc4085-60cc-fdc6-43ba-ac701cfde80c@I-love.SAKURA.ne.jp> Date: Mon, 19 Sep 2022 22:44:16 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2] lockdep: report name and key when look_up_lock_class() got confused Content-Language: en-US To: Peter Zijlstra Cc: Boqun Feng , Ingo Molnar , Will Deacon , Waiman Long , LKML References: <55111c45-0f8f-c6f9-640c-6919939b77dd@I-love.SAKURA.ne.jp> From: Tetsuo Handa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE 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 2022/09/19 19:48, Peter Zijlstra wrote: > On Mon, Sep 19, 2022 at 09:52:13AM +0900, Tetsuo Handa wrote: >> Printing this information will be helpful. >> >> ------------[ cut here ]------------ >> Looking for class "l2tp_sock" with key l2tp_socket_class, but found a different class "slock-AF_INET6" with the same key >> WARNING: CPU: 1 PID: 14195 at kernel/locking/lockdep.c:940 look_up_lock_class+0xcc/0x140 >> Modules linked in: >> CPU: 1 PID: 14195 Comm: a.out Not tainted 6.0.0-rc6-dirty #863 >> Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 >> RIP: 0010:look_up_lock_class+0xcc/0x140 >> >> Signed-off-by: Tetsuo Handa > > Urgh, you hitting that WARN enough times to want to improve it seems to > suggest your machine is quite sick. My machine is not sick at all. I just wanted this hint for debugging https://syzkaller.appspot.com/bug?extid=94cc2a66fc228b23f360 . In a world of debugging without vmcore, printing as much hint as possible is important. Therefore, WARN_ONCE() is more appreciated than WARN_ON_ONCE(). > > Anyway, patch is ok I suppose. Thank you. Please send this patch and https://lkml.kernel.org/r/9f42e8a5-f809-3f2c-0fda-b7657bc94eb3@I-love.SAKURA.ne.jp via your tree.