Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2325789rwa; Mon, 22 Aug 2022 06:06:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5A5oEjloMJXSRbTJZeEMxq2JKBz9uwbc50Ro8x/76fvJK0tmHKpHrOYCFwvTJWDb+kSeMk X-Received: by 2002:a05:6a00:b92:b0:536:7df3:169d with SMTP id g18-20020a056a000b9200b005367df3169dmr6973342pfj.56.1661173599100; Mon, 22 Aug 2022 06:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661173599; cv=none; d=google.com; s=arc-20160816; b=HpcxIzlpi0VwzW2D0YdKxXkwfaOQ4uHGIGsGLkKRnz7srqrP5hENH47LscE1qdA49l 5mwEW2oDsn44IpW2SX7aSNB1gS5lDBOraTduQXNhRPHDupYsW4S8wTgsBxEmJj/gL999 MyH+dOfFuJVNMxLKYMN/gz/nqezptyRE40Qy/3RQl4pFXE4y4k8gLQKw1jJ8I9T26F4q BwlKm8YD9uQaUEyoihUZFcRV4Tj1/oCDdb1/U9H5xkrV1Tv1iznN46X9LvGHuQN7hX3S F6AoCcJY3FwO2/Biu6wfvFfhyOYH03mhM06pg9nB1pb/Fi9mrUamQ1iLx3bIup7aqmSK t7Fw== 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=y/YEfz+k1hAzo3zlX9TaDtlgMamMYzSKXPinEdWmz1k=; b=qpqJZG9mp3WCnoPoHM1xAPViZmQxVPrXgwuaM0huOP9UzZ1OWwF4nQH8Bfm/Ci8T5a BoqSorwLke0UB9GcqpsfqJ3OrdxoUz6dcG1FNDb8VppCMvKmI6V3rsOJAl/MtqS5kw36 geyhVR142VM+mut5VgVZlyt0mciHuz4C8TAKo/2FBZRF6P2qFe8zJUddBgV8zDNyIhDT KvjvBwlztw7IosN6uVWEwL4RfudLuSpQvFmcbiSAy0ZZ7T/ZcZFPoWU/FqtPx4vUUFJE dcGNSi4XyRQiyGTAdzgDEe1rAZdqghvP+U9G+kExSZ6NPUTw9nY1fQDoOoUEOMI28TPK Yksw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=RkQ1Pv6a; 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=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s198-20020a632ccf000000b0042a8ba84c20si6400669pgs.631.2022.08.22.06.06.27; Mon, 22 Aug 2022 06:06:39 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=RkQ1Pv6a; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234970AbiHVMQN (ORCPT + 99 others); Mon, 22 Aug 2022 08:16:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234207AbiHVMQM (ORCPT ); Mon, 22 Aug 2022 08:16:12 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59AE630556 for ; Mon, 22 Aug 2022 05:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1661170570; x=1692706570; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=y/YEfz+k1hAzo3zlX9TaDtlgMamMYzSKXPinEdWmz1k=; b=RkQ1Pv6axH+Uw6HYyolWTcCOnyoVbOqtDzxSkzvsL9cgw+k67ZD8FtsE u4ySNkV9cacNucckfTSBTY3oBu7E3EzYvJpirScTRqNoE0n2PDerbJX4k Pn9C3tSC6SwKQdpmqhXmsUcTwyFD2lrvleWFSj3T4xjyu3driaqsQKq2g NoctHIHdVJsLanxCujwCV1a7ARW1pzFqpmksO8ZGL23vozdppzbevu/VW CGyoW4FilRJOyswzvBtxIdwQiwBkMm7hgo4uviN7l5oT7R5us6uYbUvDZ IkPR+CfHbqc1CyXURZBKzVO2fOtxtuv7gL+VGaY3Rh+kafNiCwtja4rJb w==; Date: Mon, 22 Aug 2022 14:16:08 +0200 From: Vincent Whitchurch To: Boqun Feng CC: Peter Zijlstra , Ingo Molnar , Will Deacon , kernel , Waiman Long , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] lockdep: Panic on warning if panic_on_warn is set Message-ID: References: <20220818114259.2203505-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: 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_PASS, SPF_PASS,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 Sat, Aug 20, 2022 at 07:18:37AM +0200, Boqun Feng wrote: > > I'm not trying to obtain a kdump in this case. I test device drivers > > under UML[0] and I want to make the tests stop and fail immediately if > > the driver triggers any kind of problem which results in splats in the > > log. I achieve this using panic_on_warn, panic_on_taint, and oops=panic > > which result in a panic and an error exit code from UML. > > > > [0] https://lore.kernel.org/lkml/20220311162445.346685-1-vincent.whitchurch@axis.com/ > > > > For lockdep, without this patch, I would be forced to parse the logs > > after each test to determine if the test trigger a lockdep splat or not. > > In that case, would a standard line with every lockdep warning help? For > example: > > [...] A LOCKDEP issue detected. > > Two reasons I don't think making lockdep warning as panic is a good > idea: > > * We don't know what other CIs expect, given today lockdep doesn't panic > with panic_on_warn, this patch is a change of behaviors to them, and > it may break their setups/scripts. Perhaps we could add a module parameter instead, so that the behaviour can be enabled with lockdep.panic=1 or similar? Then no existing setups will be affected. > * As I said, lockdep warnings are different than other warnings, and > panicking doesn't provide more information for debugging. > > So I think an extra line helping scripts to parse may be better. > > Work for you? For my use case, the extra line isn't needed. If I must parse the logs, I can already do it with the existing prints. But I'm trying to avoid having to parse the logs altogether.