Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1348291lqa; Mon, 29 Apr 2024 06:17:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQAOy7MibiRKYOoIeANZxn9SdfQY7NPdOrJwmqr1vFYD5QuaJ8/exeZm9rpLiriTpCHBz4Zr6Ggnjh64eD4B2Wpq9iQVxXDOs+6NXs4w== X-Google-Smtp-Source: AGHT+IH+9qVzMaYwqv7pVI4OnMyhwluUzVgBIjP1acER+/dNzPvjZl/tY8vGRUUkgXCCaYRuezc2 X-Received: by 2002:a17:903:2312:b0:1ea:964f:9b0b with SMTP id d18-20020a170903231200b001ea964f9b0bmr11064809plh.5.1714396624896; Mon, 29 Apr 2024 06:17:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714396624; cv=pass; d=google.com; s=arc-20160816; b=Yyk2tY3gcUQRccR61PEZzUFuEELAtfGMZm3qJC/6j21la+T0vjPBX+DS0k0S2ABA+6 aDtsC3Lf2cHty24JsuVL5G9WofjHttc9O1zle6OqjLZhyCMRrW2nug31ESzFwbpuN6y7 kmU8c1bUEnZdeQWBapjiVtoU2CiIv8QHv8x720JXo+AHOJk5a5jkhOY270YqvSkYJj5c JMUFeS9hdI1CmeQhMwzZ5NEaxCZQJtzKF3bHT+wB/tR5eGXpIACigaSOvEw2J8Y+1DPN xh15QXJhBQEwRBKblga4hJ6BokG5HCWBBig1v3iTUzdQOZHhrS06gHbL9OOIPJGx89ML 326A== 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=RKO+aEecjp0qyX/Nj9Q0jeOHxMqpwa/ekHMExUA6b20=; fh=T/ngxZ/rchirObc+ozpAMGxUCKvTk1uHXxRS2gfk1OI=; b=GuqAHb5ouHPSM+v2o8veGv67z/HzqJXfdyVidAOWLudwwJvrBQawvHDgF2+PHh6QLD dHP/emz2fu62mlKf+V3dQJXVoS0nBoKSsnJM9QA9JJIwsVJa0u3I9ri/NwumQJNYhiM+ 3IEFCDWCJFPWm5kCXmbbw0/E4NThhZ6eowTtJsJIh6C9T600SOTreyR0kk4vyk8uV/iF aPulCZ4CT4NgZh65LtxJ5AEz4Xnx0kH0d48vt3VSCPs6QnnHYZYzUASimRL48QMJIaer c8+gKPpgdWf6/877QDSreu35V4A2PQe23/VVaOtSQDmObBLwmQCdf4vHMRYQa68FjM6d Wmng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=KnWg7xma; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-162329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162329-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k6-20020a170902d58600b001eb2f260f5bsi4997331plh.83.2024.04.29.06.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:17:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=KnWg7xma; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-162329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162329-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EFA728C469 for ; Mon, 29 Apr 2024 13:10:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14936C2C6; Mon, 29 Apr 2024 13:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="KnWg7xma" Received: from smtp-42ae.mail.infomaniak.ch (smtp-42ae.mail.infomaniak.ch [84.16.66.174]) (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 96310548EC for ; Mon, 29 Apr 2024 13:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714396189; cv=none; b=siHpLVinitpAKVWTmfelMiM8uCwqjRVEx1VPjimxgwT8HAhH47NVhOzBjIvNdVi7C7H11LzzcXZTJqbrme7aYJRo9ogpA8vPpo39GnnEJHxG611IjR4XGl5Mn8d0YDr3RTwnIk+By9RHhft0pwwMtdWorJomEPckRyCTTBvPWYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714396189; c=relaxed/simple; bh=Di4akVdlawrQeihQeWvBuO2Ker/fO5bz8gIl7ebo7+0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NT0yjSpA4qJF+ZayHOTAUV/0PkfPOpq/YQAj2Wo63z1m12qWkUbND88RyXKh5xUYVg6ukq3cn0AA4BWZP+FhShUlATVphvbdV4w0xEEnsVuIaUNOSJM2S6hhLTiECZub676grsEjQP/EOpk/eQ4hIziuun7tfxcfrIukCueiEPA= 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=KnWg7xma; arc=none smtp.client-ip=84.16.66.174 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 4VSkFQ0FjFzMBH; Mon, 29 Apr 2024 15:09:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1714396185; bh=Di4akVdlawrQeihQeWvBuO2Ker/fO5bz8gIl7ebo7+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnWg7xmaA/WSCfeQer8yQA8Ja+kFqo5w85K2OSiDfGMQ4vk4j83Ocd5sFBqsrkmu6 nQbqAl2l1SlXlOmAwXg/389g5tywq+JinV9TRTwZTCuaXIpVHnXwYSAAwdFcAfgWv6 BRT5CEy+y3wwx85GktGkCE1YrbkjqXxeXnWMY63c= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4VSkFP3RVpzKTX; Mon, 29 Apr 2024 15:09:45 +0200 (CEST) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Christian Brauner , Jakub Kicinski , Kees Cook , Mark Brown , 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 , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan Subject: [PATCH v2 7/9] selftests/pidfd: Fix wrong expectation Date: Mon, 29 Apr 2024 15:09:29 +0200 Message-ID: <20240429130931.2394118-8-mic@digikod.net> In-Reply-To: <20240429130931.2394118-1-mic@digikod.net> References: <20240429130931.2394118-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: Christian Brauner Cc: Kees Cook Cc: Shuah Khan Signed-off-by: Mickaël Salaün Link: https://lore.kernel.org/r/20240429130931.2394118-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.44.0