Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2455488pxb; Fri, 29 Oct 2021 01:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1+RZqOeSXRzpdqQ7u2/PVI3VJONr2ofUDT6K2D8Pn2wbwsqLztqZy44iYA3zhGyi//eG0 X-Received: by 2002:a05:6a00:134e:b0:47c:2e54:a0cb with SMTP id k14-20020a056a00134e00b0047c2e54a0cbmr9489858pfu.54.1635496454464; Fri, 29 Oct 2021 01:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635496454; cv=none; d=google.com; s=arc-20160816; b=vctAhZ/263TLb5u2euddLetkMeChEw7zK85RKFaVZg/++0Q6KEN3hbAACARyup50zK yhEOuC7D4iwKPTJPFJ0Dj4Gph4p+wKJUNqXyIijxf6rl9ZsHAZiaGeRvhU4LIXiGcap7 J+c8JYhRkTqRE4gmgaSBY4Pm2vtepmw2Q/0EDJ0R3fYUSrrWOtx8Wl2tMu2EeCYEyJZE JPxW/HaEP5wqBSmiLWCyIpLaiVAc2Oz/O4HaP+c6B1RHsB9m0wgXNzf7kfFpr6wc4Ulm uJ7woJTOhDCbSLfCJvXvPZT+D+ZSOujijRSawpUdC7gOuU2cUFzIoZ44981349BTuihW 5Ppg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KQ5gwQHHBsApweuUfvn/u+GpnN337vf/8ajrbvzpFYY=; b=cESc9m3OSMQDG5jIGcaGYXtYkO9iWDU0XKu+4dGB3OTnTsjeOJl6RLyxHcZsd/3YKu aIcZprXGJL/1xV/TlpAEsxvps6r7Ptf9AxNz9xx91wXGL2wp5kz/NqR+eL2D/4d3xKGY talkhFCJ0N6fq9Ponbj++mUq0idEH20SDC1A9Xew2TyJUJZjUkpRFE9e2JZktrzwlvsz PwvbceTD/UCYL/kp0dH/ZeQCJf9AJyA5se1701KVgBzMZ5xb6KZRjKKtUaNmLvZElU/X L6WaRqxs2rDJn2Z8zRmvQsWMy/QsCefZAEgXtZrBJ12x3ZAE/WW1v92FAmPDt2HR83fi Qfxg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si6974270pgm.193.2021.10.29.01.34.01; Fri, 29 Oct 2021 01:34:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232468AbhJ2IfY (ORCPT + 99 others); Fri, 29 Oct 2021 04:35:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:44388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232313AbhJ2IfW (ORCPT ); Fri, 29 Oct 2021 04:35:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 05B3E6115B; Fri, 29 Oct 2021 08:32:51 +0000 (UTC) Date: Fri, 29 Oct 2021 10:32:48 +0200 From: Christian Brauner To: Li Zhijian Cc: linux-kselftest@vger.kernel.org, shuah@kernel.org, linux-kernel@vger.kernel.org, Christian Brauner , Philip Li , kernel test robot Subject: Re: [PATCH 2/2] ksefltest: pidfd: Fix wait_states: Test terminated by timeout Message-ID: <20211029083248.7vttuxbwbtdylrnq@wittgenstein> References: <20211029024528.8086-1-lizhijian@cn.fujitsu.com> <20211029024528.8086-2-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211029024528.8086-2-lizhijian@cn.fujitsu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 29, 2021 at 10:45:28AM +0800, Li Zhijian wrote: > 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 > --- Not a fan of the usleep() solution but if it fixes it it's fine for a test, I think. Acked-by: Christian Brauner