Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1791545ybc; Wed, 13 Nov 2019 04:29:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyR5G1LUFPz8jxMguqk8at9iK2kYzs3iU4ni9+NkHMdmj7kva3ttFEbCFGvhY9CG2AW9ba+ X-Received: by 2002:a17:906:b80f:: with SMTP id dv15mr2521876ejb.188.1573648167541; Wed, 13 Nov 2019 04:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573648167; cv=none; d=google.com; s=arc-20160816; b=RXC2kCeo60Hp+K3t2RRY9+3Q49nNdChOd921YraCK4gZnYQwarGUWktNcqYHY2x9Ga Jy8ECoeD5uncBWcnrh0PEWPXzKR87cU496WypjIGANAm4cRA7QGnXFs5S9P+/cLIS/GE PUV89jfyLPriwdzWdbOPTQBaJiQaRqYmt0qCar6a7P89GtwNvpAKM8gcYa/zEH4HSvb/ 3hskGSohcV2SvFDq5f3DbtBurmowCgEtulPgKLM9XH/wUk3XO7qIxw+qnw6yePFSWXJ+ B7oLi8WLnh9aAZ5G+pq3C/fmQ/nQQTaq1vwqRcxj9XT+MLusQeadVypdiX9n39LrNxpn 5FPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PAS7hDLcrlcSEJkRmFNwFhgHDkZTpvMSF3J7f61wg00=; b=tQqJZKz8xagkvv+yiB1NjYAbU6dd1xCX8GuWLyJ1xSZuc9jjSQpJD/HVIM9d4wPJKT RrZEpWXcLpZpvmola+D841hWVo+9vN3MvzhACq33DO15hjNeCaOkO3MgtxuwEL1vXm/d ShCFGDZ19QHanG3JE/wfyWu1OahhPZdkjsUw3+PtvRSACsx6hcrmAVDJovTI7J+HrIZk +jYt/0WW/j44ymB02QcZ/qVMR1u4y98RVBrF3WOvyF/kufbrAvIR/2zjkGcTB6GnmXN0 zdgmi9C4rfO8M/3UAjFfBDXLgi94dv3RX/eE6dTbhW87AQCtWVY17bqZh/KyRmWZLx/F 5j4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si1113792edv.423.2019.11.13.04.29.03; Wed, 13 Nov 2019 04:29:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727137AbfKMMUI (ORCPT + 99 others); Wed, 13 Nov 2019 07:20:08 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:59812 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbfKMMUI (ORCPT ); Wed, 13 Nov 2019 07:20:08 -0500 Received: from [79.140.120.64] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iUrcy-0005VB-82; Wed, 13 Nov 2019 12:20:04 +0000 Date: Wed, 13 Nov 2019 13:20:03 +0100 From: Christian Brauner To: Naresh Kamboju Cc: Christian Kellner , open list , linux-api@vger.kernel.org, Jann Horn , Christian Kellner , Christian Brauner , Shuah Khan , Andrew Morton , "Peter Zijlstra (Intel)" , Ingo Molnar , Michal Hocko , Thomas Gleixner , Elena Reshetova , Roman Gushchin , Andrea Arcangeli , Al Viro , Aleksa Sarai , "Dmitry V. Levin" , "open list:KERNEL SELFTEST FRAMEWORK" , joel@joelfernandes.org Subject: Re: [PATCH v4 2/2] pidfd: add tests for NSpid info in fdinfo Message-ID: <20191113122002.5xrac2dwmeavdwnw@wittgenstein> References: <20191011122323.7770-1-ckellner@redhat.com> <20191014162034.2185-1-ckellner@redhat.com> <20191014162034.2185-2-ckellner@redhat.com> <20191015100743.t6gowsic7c347ldv@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 05:22:33PM +0530, Naresh Kamboju wrote: > Hi Christian, Hi Naresh, [+Cc Joel since this is _not related_ to the fdinfo patches but rather the polling tests] Thanks for following up here. See for more comments below. > > On Tue, 15 Oct 2019 at 15:37, Christian Brauner > wrote: > > > > On Mon, Oct 14, 2019 at 06:20:33PM +0200, Christian Kellner wrote: > > > From: Christian Kellner > > > > > > Add a test that checks that if pid namespaces are configured the fdinfo > > > file of a pidfd contains an NSpid: entry containing the process id in > > > the current and additionally all nested namespaces. In the case that > > > a pidfd is from a pid namespace not in the same namespace hierarchy as > > > the process accessing the fdinfo file, ensure the 'NSpid' shows 0 for > > > that pidfd, analogous to the 'Pid' entry. > > > > > > Signed-off-by: Christian Kellner > > > > That looks reasonable to me. > > on arm64 Juno-r2, Hikey (hi6220) and dragonboard 410c and arm32 > Beagleboard x15 test pidfd_test failed. > and on x86_64 and i386 test fails intermittently with TIMEOUT error. > Test code is being used from linux next tree. > > Juno-r2 test output: > -------------------------- > # selftests pidfd pidfd_test > pidfd: pidfd_test_ # > # TAP version 13 > version: 13_ # > # 1..4 > : _ # > # # Parent pid 10586 > Parent: pid_10586 # > # # Parent Waiting for Child (10587) to complete. > Parent: Waiting_for # > # # Time waited for child 0 > Time: waited_for # > # Bail out! pidfd_poll check for premature notification on child > thread exec test Failed > out!: pidfd_poll_check # > # # Planned tests != run tests (4 != 0) > Planned: tests_!= # > # # Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 > Pass: 0_Fail # > [FAIL] 1 selftests pidfd pidfd_test # exit=1 > selftests: pidfd_pidfd_test [FAIL] > > arm32 x15 output log, > ----------------------------- > # selftests pidfd pidfd_test > pidfd: pidfd_test_ # > [FAIL] 1 selftests pidfd pidfd_test # TIMEOUT > selftests: pidfd_pidfd_test [FAIL] > > x86_64 output log, > ------------------------- > # selftests pidfd pidfd_test > pidfd: pidfd_test_ # > [FAIL] 1 selftests pidfd pidfd_test # TIMEOUT > selftests: pidfd_pidfd_test [FAIL] > > Test results comparison, > https://qa-reports.linaro.org/lkft/linux-mainline-oe/tests/kselftest/pidfd_pidfd_test > https://qa-reports.linaro.org/lkft/linux-next-oe/tests/kselftest/pidfd_pidfd_test > > link, > https://lkft.validation.linaro.org/scheduler/job/993549#L17835 Note, that this failure is _not_ related to the fdinfo and NSpid patches here. It's rather related to the polling testing code that Joel added. Iirc, then it is timing sensitive. I'll try to make some room this week to look into this. Christian