From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 3AB96187332 for ; Sat, 8 Mar 2025 04:49:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=139.178.84.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741409388; cv=none; b=W7kfFxlFxE57uY6J2U5HnN0Zk4/YW2LQKsw6kgHwOO3bUktkZC6wG2HN9H2btdlJl59KFhYIbY0qLvygCj67gIPehyULl5yuAi/NyOgKu7tc9p5pHYtFwu3JDuPdA+idul90cho1oCEOFwM0LW+MffVYgbFTkEjeMAuo1B0zCXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741409388; c=relaxed/simple; bh=cHCMyURT83iZ0bUABkH5vlmrxJCIFzOvc1VaYxMO3Ug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cGg1OqV/Fy1UTeVYU7n9M9waU82Om/2jx25kapKxHZJEVTr9RKQhRgR41UWUgFrU5abedm1LJzfWYE1FrEYiqsJVSVwAFs+zsx4m5S5jpZ+DYUquvPR1ec5vO8JBykwUYsEEa3fhE7PUKGC6h7HHsX3ZGC/zaVgeL23BWJgadEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IQhEGZcW; arc=none smtp.client-ip=139.178.84.217 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IQhEGZcW" Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2FEE05C1026; Sat, 8 Mar 2025 04:47:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48364C4CEE0; Sat, 8 Mar 2025 04:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741409385; bh=cHCMyURT83iZ0bUABkH5vlmrxJCIFzOvc1VaYxMO3Ug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IQhEGZcWsRKjD++O8GD8HN1gxeWgouUnIwY6pBLAEja/E4u2sHlR/mnCjrAflSsg3 lwxxM4Uxsw34znfSyIG1sdJO2R15C2P4ru0l7G+13agou6e+c6f2w6sxNWBWPMxEed RfAV2to3mAMvSdMEPwKrQmOSLZEklPw6FEKkGByg4c/tbi18yd+8SeoVbDvrQx63tI 0IqJ88Yba96DvfO5TWfo4MC1nHQ6B2ti/saXjIIU+T2iHcuVfwglqub8cgJG+6eb0p rvWk3UbqYRVurjQOb95Mwdwtmqo2rLdKvi06CK26gorEVR2b+LiexRDOebcFVhyv42 SJUQs6HSj1mAQ== Date: Fri, 7 Mar 2025 20:49:42 -0800 From: Kees Cook To: Tamir Duberstein Cc: Arpitha Raghunandan <98.arpi@gmail.com>, David Gow , Petr Mladek , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Andrew Morton , Shuah Khan , Jonathan Corbet , Geert Uytterhoeven , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Brendan Higgins , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, workflows@vger.kernel.org Subject: Re: [PATCH v6 0/3] printf: convert self-test to KUnit Message-ID: <202503072046.34DAF614E6@keescook> References: <20250307-printf-kunit-convert-v6-0-4d85c361c241@gmail.com> Precedence: bulk X-Mailing-List: linux-m68k@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250307-printf-kunit-convert-v6-0-4d85c361c241@gmail.com> On Fri, Mar 07, 2025 at 05:08:55PM -0500, Tamir Duberstein wrote: > This is one of just 3 remaining "Test Module" kselftests (the others > being bitmap and scanf), the rest having been converted to KUnit. > > I tested this using: > > $ tools/testing/kunit/kunit.py run --arch arm64 --make_options LLVM=1 printf > > I have also sent out a series converting scanf[0]. > > Link: https://lore.kernel.org/all/20250204-scanf-kunit-convert-v3-0-386d7c3ee714@gmail.com/T/#u [0] > > Signed-off-by: Tamir Duberstein > --- > Changes in v6: > - Use __printf correctly on `__test`. (Petr Mladek) > - Rebase on linux-next. Thanks for doing this! If Petr, Rasmus, Andy, and/or others Ack this I can carry it in my "lib/ kunit tests move to lib/tests/" tree, as that's where all the infrastructure in lib/tests/ exists. -Kees -- Kees Cook