From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7AD8C54E5D for ; Tue, 12 Mar 2024 22:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hYJ1FgN0OdXGLPuaseFoqQIN2JJh4gzUgXJDfRuUdiM=; b=qBSpIxP1gCPjOL onjKoMst1GMrt8DUq1TTJTk+iO96ZsX/fW8c+KmTtalkMVPC5nW4rs+vtt+QoFgSvuy7CaeSnkAL3 XuArMV8hBCKOetO2nFajDA4JI84UzkE7CJMaxLkYKR5x4/1WPjwJig8X7gVtkGcT1zhLlZ7p/GAso qYvEaDQLlLynrU3x4obDwuMc0ShJhqmfQkWHc9XSfx4aVWVQBJHyHwp5ZDkKpoEkXUtUwjOW/kJTZ P9a2dMqLZHLwg8J24ARGbx+lCP65iZ4/JDn/gXxMlYCricdJiZyCTHzqI4OEOcFNJ22HrZJZIFZow ZPXYSVZk87swuyHtteLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkABJ-00000007hjI-3qtL; Tue, 12 Mar 2024 22:01:09 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkABC-00000007heS-3ql5 for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 22:01:07 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-29bb3d62949so3227852a91.1 for ; Tue, 12 Mar 2024 15:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710280859; x=1710885659; darn=lists.infradead.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=lLq08iYnVcnWuDzFJHO0LDnyeIZ1/WCj/v6YSvUnsiY=; b=J2lBx3Pd99laX0OjaFZn28MUHyhQMP0dMqXRG1TkUb9Lwgs92LCayn1+SJg9NHI8/6 NaY/3AMeb7WlfvPnUZNgW9J+MOOBPtxELVVUdJm0Bb0XeTmuaHdecFr3v0vZUH2PmG6n l4CFK5kg7g1sJg0IPgIFNlXxwlO1H+Tbltmnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710280859; x=1710885659; 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=lLq08iYnVcnWuDzFJHO0LDnyeIZ1/WCj/v6YSvUnsiY=; b=E/p95FsJ1fp2MUP205z7v3Zg9Gd2C3w9aOC9u21H1SI5bcyz+AqQt7ilfkzw4BlL2x KiuN0GydIsOPlR0t9Dq2Z1Nph4O9pUAQVj957raiaIhwlNaGz0AyGhd+Jl/vgbYoIv0P JY/4xVt9E67k9oh1jeQ1ISYJQk8jWDxtSvpms4V1p9iQS+JM3cK9nJtoQTTNhXWYlYn6 TWjJqQRCLl9Cu6dgFfonGM5fN73tN8Qhx45Ln4PwNd9VDYsQfm0bPx1pVo45UhNSLTZD OdEqVI3BXLJ2bB3CJlQsAzBJK6I9bYzZD08Rv/B7jwPLrUsdQ1/4P+wHvuj3EejAT0UY VeZw== X-Forwarded-Encrypted: i=1; AJvYcCXcn/fq3ELPbTgnAdaolzZ56clYkyt5cOiJVAMjLiNtvNUV4VSrGaInC4j7FQxmZC/UtTTx6zMH/UfgwxVncC22dUYfyoDBGBi4jd4tnGQzYU/d8yA= X-Gm-Message-State: AOJu0Yz6SqpViL8oSwnPWsmjGZP8qr240R0d/d1N06/FBQ0YbKMPOmlE pDH6E2UcWXOrwaGCpObh06JX8bxhioKgu4QCi+nEUqu1ztauKITSCdU8mTokwQ== X-Google-Smtp-Source: AGHT+IHdha0C7GHgTOtn+h7GC1nV2SuVFIKnwQ0XR5LyRaxyHLt5ciUVNw2VJKedo24c6BQYxDb+PA== X-Received: by 2002:a17:90a:8b02:b0:299:4cc5:aa25 with SMTP id y2-20020a17090a8b0200b002994cc5aa25mr2853635pjn.25.1710280859551; Tue, 12 Mar 2024 15:00:59 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id u8-20020a170902e5c800b001ddb57a4dffsm2232631plf.132.2024.03.12.15.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 15:00:59 -0700 (PDT) Date: Tue, 12 Mar 2024 15:00:58 -0700 From: Kees Cook To: Guenter Roeck Cc: linux-kselftest@vger.kernel.org, David Airlie , Arnd Bergmann , =?iso-8859-1?Q?Ma=EDra?= Canal , Dan Carpenter , Daniel Diaz , David Gow , Arthur Grillo , Brendan Higgins , Naresh Kamboju , Maarten Lankhorst , Andrew Morton , Maxime Ripard , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Daniel Vetter , Thomas Zimmermann , dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, loongarch@lists.linux.dev, netdev@lists.linux.dev Subject: Re: [PATCH 01/14] bug/kunit: Core support for suppressing warning backtraces Message-ID: <202403121500.64A2C02@keescook> References: <20240312170309.2546362-1-linux@roeck-us.net> <20240312170309.2546362-2-linux@roeck-us.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240312170309.2546362-2-linux@roeck-us.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_150106_247295_EFBDB84F X-CRM114-Status: GOOD ( 18.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 12, 2024 at 10:02:56AM -0700, Guenter Roeck wrote: > Some unit tests intentionally trigger warning backtraces by passing > bad parameters to API functions. Such unit tests typically check the > return value from those calls, not the existence of the warning backtrace. > > Such intentionally generated warning backtraces are neither desirable > nor useful for a number of reasons. > - They can result in overlooked real problems. > - A warning that suddenly starts to show up in unit tests needs to be > investigated and has to be marked to be ignored, for example by > adjusting filter scripts. Such filters are ad-hoc because there is > no real standard format for warnings. On top of that, such filter > scripts would require constant maintenance. > > One option to address problem would be to add messages such as "expected > warning backtraces start / end here" to the kernel log. However, that > would again require filter scripts, it might result in missing real > problematic warning backtraces triggered while the test is running, and > the irrelevant backtrace(s) would still clog the kernel log. > > Solve the problem by providing a means to identify and suppress specific > warning backtraces while executing test code. > > Cc: Dan Carpenter > Cc: Daniel Diaz > Cc: Naresh Kamboju > Cc: Kees Cook > Signed-off-by: Guenter Roeck Yup, this looks fine to me. Reviewed-by: Kees Cook -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel