Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp19332lqh; Mon, 6 May 2024 09:56:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXM1Kix1N0tmCkDF3/nUZqhyvvV1YgTvdO3J932Z9o1m5SQ8G7IStGi7rBrFhqV6SZ58bugZun5Xmg0bCGlZqQoWX/nqGm74pTaUTZM6w== X-Google-Smtp-Source: AGHT+IE8EGLmjuLKzblakiO9UxWrxeGbzA4JQ0VCOsksCemy0VprwfrUti7pRrBbDt0SJq4T5nmo X-Received: by 2002:a17:906:a3c6:b0:a59:bb20:9964 with SMTP id ca6-20020a170906a3c600b00a59bb209964mr2795638ejb.23.1715014605481; Mon, 06 May 2024 09:56:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715014605; cv=pass; d=google.com; s=arc-20160816; b=hZUVKcvRYJrIO/+oNyCoFtNHMBdY0eL1MAb8ZpGDnst73opmxXPYMlAtpUX+3AwUHh YZKDWIo8yVZbkqmE39mJiMpt9HZsS8tS7GdKO9zEa820p7cqUUOEDE0FpMI+J9DOLRgj A0ru6sPn/s+N7GV8XtUqujtb3n3+dpJrVZ1mjx0CII8NCJ+NN3dpntc7q1fsq45ybFgR mJyg8oTVIBNQO5Wu5ZKI9WYTQ+7dOapJQ2k60w/LEa7+rK6O6G6DprkCRf4mD3SgOvN1 IL9tdFCYo0c2f9+gw7kvdHB1wr2XZC0zmLKx1Qi+p//KCnOrCEEuNvb1Kev0HrZ9C0kW 92UA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KebwR6rpP4miVeXi2bHPDPVtkl5bxq5fJOSKRhWqbp0=; fh=h2xHIZSGiUwuZyladnT9pE6uX086qy42ByZk41PjzSs=; b=w7/3dqj8Ej/LR7h4PPd+47ABAyVVvfbMKYQh7aiamhT5VHbaFlIXufC9Lhxxmu+ydc JX10bSCsUy1a7gyotviBw07Tf2ixO7fSqPGoxntrZzEG+YKhrf8EI/yuOp+FjIR4rkOq lkF5p38dqxwhNVEtctEeORwlOlSAzXf7lu+pyRYWVkIIXnlwt8hzC9dxn3dfKRNTA3T1 KbvQeLTHIu7PYt4u/WnkV3FwYwD+Tr2zFG8ZxYcKkmmXMpHfrOwgX3CsGoe7l+nQ5M7k vJXfVj3bjlbYThjJDNHYFKXcUPVZT9P4d7r64/GhynGEIsfBz9012PsOnUwFhNyUenla BeLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=HvN3kw2o; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-170202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170202-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 a25-20020a1709064a5900b00a59bcddd300si2184016ejv.926.2024.05.06.09.56.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 09:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170202-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=HvN3kw2o; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-170202-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170202-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 39D991F26560 for ; Mon, 6 May 2024 16:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62865158DA1; Mon, 6 May 2024 16:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="HvN3kw2o" Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) (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 961A7157A43; Mon, 6 May 2024 16:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.25.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715014535; cv=none; b=g1obyE0rrRMb0n6Gp7VgEfyjsjYUJ2aV82lDW2DCff7mCR4/DkIlYnSmarac5nsixXz/0qLGc8gqIP3pDxiCbV3weEJHeQ1kVPKDNVMtJk5nwbBWjA+xbdoG2xJkCWRqMmFFqxKk1U8t2B2rgJTWWwtOPM8en5IjJCdLcI143G0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715014535; c=relaxed/simple; bh=8x0YoFdPnpa4eyC2JtajnfukkII3w7f6MlnDYzAmh5U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P+1mIdhJfxONXXQ/TfaT7rAkRYDBpITvK6W7r9e4Llj8pTozipTx/RtmWBk1ZGE9GOpLGOCN1UcFcNA8hcWm3MLgSKrn9eUCBRJpJfmkacFzz6H2QyDO8/3Un587HWPxDwmkuw4m3/zWlTSq7hVteOb3vk5FZ/srSPDjRHXMQOo= 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=HvN3kw2o; arc=none smtp.client-ip=185.125.25.14 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-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch [10.7.10.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VY6wg6TXZz7HN; Mon, 6 May 2024 18:55:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1715014531; bh=8x0YoFdPnpa4eyC2JtajnfukkII3w7f6MlnDYzAmh5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HvN3kw2on4Ivu/a3fGb/K/HmRLWW8BbwyHItuiI7aqeIgR7So2VwFeh0LYRHptNNH 8ct4V0Oa7pnvx5qoOLrcNVBCZ+9KEYFnYG4jdVtTSFKGiaGi1wIPI95Vzjf/odEtLa A4XrXc4IpU9bVO4k6Yqh7nQb8SXULYyZS/xkeZUY= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4VY6wg16g5zQt0; Mon, 6 May 2024 18:55:31 +0200 (CEST) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Christian Brauner , Greg Kroah-Hartman , Jakub Kicinski , Kees Cook , Linus Torvalds , Mark Brown , Sasha Levin , Sean Christopherson , Shengyu Li , Shuah Khan , Shuah Khan Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Bagas Sanjaya , Brendan Higgins , David Gow , "David S . Miller" , Florian Fainelli , =?UTF-8?q?G=C3=BCnther=20Noack?= , Jon Hunter , Ron Economos , Ronald Warsow , Stephen Rothwell , Will Drewry , kernel test robot , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v6 07/10] selftests/pidfd: Fix wrong expectation Date: Mon, 6 May 2024 18:55:15 +0200 Message-ID: <20240506165518.474504-8-mic@digikod.net> In-Reply-To: <20240506165518.474504-1-mic@digikod.net> References: <20240506165518.474504-1-mic@digikod.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-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha Replace a wrong EXPECT_GT(self->child_pid_exited, 0) with EXPECT_GE(), which will be actually tested on the parent and child sides with a following commit. Cc: Shuah Khan Reviewed-by: Kees Cook Reviewed-by: Christian Brauner Signed-off-by: Mickaël Salaün Link: https://lore.kernel.org/r/20240506165518.474504-8-mic@digikod.net --- Changes since v1: * Extract change from a bigger patch (suggested by Kees). --- tools/testing/selftests/pidfd/pidfd_setns_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/pidfd_setns_test.c b/tools/testing/selftests/pidfd/pidfd_setns_test.c index 6e2f2cd400ca..47746b0c6acd 100644 --- a/tools/testing/selftests/pidfd/pidfd_setns_test.c +++ b/tools/testing/selftests/pidfd/pidfd_setns_test.c @@ -158,7 +158,7 @@ FIXTURE_SETUP(current_nsset) /* Create task that exits right away. */ self->child_pid_exited = create_child(&self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET); - EXPECT_GT(self->child_pid_exited, 0); + EXPECT_GE(self->child_pid_exited, 0); if (self->child_pid_exited == 0) _exit(EXIT_SUCCESS); -- 2.45.0