Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5533939rdb; Wed, 13 Dec 2023 11:18:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDQKkTzCI6Syab9e7R77E2NXH2E+1e4TtePbVcQZVIDUKSqZfk7TJ/HGbD+E2z8FEzos++ X-Received: by 2002:a05:6358:52c2:b0:170:e12b:c73f with SMTP id z2-20020a05635852c200b00170e12bc73fmr4397297rwz.52.1702495122922; Wed, 13 Dec 2023 11:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702495122; cv=none; d=google.com; s=arc-20160816; b=Yll5t+JhR8PYQRsfpvt/fLMWyaf2bIKfNFpwRJ2lCMWoD4WiORPNA7sGB8CDGFe1Za /+PSqveflwTNbQv8iH9lKwiaVKC8BZ1lsAh+kBs+8O9D1UcVRlqwbhMNlhBvPqjlSWHs BLlMUe7YMVgBG5PU2X10sx2rs2eNqvRzasmz9kf1yNWJogQt2qFjrNjNzpmvIVfKYB1T 2WIQz+fqpMBNpvqY2UluwzrWChAXpaiyMJlC2ikzuykwi02vBZbojCnqriQkUKTW0blT SgJA3VNxc15l3FGhZJ8/qAqjLtU5m8pJpdBRgFSjJEiNZlB/43SVbBnXX3cN+AtGF5mv B0Ow== 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:feedback-id :dkim-signature:dkim-signature; bh=rTKNnsrQRMnS8HXpSk58pANoO1SStG84VUsz7kfxXxM=; fh=dxn4pakHDNe8vf3BJf0b+ChWBZrimswTKBvKWGXHfr8=; b=Uo0bXe+h3qTa+PQabRNdW39D9LT5LqxKFezIIAbvwgsXT9LNpJLIPvZpBhYyh3CJvV OWXZ6S7kssEbWE0EsJ+DFpUsvqAgrb1Wdt2C7YR45S5V3uJIFj0ivhbidSNGGUwIj8b7 cKyhpbMRPx9+9dHgneuN8meNU+M6P5eRy98t3JiXmeSrwB7/v6+HMdyFlmt5u8f5ZrYi 7nemP7gV9n8WIWH00CVmwi5u70eKN+HEwbXgChFW2AkPpQarlK5UELiJDgdmxthYdakp jVXtB55exkXUuv1Sb8tSuUuIRpPvpp+1KViBszZR6aa4tTjtikjZOR7gIAk0YMsVcc7W MNbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm3 header.b=ClLqg68g; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Owk85+cJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z24-20020a656118000000b005b8ddb9c305si9563019pgu.30.2023.12.13.11.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:18:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm3 header.b=ClLqg68g; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Owk85+cJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9A6F380309DF; Wed, 13 Dec 2023 11:18:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442105AbjLMTSb (ORCPT + 99 others); Wed, 13 Dec 2023 14:18:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233820AbjLMTSa (ORCPT ); Wed, 13 Dec 2023 14:18:30 -0500 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3931899; Wed, 13 Dec 2023 11:18:35 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 3BD0E3200A87; Wed, 13 Dec 2023 14:18:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 13 Dec 2023 14:18:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1702495111; x=1702581511; bh=rTKNnsrQRM nS8HXpSk58pANoO1SStG84VUsz7kfxXxM=; b=ClLqg68gARRSVfy2COP9A3lr0P Ir1J775L5oC6BkvE5DBCMFzJC/Kg2zPBJ6wRG5CsaeUIqWhVMgUSNb1YID/143+w vSzoFS7WvI34FBktKH/F5/X4n5k7iHsSkfXvR9Tlg7IDuEleNhh9YiE/obYVmA64 fTMqxBHGKbuFELGM89Ztty8EZQJOsUTEur3P8RSlkVZECovtH6hVCFvj9v69wAUH V6hKoKy2eN4TQDZB3PL7dxs2uZcoge/5H895xcRA7gktmWrgh3/eG88TcfF+vBca LqZg7E6WagrSttnVqUJoTWSOaYW55luK1a1MY+h6VF2lhTaWiW4eCOvF2pFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702495111; x=1702581511; bh=rTKNnsrQRMnS8HXpSk58pANoO1SS tG84VUsz7kfxXxM=; b=Owk85+cJNwk+wQvXcZB7S38pZKIpiNd7oMm5ZjXlCYt2 X1afxwu1nvbz4jViVwLAYKhPhMAxwglo3vGuv/ZwTipJZCusYy6YGGWIa8E7dZSu ejei6gRs5rvrCwmia0r4emvPf5OMrSvSkdddKvVnRxqZyNZ9KYZ5MpmeXLo8H3yw Aiuy2P3cCC2/eHH6DoUVoY7oxwig2WtbKBf94GpS7Q8pvqv4S5sDESafxaN9RBGM ZRiyWd9F18ThbJbrqbW1/XG0BBD7xHRYrU39xohMF43/Pevhy/7OUw0ykHxPuXcp 4RfiNMyvpUUoRtGQFDKDuHvFedvdivWmtpGwod1J2Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeljedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghh ohcutehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrf grthhtvghrnhepveektdeihedvgeeffeejgfduheekheeiledtvefhuddtgeeftdfgudek jeevhfetnecuffhomhgrihhnpehpihgufhgupghtvghsthdrfhgrihhlpdhgihhthhhusg drtghomhdpkhgvrhhnvghlrdhorhhgpdhpihgufhgupghpohhllhgpthgvshhtrdhfrghi lhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthi gthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Dec 2023 14:18:30 -0500 (EST) Date: Wed, 13 Dec 2023 12:18:28 -0700 From: Tycho Andersen To: Christian Brauner Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Oleg Nesterov , "Eric W . Biederman" , linux-api@vger.kernel.org, Tycho Andersen Subject: Re: [PATCH v2 1/3] pidfd: allow pidfd_open() on non-thread-group leaders Message-ID: References: <20231207170946.130823-1-tycho@tycho.pizza> <202312111516.26dc3fd5-oliver.sang@intel.com> <20231213-famos-chillen-41adc67ac0ef@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213-famos-chillen-41adc67ac0ef@brauner> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 11:18:41 -0800 (PST) On Wed, Dec 13, 2023 at 01:18:03PM +0100, Christian Brauner wrote: > On Mon, Dec 11, 2023 at 03:28:09PM +0800, kernel test robot wrote: > > > > > > Hello, > > > > kernel test robot noticed "kernel-selftests.pidfd.pidfd_test.fail" on: > > > > commit: e6d9be676d2c1fa8332c63c4382b8d3227fca991 ("[PATCH v2 1/3] pidfd: allow pidfd_open() on non-thread-group leaders") > > url: https://github.com/intel-lab-lkp/linux/commits/Tycho-Andersen/selftests-pidfd-add-non-thread-group-leader-tests/20231208-011135 > > patch link: https://lore.kernel.org/all/20231207170946.130823-1-tycho@tycho.pizza/ > > patch subject: [PATCH v2 1/3] pidfd: allow pidfd_open() on non-thread-group leaders > > > > in testcase: kernel-selftests > > version: kernel-selftests-x86_64-60acb023-1_20230329 > > with following parameters: > > > > group: pidfd > > > > > > > > compiler: gcc-12 > > test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz (Cascade Lake) with 32G memory > > > > (please refer to attached dmesg/kmsg for entire log/backtrace) > > > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-lkp/202312111516.26dc3fd5-oliver.sang@intel.com > > > > > > besides, we also observed kernel-selftests.pidfd.pidfd_poll_test.fail on this > > commit, but clean on parent: > > > > bee0e7762ad2c602 e6d9be676d2c1fa8332c63c4382 > > ---------------- --------------------------- > > fail:runs %reproduction fail:runs > > | | | > > :6 100% 6:6 kernel-selftests.pidfd.pidfd_poll_test.fail > > :6 100% 6:6 kernel-selftests.pidfd.pidfd_test.fail > > > > > > > > TAP version 13 > > 1..7 > > # timeout set to 300 > > # selftests: pidfd: pidfd_test > > # TAP version 13 > > # 1..8 > > # # Parent: pid: 2191 > > # # Parent: Waiting for Child (2192) to complete. > > # # Child (pidfd): starting. pid 2192 tid 2192 > > # # Child Thread: starting. pid 2192 tid 2193 ; and sleeping > > # # Child Thread: doing exec of sleep > > # Bail out! pidfd_poll check for premature notification on child thread exec test: Unexpected epoll_wait result (c=0, events=0) (errno 0) > > So it seems that this broke multi-threaded exit notifications. Yeah... I've been trying to figure out how to fix it. de_thread() calls release_task() for the original leader, which I didn't realize. Tycho