Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2241414pxb; Thu, 28 Oct 2021 19:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM8HnrejuI8LIjgoFcA7IVFSivHX1PMtT44zrG0hFHbH70/+ZdrieHV2QmHkoonC+aAgo0 X-Received: by 2002:a63:7e42:: with SMTP id o2mr6102736pgn.296.1635475660451; Thu, 28 Oct 2021 19:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635475660; cv=none; d=google.com; s=arc-20160816; b=IPxfumjdk1DoOAcDs4kTOugs1Nqt0rV2Lhm4uAGPVk/w6r+KaWWJk/gwBNtdR53tZC jcjrhMokEz39bcEx4z4FPdpUBcTQuGyesDYSVcaTxJW+I/3v764QMKw4C/opnmhfdV4k QtqoHyuWVLOLirMylgj2MyKsTDfDVeWtm6TXxDV3uydW5KHpinQx95iAe8nYblp2D8/5 RCa7iYNln04/S3GBLBiK/2i3MAIrAAvkJOet3m1mIi9trBVg0+N0DSdL3/AUGLtuRjWn I04jM101707hD9Rd6XZNl4nYVxj4NFqezk6512B2slX0FqyesNoFVwMUeOnIURNZ9BIo za2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-hdrordr:ironport-data; bh=qasCmFCpl5Xu1fI4AKp1ci+9gF3E+4Is1PZAq5nbh8k=; b=lJdshng0+FXGpxU9h7AahklmixUtKKpUZ4SaMTLqFvVZVf4SpQzeund36kpy3vIJQe 8E0QVCYW+Vu0B1D7o36/aD3RA5SUi57TmDL39FzGLhVy2GcBm+GYlqAvl2XWQQJC/XSs 4bq+miRNo9Uz/YhoqznrQFi1vyUtFQRfIrpj6LG2r7R+djuoZojFyMEZyXrOQ63tJpSH fZ0W7Q5F8P2S0QtdEEMS7YEKRsTvP7EUXjzLToglxsrEWpZF5us47caAi4YoHQ+OJYM7 JBAu4C1YDucEjlTN2hxYLLwzkXb1maNIoIaQo04C7wf+qZAS4/VUwpyl5+hfISm/CNRU 4XcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w185si5486583pfb.340.2021.10.28.19.47.27; Thu, 28 Oct 2021 19:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbhJ2Csp (ORCPT + 99 others); Thu, 28 Oct 2021 22:48:45 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:36610 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231348AbhJ2Csp (ORCPT ); Thu, 28 Oct 2021 22:48:45 -0400 IronPort-Data: =?us-ascii?q?A9a23=3AGYcfUat4ylTs3oZKa2wRdCQm3ufnVNpcMUV32f8?= =?us-ascii?q?akzHdYEJGY0x3xmAYUWqHO/mDZjbxcop1O96180oCvp/dmIM2QQdoqyxgHilAw?= =?us-ascii?q?SbnLY7Hdx+vZUt+DSFioHpPtpxYMp+ZRCwNZie0SiyFb/6x8hGQ6YnSHuClUba?= =?us-ascii?q?eangqLeNZYHxJZSxLyrdRbrFA0YDR7zOl4bsekuWHULOX82cc3lE8t8pvnChSU?= =?us-ascii?q?MHa41v0iLCRicdj5zcyn1FNZH4WyDrYw3HQGuG4FcbiLwrPIS3Qw4/Xw/stIov?= =?us-ascii?q?NfrfTeUtMTKPQPBSVlzxdXK3Kbhpq/3R0i/hkcqFHLxo/ZzahxridzP1JtI6wS?= =?us-ascii?q?AUoN6vklvkfUgVDDmd1OqguFLrveCHh7JLDnhKZG5fr67A0ZK0sBqUT+vx2Gn1?= =?us-ascii?q?P/PowIioEcxaOnaS3x9qTTup0rsUlMMTveogYvxlI1THYCfc+B5TCa6TM+dJcm?= =?us-ascii?q?jw3g6hmBvbDbsoxajd1ahnEJRpVNT8/DJM4gffthXTldTBcgEyaqLBx4GXJygF?= =?us-ascii?q?1lr/3P7L9ft2MWNUQnV2Vomza8n/lKg8VOcbZyjef9H+owOjVkkvGtCg6fFGj3?= =?us-ascii?q?qcyxgTNmSpIU1tLPWZXaMKR0iaWM++z4WRIksb2kZUPyQ=3D=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AlNLi+6rTErvUOvz5V1s6yKEaV5rPeYIsimQD?= =?us-ascii?q?101hICG8cqSj+fxG+85rsyMc6QxhIU3I9urhBEDtex/hHNtOkOws1NSZLW7bUQ?= =?us-ascii?q?mTXeJfBOLZqlWKcUDDH6xmpMNdmsNFaeEYY2IUsS+D2njbLz8/+qj7zImYwffZ?= =?us-ascii?q?02x2TRxnL4Vp7wJCAA6dFUFsLTM2fqYRJd6N4NZdvTq8dTAyZsS/PHMMWO/OvJ?= =?us-ascii?q?nlj5TjCCR2fSIP2U2fiy+y8r7mH1y91hcaaTlGxrAv6izkvmXCl92ej80=3D?= X-IronPort-AV: E=Sophos;i="5.87,191,1631548800"; d="scan'208";a="116568977" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 29 Oct 2021 10:46:16 +0800 Received: from G08CNEXMBPEKD05.g08.fujitsu.local (unknown [10.167.33.204]) by cn.fujitsu.com (Postfix) with ESMTP id B88604D0F910; Fri, 29 Oct 2021 10:46:12 +0800 (CST) Received: from G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) by G08CNEXMBPEKD05.g08.fujitsu.local (10.167.33.204) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 29 Oct 2021 10:46:07 +0800 Received: from FNSTPC.g08.fujitsu.local (10.167.226.45) by G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Fri, 29 Oct 2021 10:46:07 +0800 From: Li Zhijian To: , CC: , Li Zhijian , Christian Brauner , Philip Li , kernel test robot Subject: [PATCH 2/2] ksefltest: pidfd: Fix wait_states: Test terminated by timeout Date: Fri, 29 Oct 2021 10:45:28 +0800 Message-ID: <20211029024528.8086-2-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211029024528.8086-1-lizhijian@cn.fujitsu.com> References: <20211029024528.8086-1-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-yoursite-MailScanner-ID: B88604D0F910.AD04C X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com X-Spam-Status: No Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 0Day/LKP observed that the kselftest blocks foever since one of the pidfd_wait doesn't terminate in 1 of 30 runs. After digging into the source, we found that it blocks at: ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WCONTINUED, NULL), 0); we can reproduce it by: $ while true; do make run_tests -C pidfd; done a delay to ensure that the parent can see child process WCONTINUED. CC: Christian Brauner CC: Shuah Khan CC: Philip Li Reported-by: kernel test robot Signed-off-by: Li Zhijian --- tools/testing/selftests/pidfd/pidfd_wait.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/pidfd/pidfd_wait.c b/tools/testing/selftests/pidfd/pidfd_wait.c index be2943f072f6..5abd26da4caa 100644 --- a/tools/testing/selftests/pidfd/pidfd_wait.c +++ b/tools/testing/selftests/pidfd/pidfd_wait.c @@ -107,7 +107,9 @@ TEST(wait_states) if (pid == 0) { kill(getpid(), SIGSTOP); + usleep(1000); kill(getpid(), SIGSTOP); + usleep(1000); exit(EXIT_SUCCESS); } -- 2.33.0