Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2259227lqt; Mon, 22 Apr 2024 06:15:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGAc2pTKbY4erTbylBLQGbrzgbcEA8z/7IdvRlUoAq6nrYJOO2JIGEGP4Ph6bSv1V7i/aJJkbvO4D86iJYAxklJZlaR1s4Q1YrPZcOVQ== X-Google-Smtp-Source: AGHT+IETlG3qAgprHLlIrsvG3Z0oCayMndYmhJZPA6k1q0kXCzgcfV+9rYlyNeIJJWNv6OrOHZ5A X-Received: by 2002:ac2:4dbc:0:b0:51b:5da2:2dc9 with SMTP id h28-20020ac24dbc000000b0051b5da22dc9mr1478516lfe.52.1713791755951; Mon, 22 Apr 2024 06:15:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713791755; cv=pass; d=google.com; s=arc-20160816; b=zUrN0K/3i+T1NP8a9RHE0lS+gsb2aMTI5tsT8+JT3NYl61UV3yWl/jegN0yNYPFdHl fCGVxNo8fRtCrTb2VUnYqBqvUPNDJqCa/AQ+rWfHPhBVs06wbt+g6RvQDiTeJdqX3iCd IrNAfxZq9+fIAHOn75lCbmBevG47f8bJS9PJPsbU+uNks+DWPq3+ntkzew5DOGMWDFBF hy2ms/r/J5HtzxALMi8j62ZSB8C6qVCxNjQzfP19UOJ1xJEgPs6HItIPEa4c9eyNMpqB 3WNqVqz1LtH2G544dfpVx2MjnKH1l2Fe+3S9o8DHB3BTtYBz7bwdbgugs1MqvanULY1M WRVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pv8Vpl/p6hWBRbxpbdndSCYNMCjzk/damkKcPWlghIY=; fh=eO3Uox6rUWfO7OivuCzWfLnwJVSSeGeuve3Vc9k+QiM=; b=i4GR7hSrCvg68T8OHm0nUcjuW+MS6uZUsVzhCVu0BGC/ucsXvXZxwnLbyw5VhTBkvr JKdUQHs3u5oazBrArWJRyTaPsdqpxjAHrA3ga++Fr70JgPMUEmGjnuFyGspLrIHF7ojI zQ3kpOpZfkJ33q7TayCGFV63xC3SuV4z0U53Z3EKWl3YADWXfQcRaDEn0N6WVr1WuAxY gN8EXNMmGUcNZMNgwHq0yNkg9XvgoR7mBkVIJy0Y2OfeTtbJJpqjvAqEXlCN4cvk53iD 5o4llwxD+gGzBNo4+eFTHlhK/lwglNATqnScOVZ1sWV0voBBwdI1lrEgBMEuCjnd4h/t IC9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=XaC5f4gj; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-153426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153426-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n18-20020a170906725200b00a474a75064bsi5698659ejk.380.2024.04.22.06.15.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 06:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=XaC5f4gj; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-153426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153426-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5CF3D1F214EC for ; Mon, 22 Apr 2024 13:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 963EA14F9D0; Mon, 22 Apr 2024 13:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="XaC5f4gj" Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [84.16.66.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D69D914F128 for ; Mon, 22 Apr 2024 13:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713791744; cv=none; b=VNcPYYhYi32a/CNyGgqDwjCRac2QhTQe+/UQvhqdstfxxYkyycLzkF1TXb8glXKUaRPf0oW3cV43zN8U2wf3TRsD3ThfqU/WkeF/YmmZ5RMN9h+caWxnA1GXLOJVEl6MDM9h87eXqvcn/UjNY28UdtX9Er4EzrsNizz1UeXrDT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713791744; c=relaxed/simple; bh=GjhTJjoSiC3IDIVXzgKQ4P+qNveHUQ6lI+EgnHlfUqo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GDKgLq+FHw4CFJPld3NLjQmo+y6zhUMvGDJUQI0l9ZaPdeoYjRRlGxPxE1yrHrae+y6zKCTeLll5wOpwp8C1FMS0xN4Rs6XpfmcViPhiLld6yekCBwFazAFBwEsRaOMsEuTOQX6vLgfxO1SQM9XdnPEndkLjMQdqF6n6LWICy0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=XaC5f4gj; arc=none smtp.client-ip=84.16.66.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VNQYc6JShz3q7; Mon, 22 Apr 2024 15:08:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1713791332; bh=GjhTJjoSiC3IDIVXzgKQ4P+qNveHUQ6lI+EgnHlfUqo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XaC5f4gjQmTg7HWgvo8OaBYgvZVVaUnv+Y6B/jdsg0Q4f2OLDr4AYla0dAr871yUg SXigC7/aA4mp4zabDYUfQYwz/kj2V8GznfSGfeIslpVajiSP9OYd5T8+9TTpiL7YOt axM86vO0S3TpXTEvr00XTnMRotQwMoJZqzDgMjqE= Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4VNQYb16q2zrw3; Mon, 22 Apr 2024 15:08:50 +0200 (CEST) Date: Mon, 22 Apr 2024 15:08:50 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Guenter Roeck , David Gow Cc: Brendan Higgins , Rae Moar , Shuah Khan , Alan Maguire , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Ingo Molnar , James Morris , Kees Cook , Luis Chamberlain , "Madhavan T . Venkataraman" , Marco Pagani , Paolo Bonzini , Sean Christopherson , Stephen Boyd , Thara Gopinath , Thomas Gleixner , Vitaly Kuznetsov , Wanpeng Li , Zahra Tarkhani , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org Subject: Re: [PATCH v3 7/7] kunit: Add tests for fault Message-ID: <20240422.thesh7quoo0U@digikod.net> References: <20240319104857.70783-1-mic@digikod.net> <20240319104857.70783-8-mic@digikod.net> <928249cc-e027-4f7f-b43f-502f99a1ea63@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Infomaniak-Routing: alpha On Fri, Apr 19, 2024 at 04:38:01PM -0700, Guenter Roeck wrote: > On Fri, Apr 19, 2024 at 03:33:49PM -0700, Guenter Roeck wrote: > > Hi, > > > > On Tue, Mar 19, 2024 at 11:48:57AM +0100, Mickaël Salaün wrote: > > > Add a test case to check NULL pointer dereference and make sure it would > > > result as a failed test. > > > > > > The full kunit_fault test suite is marked as skipped when run on UML > > > because it would result to a kernel panic. > > > > > > Tested with: > > > ./tools/testing/kunit/kunit.py run --arch x86_64 kunit_fault > > > ./tools/testing/kunit/kunit.py run --arch arm64 \ > > > --cross_compile=aarch64-linux-gnu- kunit_fault > > > > > > > What is the rationale for adding those tests unconditionally whenever > > CONFIG_KUNIT_TEST is enabled ? This completely messes up my test system > > because it concludes that it is pointless to continue testing > > after the "Unable to handle kernel NULL pointer dereference" backtrace. > > At the same time, it is all or nothing, meaning I can not disable > > it but still run other kunit tests. > > CONFIG_KUNIT_TEST is to test KUnit itself. Why does this messes up your test system, and what is your test system? Is it related to the kernel warning and then the message you previously sent? https://lore.kernel.org/r/fd604ae0-5630-4745-acf2-1e51c69cf0c0@roeck-us.net It seems David has a solution to suppress such warning. > > Oh, never mind. I just disabled CONFIG_KUNIT_TEST in my test bed > to "solve" the problem. I'll take that as one of those "unintended > consequences" items: Instead of more tests, there are fewer. > > Guenter >