Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1695899lqm; Fri, 3 May 2024 04:00:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFmNLdhnhrtamjXjL1o3pEFO4ng9XBGoXbxwMfS/dTkgINtDEF+X+HZvp0IomuN7/eO8R1HBYk3j1QORH63c5I9eW00ZXK9w57qFY9RQ== X-Google-Smtp-Source: AGHT+IE/jEzGE6BKtWAjgsRytwMK75ea1YZWFdt9oBVayaRurlkauUbilZ1Sv/P4U0C9igTMAuam X-Received: by 2002:a17:907:3592:b0:a58:8ca9:da04 with SMTP id ao18-20020a170907359200b00a588ca9da04mr1341091ejc.64.1714734030857; Fri, 03 May 2024 04:00:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714734030; cv=pass; d=google.com; s=arc-20160816; b=zrGcCuGfrOdYBKh5xD/YnhW3zMRScXropb4EVXvEL1f+H5IhDJZ9Aqp4G+a2nIp3dk LDQp6o+0n9EDt3MfoU5sSWsJaTWi2eElvousCZQ5sBjc+s4HeJs1jZfK61EMeqZ79Vce 01nZVkxz4nvIP4uJLZX3mKiBqDK5uUyWFZubSWcb6vm/q8sEDRYneB3BDhVeeKhGBH3O GVYnnF75N7219h6LuIKevq8U+zxKm0q31ojeTymLKfhGNOmpxbXF75CGzcLGFz8Cto1E wp4Fqh+LRU3GfD1kShib2lzVXQ4gTEPI02OqF2+AUmBt46eQpEFFiQ6aVKP9F8ucBN7j 69TQ== 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=QQl3/jMryxlO05ZUIeqjE3eHej8F3Dx89371lRunx+s=; fh=pFOGWyS68KwrsEZD3Ll2e7y6RwSNe0VchkTs/n9iysY=; b=By1eQL/OyPT3jymB8Y/0uAnWh78EiNo7pv984ObJnfNUWsZ0Oox3x1SA5EoenDE98D QW2aRjvet5TiGQpVHKsMEjUz9B1TWhlx4fQS9qkH/QxQByVA8NqwRY2ospkCXPkHtQS5 wuIstmmt8GvStqItWlBRSXD7qCEqqSVXclma/juSajy7Z7N0EwLjhxNXFI16mKkKo4o3 G+40vIcrWXJYybNy+HUfNbnhGsmQmwMwexZo80utdFrNRS89nhlNk4trDfmtMHATeJVj VidMuKA3QnfRUoNGO22Pgpi51KmTqNDJOcOn/TLlnYyUuML1b9ut+gHQDk1WJttQu/A+ OnqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=v6T8rKzp; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-167553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167553-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 wv1-20020a170907080100b00a55bb1872desi1522304ejb.643.2024.05.03.04.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 04:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167553-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=v6T8rKzp; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-167553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167553-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 941331F22B81 for ; Fri, 3 May 2024 11:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF808154BF4; Fri, 3 May 2024 10:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="v6T8rKzp" Received: from smtp-8faf.mail.infomaniak.ch (smtp-8faf.mail.infomaniak.ch [83.166.143.175]) (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 C2784153813 for ; Fri, 3 May 2024 10:58:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.166.143.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714733923; cv=none; b=R/sLypRTpLvdUXsATE9jNrUL0oeAUIA4c6YSCeTaY3fyIBF0qRlxdtSIq7rd9Tn1tz/Qtt1rwwzoxMPoMukWIVZ3/w3TFvygfoUmZux+2PcdYgUvlmn9vipWVq39DXLecK0XH+FNteySztU6Z6dAPs6VnJrYrHmzcZpu4UrVm5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714733923; c=relaxed/simple; bh=1L5PPLpNTzXpbKkNGS4y+eTSJHkTUDhusf1GwO2k4hM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KZxQIUxBhcfYVRuda1kFM2FsBnbbNxxYXAi/+ziewVVojEHRqdl2PNTsBKIyxWRjIMIJSVyXocGi7qA0qa3qLcBvZxFSkHTvMVlVPZZH57PICUs1mNPXTksZWlTY4KgfZLHM7SNJY2uED/AeCARJaSxyunkuxBYVo/oTTvxEMO8= 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=v6T8rKzp; arc=none smtp.client-ip=83.166.143.175 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-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VW78G56DxzBk6; Fri, 3 May 2024 12:58:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1714733918; bh=1L5PPLpNTzXpbKkNGS4y+eTSJHkTUDhusf1GwO2k4hM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v6T8rKzpboKz4tC0UZH35bSt6WfIQeZkvc17Jm8vjjuiCz9bHb/JwZHP5K51pXp7v c4UgxyP3chVd6l8CTz2RWkRPtw/G1rVmTqLpzqm5LSPFJ8PmyJC5JxRolu4MRzNRZn ALOj4v07MgEp7cm/Wz95DkEAwsaI5Afz08jVidIo= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4VW78G0lhNzV4C; Fri, 3 May 2024 12:58:38 +0200 (CEST) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Christian Brauner , Jakub Kicinski , Kees Cook , Mark Brown , Sean Christopherson , Shengyu Li , Shuah Khan Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , "David S . Miller" , =?UTF-8?q?G=C3=BCnther=20Noack?= , Will Drewry , kernel test robot , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, Shuah Khan Subject: [PATCH v5 07/10] selftests/pidfd: Fix wrong expectation Date: Fri, 3 May 2024 12:58:17 +0200 Message-ID: <20240503105820.300927-8-mic@digikod.net> In-Reply-To: <20240503105820.300927-1-mic@digikod.net> References: <20240503105820.300927-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/20240503105820.300927-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