Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2915216rdb; Wed, 15 Nov 2023 14:44:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmWsjki7SFj2e++QJX3UbLs4eBxaKBQ+37lIfoeE2vGr/qFQGDHHKXYBDjmwEWrtJUzcH3 X-Received: by 2002:a17:903:124a:b0:1ca:7f91:aa5d with SMTP id u10-20020a170903124a00b001ca7f91aa5dmr8120095plh.16.1700088265675; Wed, 15 Nov 2023 14:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700088264; cv=none; d=google.com; s=arc-20160816; b=SVyaGrUIF3S3PO23HuwCBAkUa8Taw3IUrSEoLIDHyQ1hWiTX+L6vkhtjlJuttPZf/J IRSUTeYG5X4VceHFPkLWtn1ZSylrcLwiJYIp1iojKkU1EcH1alHIiXip4fykQHq+Esff FpqF48K9+s9XWhlVwBpEcmwhJ69pnPA7+Wft+d/5u22BlVO3WA7664A0ivoC1qin8Gil deKzuzKWSh+a+pBu0xp88qrvkgp2SHow7fERX2JXBYbu31w4ONh1+YWAxUi8cL5VNRIm 2eTgWQrWpZlzOvnJKO28y16Q9gIe1G8Qgk8qFxsvzzFwZt522QbPYLmVx/3BkfBM4Wmq j9BA== 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=PnPNvgYVe/a3KXEsnvx4GNWysFw45MMaqeVr2951f4Q=; fh=hrMseA3QnLvpJDVYuDq93MiPF4pBUmERMyF6JJn2kj0=; b=Qvy0YP+O1mZN0OvINHEGDNwzgEuybhEfR+/4uwT8tWBfuZcfi5N1HyJlauKPz+TkfU pmkNreYNk8OHnGOA1g291XNE9uDQXYnKgV/lPCbL1P9VkiegFYOm12J2UxNXM14sqapu GcKk2oG5JYohhtxww8tH+d42xMaSgyyzyxQEIs4QUpAxtomhvQHxb/cyzho//Wikrsf4 kDrI6OIT9lV0QiTfjI8eSh0SZBKALWzJtKoCVKKZgNZcQhoLXRiSGS4ZzYkFGLuDBqxX uuVchX1NDUx0rrgZBG0xgxoVwpEkA5/dpe9sr6xRaqCDcP8SjOxc8WC7T6C/bkR6st7z 9FqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XlkCkQTR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u3-20020a17090341c300b001c9af5305dasi11188443ple.126.2023.11.15.14.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:44:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XlkCkQTR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7AE2D8029869; Wed, 15 Nov 2023 14:44:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229833AbjKOWoP (ORCPT + 99 others); Wed, 15 Nov 2023 17:44:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjKOWoO (ORCPT ); Wed, 15 Nov 2023 17:44:14 -0500 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE69195 for ; Wed, 15 Nov 2023 14:44:11 -0800 (PST) Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-77bb668d941so6730685a.3 for ; Wed, 15 Nov 2023 14:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700088250; x=1700693050; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PnPNvgYVe/a3KXEsnvx4GNWysFw45MMaqeVr2951f4Q=; b=XlkCkQTRQrayA+u8rRgICNJcT9kOdTf1G87HZs9BvjdaHpNVJ84Q5IPEee9tEq6V2Q QlboSang2I73/U1smTY2yLLJR3116OdJpm3yKCacKkBLjWk74mQOQs1PshL0Ys/QDE0q YHPaRTkazBrwX2PV1YeTDOGHu3PVqGdayIMZYnxTM1VFrkO4hzjBM0u/DX8vOqvRgY3E GT/6dwkGGANrKUV5DdMKGe6gw4nRpWauSEjCgBkXQ4znBwbzRggxzVktvYqKOzvRa2bG MaseNbnig/MmS5uMXYTwkkOpi64FhbzvPKh1hEYfhyd55Me0cENWZ83Yz71Y8K/pli2w D3jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700088250; x=1700693050; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PnPNvgYVe/a3KXEsnvx4GNWysFw45MMaqeVr2951f4Q=; b=XmctVlHqHzlY1HAT+Bkp7goy1zT9yNCrCGiKi7jGO3MVWFyT+TOz/j1Yehc7cznpuG aAUiJ/jlw2Q1Zkj9g8ORYKLIPBIPdad1hUPs+G325pYa2ZVSHS005eSEFIgVrNrZGJFA i/Nm/V0CTeHC3YuzOnCEqyhpomDoVyWMwbRDsZDkVUNoLIsJ6es3f/8dP6aQ7VLrd/7m F3XsCcSyow5SzyE7NnBMH806ulQcscuDGbxYwYl5Pl+FIEDdcqTbos1YtdVZD3HLywm4 iWLyzIwRUJ9Lg8Y4hK6mRYc7rDguaRnyZ1Ds8+dymyqgsuEUPjPEcu6d9qO0HwaV2Ccz 02EA== X-Gm-Message-State: AOJu0Ywic9ly9LCui36XjgZdPMdmOPy7ZhjJdujoB+xRZ4ewpBPVvb0P U8TVSeLQvO443lLWxtIMSBtamg== X-Received: by 2002:a05:620a:480e:b0:77b:c47e:727f with SMTP id eb14-20020a05620a480e00b0077bc47e727fmr7898555qkb.28.1700088250234; Wed, 15 Nov 2023 14:44:10 -0800 (PST) Received: from localhost (ip-185-104-139-34.ptr.icomera.net. [185.104.139.34]) by smtp.gmail.com with ESMTPSA id s19-20020a05620a16b300b00772662b7804sm3815744qkj.100.2023.11.15.14.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:42:58 -0800 (PST) Date: Wed, 15 Nov 2023 17:42:17 -0500 From: Dan Carpenter To: mripard@kernel.org Cc: Naresh Kamboju , Richard Fitzgerald , Maarten Lankhorst , Kees Cook , Daniel =?iso-8859-1?Q?D=EDaz?= , Thomas Zimmermann , David Airlie , Daniel Vetter , Brendan Higgins , David Gow , =?iso-8859-1?Q?Ma=EDra?= Canal , Arthur Grillo , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, kernel-janitors@vger.kernel.org, Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , kv-team Subject: Re: [RFC] drm/tests: annotate intentional stack trace in drm_test_rect_calc_hscale() Message-ID: <8489c4db-6639-43f5-b6c4-8598652cdce6@suswa.mountain> References: <02546e59-1afe-4b08-ba81-d94f3b691c9a@moroto.mountain> <7b58926a-a7c3-4ad0-b8a3-56baf36939ca@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 14:44:22 -0800 (PST) On Mon, Nov 06, 2023 at 02:58:12PM +0100, mripard@kernel.org wrote: > > But a similar thing is happening here where we have so many bogus > > warnings that we missed a real bug. > > IIRC, there was a similar discussion for lockdep issues. IMO, any > (unintended) warning should trigger a test failure. > > I guess that would require adding some intrumentation to __WARN somehow, > and also allowing tests to check whether a warning had been generated > during their execution for tests that want to trigger one. I think this is a good idea. I was looking at how lockdep prints warnings (see print_circular_bug_header()). It doesn't use WARN() it prints a bunch of pr_warn() statements and then a stack trace. We would have to have a increment the counter manually in that situation. I'm writing a script to parse a dmesg and collect Oopses. So now I know to look for WARN(), lockdep, and KASAN. What other bugs formats do we have? Probably someone like the syzbot devs have already has written a script like this? regards, dan carpenter