Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1753785ybc; Wed, 13 Nov 2019 03:54:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz1q2hoemMc+zXhEU9eyegVWVtclznxYnluuX9f+ucfQtXG9D8MHXV8pmdYM+9788orGMuL X-Received: by 2002:a17:906:95c1:: with SMTP id n1mr2294555ejy.158.1573646049635; Wed, 13 Nov 2019 03:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573646049; cv=none; d=google.com; s=arc-20160816; b=oQScTnNwq4ts5dWt4Zv74F0uDcf+FXIKuYR6IthdW7X7I4cStmaGxx4+32EgxSeBrF YfL2ky2N945ad7y+G+lV3sOKI+fKKY5IZJjhb6AcBbqBPvLCRDynkzSWPIhsMup0EhXf leUllrPmAzziU5jheRVerCfMT9pIiLli3DsFdfa1wvvdM6X7kuGmbZ/PPNIb0pyX/rxn iGG++wqEWyjcPVkTsY2qfEbCf8nveX9OAIsZ5Fa5C8jI986xNz9J344GKsuZql4IgLqh 9m1qcvGQfmJwKxGlJSdtVIllrVkspQhn7TAwXHcoyay4DjFZU5952Wq0cAfD+Kk0Whnv HEOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kFFqqw3Ufa59nPQnO8AKe8pY9aTYmmOb+lK9fMEzTEM=; b=sjRF48HFizoX5Vz9TrDw6z6EHpwTpfSJp76GOL+zDsEzUtGqFcZyEi8BFrNPBpIQMZ B6XhbMBFgM/D7qCHA42OWmxRb1ZGY+Gh+nFHTpr9VHvYJ+tfsTv98gNPchXVU6sSQO7C TJDZxTVja4soETvqg6Q8v8Mad85h2AYZskz0Pj2CImt4J/bBRjK7P/M0KVqoaX60d8MC wwvPpnuqUNeSI1L7nRRmJlbF/3mN9rrEhN2UMGVh8UdTjhlV4IPS2MXC5mjC/6YiSPOd JNd8r0c4XLcx0VuEsYN7+o20PUnsjdWKhZJnme/n6MuO6Hlw//M63h3p+q8DBtvFoAWZ 5Lnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ix+CLznp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si954748edv.109.2019.11.13.03.53.44; Wed, 13 Nov 2019 03:54:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ix+CLznp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbfKMLwr (ORCPT + 99 others); Wed, 13 Nov 2019 06:52:47 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:47014 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbfKMLwr (ORCPT ); Wed, 13 Nov 2019 06:52:47 -0500 Received: by mail-lf1-f65.google.com with SMTP id o65so1679730lff.13 for ; Wed, 13 Nov 2019 03:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kFFqqw3Ufa59nPQnO8AKe8pY9aTYmmOb+lK9fMEzTEM=; b=ix+CLznpSQ1tLLZNz6RZCFgQPIdlVL5Q151AabB6uzzkATEHkpiVu9sFStKHPccleW PbED9WU5uFMaahVpLXgFur/D3fLr0bGcHOg8RFJA/WYt961ovBJ3uhiU6ZCpLNg/sE4R p+ANHITh49GCRGISYUr590QTEHKy5VhPju4bAkYic0G791xmPvDu5G9v2T1YxEB2tHoI D8OYSkKrJB4xwN0X0p8Cm594DYemIlXIxQhjW+v6kOX7pAJbB0mxJuuKacyfkiBcecOD daDXWjmeJVLUbFkfEeF2yWoIugHe+j1hv2+S5GscZ5fsfVTC/5BOqSN6sfqpkYa+ey9R 9t6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kFFqqw3Ufa59nPQnO8AKe8pY9aTYmmOb+lK9fMEzTEM=; b=AhkJKkh3EgxbfjBlopsOvWdTFj08TP/IovTzNCCd+wHYvWWajQpPYCouL+NTtXBW7G 4kZCn1Stg8aoiC60lHObmo+s/1ZZ8tQcclDOomxGEp6AYUH9UMy86mG3VYfUHtSxBgYV D8ONjZsHRYlHskisIkvuYFFaKnYWrlnztVvBgl5iGzBkYJrz/FYpVufCpzB568x28hsh jgEvbhy5W4QGmKr2R5EGahdUytHyJK8MrQRvyW5c9V56b5x8Y72wRuYU2mMA0GDaL0oc fLmHl2Vi8rc1EOcKpgp+yM80kti8UHxOlm9ow/fToqZ40o+AKOHEU91jBzpiRvAmXHtE YpQA== X-Gm-Message-State: APjAAAWZczTcmSxWuFOgUMEgRQY2Z8/tduAAJbgjyLy48V9vAB7AG0+9 1r0zk0Be/nmy98d/qa3vmBmJUsD7GjuDRScFVgQ48A== X-Received: by 2002:a19:9116:: with SMTP id t22mr2284983lfd.99.1573645965075; Wed, 13 Nov 2019 03:52:45 -0800 (PST) MIME-Version: 1.0 References: <20191011122323.7770-1-ckellner@redhat.com> <20191014162034.2185-1-ckellner@redhat.com> <20191014162034.2185-2-ckellner@redhat.com> <20191015100743.t6gowsic7c347ldv@wittgenstein> In-Reply-To: <20191015100743.t6gowsic7c347ldv@wittgenstein> From: Naresh Kamboju Date: Wed, 13 Nov 2019 17:22:33 +0530 Message-ID: Subject: Re: [PATCH v4 2/2] pidfd: add tests for NSpid info in fdinfo To: Christian Brauner 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, 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 - Naresh