Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3917711rdh; Tue, 28 Nov 2023 07:12:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/ROyPvEpWCAGFS4XtOIOfkWXxAjQFr2kHqyWrTbwdeX6LMd+e1JIxkL2Gdicn225YICga X-Received: by 2002:a05:6a00:a0c:b0:6bd:b7c5:f776 with SMTP id p12-20020a056a000a0c00b006bdb7c5f776mr16541563pfh.8.1701184368935; Tue, 28 Nov 2023 07:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701184368; cv=none; d=google.com; s=arc-20160816; b=afXZNdXXDO0IJYCGpdGTpaKB/PQJtvNAH8PVrxpzbN86Nqa/5+p/zU5WKAEFBu/edE hfc9rbla9ZXxDPX7ZxD1+4qa/NHwXlLkG8O2ywdNYya9gMD5sTAyaPgE97dyGjZjH8fX VlxYLbtrwqSAJJu2VLD0vgL2yq2I3JxGPsQMvo0zeCu3mn1sxHsGJIZO+Y2RRCDMGUFT gdLvtAD+uG+/qnfientZuBEbOsv3UUoGmcgEZT70STyNFVrNdtebPXa2rkMOeLueNjDh FrjNQo3Rq/kAdBjCXLyNhu8+KwmhKVOmMSF0z/h+SGDnIjRpkYablXt1cVjCqV1Szn1e fG9A== 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=5fodxUrXfbUVJyQsxV+QH4c1pvyaSFnvrclKwsrlwiA=; fh=Cjdj/I0GP/7cTqg3OOcx5yOpYmrrkVGpT5y1NupZSxQ=; b=uKNbrCr7DLDHlDtu+H5gw7O7WV7kTk/5ZiAnI8LLXeM3D5kZPamuB4Q4zG1SyVtmEG /rGAuNJDew8L5yB90y/ZxAquazx0s+8FJ7u9EMlwkHxYtimgvMIQQ1elt5Xe2v8oi1TF OHvR47ZTsVkqJzm7VFeZ9LIZq2viqLTBEpkLUimAKU5Kn/K4Mqc2kYPKi3ZbAEHbdtHK +YVw4zubJnMN4Klu/elrFJhmne9E/ogDYipJQZMRNFv1ObYaEoGYpKfHWaTCGvI+Crsx PyWnvYqdPLc9ChG+oaOo+ZH1fUY9JoABZ92nx6mZC9q9njOW/rgxaKMPLLpIsb6vCJ+n lt3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEoh+vW0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u8-20020a056a00158800b006cc09999f53si7323841pfk.384.2023.11.28.07.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEoh+vW0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id ADA0A804131A; Tue, 28 Nov 2023 07:12:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346615AbjK1PM3 (ORCPT + 99 others); Tue, 28 Nov 2023 10:12:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346677AbjK1PM1 (ORCPT ); Tue, 28 Nov 2023 10:12:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5487D64 for ; Tue, 28 Nov 2023 07:12:33 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A308C433C7; Tue, 28 Nov 2023 15:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701184353; bh=EreEuo3ByevFdxyj2xZ343mwDCOQFDjI9HUYNeB8qMM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZEoh+vW0OQftZ9iSM+pSRAtdLZ0zQ9uW00oeELJA6Y7FXtS9IFsTAMfDp1e8MqDMm SrvZogELxuM10C8TdtH40z3Syt8/4hvtAqMY8M4S5hXbFUQh70GveTisFE361PR5ef 9LyW9XZD3lle+hXXX2BOLP9/NdtjvmiMUgisVwbQ5xcwxMygeeHkRZ6QBM5EHwAGFv Hd034FjlzqIzlXhYzThgIT4KBpDpLWJa8fmO83/8gxrz21ctQ7XdaTFVa+00p/eZAb BsjBOgdTwEjcIpORqR+G0wtCwZ4cEzYM32eqYzeItQDoRyveZO3vfzuKK8fhrj1OBr WHHZZI5RpX61g== Date: Tue, 28 Nov 2023 16:12:31 +0100 From: Maxime Ripard To: Dan Carpenter Cc: Naresh Kamboju , Richard Fitzgerald , Maarten Lankhorst , Kees Cook , Daniel =?utf-8?B?RMOtYXo=?= , Thomas Zimmermann , David Airlie , Daniel Vetter , Brendan Higgins , David Gow , =?utf-8?B?TWHDrXJh?= 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 =?utf-8?B?U3lyasOkbMOk?= , kv-team Subject: Re: [RFC] drm/tests: annotate intentional stack trace in drm_test_rect_calc_hscale() Message-ID: References: <02546e59-1afe-4b08-ba81-d94f3b691c9a@moroto.mountain> <7b58926a-a7c3-4ad0-b8a3-56baf36939ca@kadam.mountain> <8489c4db-6639-43f5-b6c4-8598652cdce6@suswa.mountain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f3ytx2rrawo75fs2" Content-Disposition: inline In-Reply-To: <8489c4db-6639-43f5-b6c4-8598652cdce6@suswa.mountain> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:12:46 -0800 (PST) --f3ytx2rrawo75fs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Dan, On Wed, Nov 15, 2023 at 05:42:17PM -0500, Dan Carpenter wrote: > 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. > >=20 > > IIRC, there was a similar discussion for lockdep issues. IMO, any > > (unintended) warning should trigger a test failure. > >=20 > > 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. >=20 > 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. >=20 > I'm writing a script to parse a dmesg and collect Oopses. Do we need to? I was only expecting a boolean to be set or kunit_fail to be called in the WARN/lockdep warning code path if a test is running? > 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? I think you got most of it covered, I can't think of any other source of failure right now. Maxime --f3ytx2rrawo75fs2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZWYDXgAKCRDj7w1vZxhR xe+PAQCPKkPfBpRK1+qczjNj3c+A6ZhufldsIRpm3uIfqbui9wD+Jyk05rhSakGj +srHLHnrqrGTmcbIXi4CaSax0l0TDQg= =YA0J -----END PGP SIGNATURE----- --f3ytx2rrawo75fs2--