Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2196793lqa; Tue, 30 Apr 2024 10:32:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1KlKKKOcvFQ+xyVGTCcisvAnqzreRasa4FQBIJ+pc2M7/QYvWEp/lJcXgNzRH0XjlSl0ccN8RAU0M05B1GR8pPu3fIYyP8SbKWSs4Pg== X-Google-Smtp-Source: AGHT+IFM7wW6NkioKc+/G6nsMV4nu1Tz/3zLSEMZ8Hi75aSFAILZXqvYD11qefaJrFjC+Q7Qe9Mn X-Received: by 2002:a05:6512:2087:b0:51d:9429:dc with SMTP id t7-20020a056512208700b0051d942900dcmr93519lfr.5.1714498326314; Tue, 30 Apr 2024 10:32:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714498326; cv=pass; d=google.com; s=arc-20160816; b=j4/DtxJxTJPeeA85r3CIYHX7u7swjkg/1YtVywr5s9KXuDI5kQ7+ztDC319sxD4xMA +oNkptez1GwMg3LLUKkZLONIWikAv/z/EHIDMNoTguSuI97N4m07N3SDmxvIzNxTIvMF EuYizdUYUTQMGdVLsyRr1h+qHWoFS8uIwcwHDr/19C5lKMcFfTVSbJfh3jbOfHrHNKWL sskfnpD06hnypTV1JZpTXVp8a351NB1uAdMLVkKs129Faq4tTiORc/jL3oC7R6wpcJcc T1x0s8asv3MNKL/pGkajmS/QQ/rtQbVBf+xTEe+sv0RUI3FjQjdc80Gdf8u+kXv6APn/ lq0w== 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=3EEb/+7pQTPZqCt+U42Y9t+xJMdYwj29iL51OoGLPuw=; fh=PtiwqqnhyK+MDLFqdFhQDxsMeNWb1Ft+Er68LmrG+F4=; b=tUNvsaiCGptHlTRCT5uEWIsyzYP6VphSzKHLpLkB5jC8q580THX/lKqho1uVRTbLdP XSTC0KkozAT2DrpJURWY1wfzF6F8xp2KljSKDm9lk3mWjLVuczDvtqZArSPi7fp7mxQe goa0MjLPau2U/hhji52qn48tsvB2rYGzGV23ZqkMqKT9RZ146fceenN0HPnScP97sl9m vPwds6rvDdAnpFnOvXpi/S7vuz/GTdbw6tDAAb1W1CvFNL34jiASoNlXVU6eyMjUfDB/ cO6zTmy7ifkhBDaA4jtlWlxfrD674XPcj7LwM8XZrGVzxhPyubgjeiQKuiXZAXStZC0f kdMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M0clFbDh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 k2-20020a170906578200b00a51a11372a2si15312168ejq.301.2024.04.30.10.32.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164520-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=@kernel.org header.s=k20201202 header.b=M0clFbDh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 C25A71F23A41 for ; Tue, 30 Apr 2024 17:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6C4913C66A; Tue, 30 Apr 2024 17:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M0clFbDh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0B8181802C3; Tue, 30 Apr 2024 17:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498306; cv=none; b=Ouhj8ycXPRhSHwNiprEuYfCclMCwV9bq53VycMvujb4R1V0edPzaH5EESthWSow4MHMMAlKj+55aUGPo9h4Czu7Bj24bWE8nGsfiJ1WDLytv8YGjhRa7ZhAZtW3wbe/OGgVaMbtidMyY+zHG+vUL+zFL+ieqBMPcYSy6pLKYZOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498306; c=relaxed/simple; bh=OZfdAv9Kd4pWfqB6VspdLN4BDbD4/2bmL+06pd8HlHM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JdMg0mi9Q9Z4c/1uJ4PGIeqhWJmQxFw8YLknK/SR8hsL5lvDVxVbZm21aQiwyyEUyftsCUdRHVJA2BRM986gqEMVcxqBocWZnHAYpU6vKjJicoMjGd68VmLLcfpVnOIkhDgfDK61rzPdQ5jvS/paub1DELH7mDtZBP0hPf1C3fY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M0clFbDh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64A0CC2BBFC; Tue, 30 Apr 2024 17:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714498305; bh=OZfdAv9Kd4pWfqB6VspdLN4BDbD4/2bmL+06pd8HlHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M0clFbDha9R8iPiHDUgsn1ZVjkjm/cOV7b83d3UsD49XrAzNh57sVUpxiUTbDHH/b AiOryLLbKn10xcrSpBZEb3nmVKOVGpsAZ3B1r2Z4KgdobxAqQ/6eStc+GcuJm5g/kf qiajgLH5smRzG84WGTv4zWA9sqrTR47r9qvzgOndkOGiSR+X7grtOV687F4CAc3PF8 kzLYKtIwljZh6iwtQOIiAxOYdiqlDuJ5M3ZA/6ysLXewYsbreyGSknjRjvgsS0SShU KZFUvzezZpmR8GMGHt50ZroWvXxHQW8ONzWNA5Nlr4tWDnk3cif12tNUsMCllmrxtD y7Im4/I4uo0uQ== Date: Tue, 30 Apr 2024 18:31:40 +0100 From: Lee Jones To: Greg KH Cc: Edward Liaw , stable@vger.kernel.org, Shuah Khan , kernel-team@android.com, Mark Brown , Kees Cook , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6.6.y] kselftest: Add a ksft_perror() helper Message-ID: <20240430173140.GA840359@google.com> References: <20240430010628.430427-1-edliaw@google.com> <2024043037-debate-capsize-e44c@gregkh> 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: <2024043037-debate-capsize-e44c@gregkh> On Tue, 30 Apr 2024, Greg KH wrote: > On Tue, Apr 30, 2024 at 01:06:27AM +0000, Edward Liaw wrote: > > From: Mark Brown > > > > [ Upstream commit 907f33028871fa7c9a3db1efd467b78ef82cce20 ] > > > > The standard library perror() function provides a convenient way to print > > an error message based on the current errno but this doesn't play nicely > > with KTAP output. Provide a helper which does an equivalent thing in a KTAP > > compatible format. > > > > nolibc doesn't have a strerror() and adding the table of strings required > > doesn't seem like a good fit for what it's trying to do so when we're using > > that only print the errno. > > > > Signed-off-by: Mark Brown > > Reviewed-by: Kees Cook > > Signed-off-by: Shuah Khan > > Stable-dep-of: 071af0c9e582 ("selftests: timers: Convert posix_timers test to generate KTAP output") > > Signed-off-by: Edward Liaw > > --- > > tools/testing/selftests/kselftest.h | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > This commit is already in 6.6.29, why submit it again? I don't see this in v6.6.29. The function that it adds is called, but doesn't exist however: stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't call gettimeofday()"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't set timer"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't call gettimeofday()"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't create timer"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't call gettimeofday()"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't set timer"); stable/linux-6.6.y:tools/testing/selftests/timers/posix_timers.c: ksft_perror("Can't call gettimeofday()"); We should probably have this added to linux-6.6.y. -- Lee Jones [李琼斯]