Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp1288196rbe; Fri, 1 Mar 2024 09:29:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWcBlClEmyWCKJlS38ikf7U73abuSzLNIBi6i5XBNqI3jIVe7IgmtO3tR+lqJflkwuD6TuNUEdg5fdWseFjxlTU/4hMrY+9kW9dYKh8JQ== X-Google-Smtp-Source: AGHT+IGswzinBR4saUI4CMJSs7J4krdlHRdZEnNGtp5d9g5mUkiPCR+qKTpP47RbcyNtxNgVBlG3 X-Received: by 2002:a05:6402:b86:b0:566:806a:6f9e with SMTP id cf6-20020a0564020b8600b00566806a6f9emr1659193edb.28.1709314159567; Fri, 01 Mar 2024 09:29:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709314159; cv=pass; d=google.com; s=arc-20160816; b=aYxYsZlfPSHHtxZP05y5l008IDYFCDC6P5tWuZesxLEZKXr4IDUnCe3gKeQvcQ4x7k BpfNAcC3nIvOq5aKpUpv07ZU/39lazOukhxTI/W/Bkz1R2E8yY9TpyswOSvMMtWEzXZd PfJkCy+U85Hbg6YiqidzWOXra606hNZpPF+3+vuV3WbvVK1/YA09m0s4cz9dYFtmvnwt ifugPLOLVV0YKJve8xgBzvuT7pWZyNuMBmbf8T+BNrsaiBZn0PXBSJS4LLhUNH2g8fDf WgbhZEd8n8KtlUwTx2eB1blUC/svI0AnomrXW//7cZU2GFoj8/smEChiaPo3QdnjzPGu Z3WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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; bh=liurjMRw0VTKXf+EVIgzR1EUDfXNSsYChpQ842tr2R8=; fh=fDxnrAG4ogLI3Uy5WaLLPsXZmIzaX6/1p+gP+jqMFOw=; b=0gUincMPEG60GLZNN78bHgWuCW5UIdAgaRXBD1IuR8I5QMPGYQyDyGe9nocwd5u9Hp fXYNeIwMF1ijK+9pnaB0GCmm3kViCr8prjH3R5rI4miQrn0j6u2Hvn9I66YX+3o79kKY MHHd3dybUU9nSoWy3jbQW3K0fYU1sivG6iPyespq11CuS3UGqocZ/iUfIIMA/62LVCGB TsiUQBtHbVTfBrOm3J/SqdJKWh9rPxvgCmDwhRPdAsT7nr8iyL0y5CzDC3vWn1G6VVO8 bIXFlsmgyGiOjSqckdIMXh3p5h5eDF3sOwtmLpDfleCrlDcJ48RTF8r4Kbqfiksp2n9i vPTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-88823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l3-20020aa7c3c3000000b00561a9aaf59dsi1554814edr.414.2024.03.01.09.29.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:29:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-88823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 56E651F25F3C for ; Fri, 1 Mar 2024 17:29:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43070F9D1; Fri, 1 Mar 2024 17:29:13 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 1D34B79C2; Fri, 1 Mar 2024 17:29:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709314152; cv=none; b=RxWQ3iHI0sZF3yWYnq2lBwNYQq7GvuIrkeC9JkrDuR52aOg6YfouztYe8ND4JQwV+tS5AK8kMywt0WRtgMXh+ptOf+oPkE/Qu/Q8SzEkEQLS4E8/IJaSDePUv1g6nqb2bFGgzjWqrSvT3755+7+irXFEKah6AEcupIrixR7QCjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709314152; c=relaxed/simple; bh=cQbj9nw1nsXY6pJq/AyxfpVBj7eJaG3yYixrJ/2GWGQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ENeskhQVTkg4cOhg4Qr61nIBxZ2YX1ZHqOgVTN1paQ6o9kC1Q++hqiqeG3xDYKSZwtFfJ6s2Rj4+8M19RimbzuqpRVxx3o6/xlahqx0IDtZI0SFLr5VESmS0hX438gn6ayrE46Y808Dz/XqGyG3IZ/UAO6CMOIUvj/Y7ntfeA3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-IronPort-AV: E=McAfee;i="6600,9927,11000"; a="15273528" X-IronPort-AV: E=Sophos;i="6.06,196,1705392000"; d="scan'208";a="15273528" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 09:29:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11000"; a="914020951" X-IronPort-AV: E=Sophos;i="6.06,196,1705392000"; d="scan'208";a="914020951" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 09:29:09 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rg6h1-0000000910F-01ei; Fri, 01 Mar 2024 19:29:07 +0200 Date: Fri, 1 Mar 2024 19:29:06 +0200 From: Andy Shevchenko To: Kees Cook Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] string: Convert selftest to KUnit Message-ID: References: <20240301002416.it.092-kees@kernel.org> <20240301002650.1544829-1-keescook@chromium.org> <202403010921.65C845411@keescook> 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: <202403010921.65C845411@keescook> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Mar 01, 2024 at 09:25:07AM -0800, Kees Cook wrote: > On Fri, Mar 01, 2024 at 01:09:27PM +0200, Andy Shevchenko wrote: > > On Fri, Mar 1, 2024 at 2:26 AM Kees Cook wrote: > > > > > > Convert test_string.c to KUnit so it can be easily run with everything > > > else. > > > > Have you run it? > > Yes: Of course I new the answer :-) The problem as I described is the (absence of) fault injection in KUnit itself. When tests are passed the picture is nice, when they are not, the reports become a disaster (if this is applied). -- With Best Regards, Andy Shevchenko