Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8056709rwb; Wed, 23 Nov 2022 14:56:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HoQLFUEeNUWpSlyUQa3AzwojI3w5u8BueJ2Lo+v5kuKOdH3azUiIlqlTokMag2/dr8dUH X-Received: by 2002:a17:906:cc8f:b0:78b:8ce7:fe3c with SMTP id oq15-20020a170906cc8f00b0078b8ce7fe3cmr25299697ejb.557.1669244187870; Wed, 23 Nov 2022 14:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669244187; cv=none; d=google.com; s=arc-20160816; b=bRSqL3ZNOj3vHCc09g4QZrLgQuBAY2Wb+8gfn9IZf5Omohb8uTWRC5Coi4PDdpQEyk Rgu3qCdLX7o18hXysK3W4byDoV9evXeQAKhGk8dkKCkKE4kCTVhqzoSM+RCjdg07swEg Ih4t3MAfhyyk9mREt1jjYY/t5/FaZEYUkVfpUCxNqh7MgsM7lZi6MWPrN9CWvuwjZgLC cGtPQjPS0UBM5Dq2C7jEytFYq64NJ2Y3WzE0sgozXaEX4TwBgbNTYzbWg/gNnLi/GQ7c D6IA0pOX+K7IoTsuTlG7lkWESXRiU5/xx9P4XtdeOVkLdXkkXedkNixE7u1DvyvV34ri TdIg== 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:dkim-signature; bh=AxLEX/Kgo4/nc5lKj65z5sizsM5gUkYyocYoGND3Hmk=; b=CQWqs3fyI2GprOlNzyE2rYP5l+s0KcV8/30JWs2ICMieJvFrVElc1l8uEjX+SN0i2u lLm10zUAglY1+Kl0xaPV7HZ4Etl/nc43KUAowlL2Vgrwcaf+Sn16PpSARN3dXcUOcfD2 KR0pnVlFqClcIvAQ7JB2tZp0M2qiTHXZBaS/0vfY6Qo0lT1S6lcgmjd4apxEYeOBAZQI 9R8H71MFfm0XFkjHYv6bWxX2ismnmpmU5Wkk7un8tT1VKp3KuQnqg0bMjeEaS9rBRZeN uRxKoA8J8fzScc1ZLFbPxAfFeT9ftNswRdM/1DAe+7EqVaZJNbPQ+0AtKrQ0JvWa3Wtg qUgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=itKRR4Ub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be1-20020a1709070a4100b0078d38cda44bsi809672ejc.694.2022.11.23.14.56.06; Wed, 23 Nov 2022 14:56:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=itKRR4Ub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232312AbiKWWHC (ORCPT + 88 others); Wed, 23 Nov 2022 17:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232370AbiKWWGz (ORCPT ); Wed, 23 Nov 2022 17:06:55 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CBC06587C; Wed, 23 Nov 2022 14:06:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 810BCCE27E9; Wed, 23 Nov 2022 22:06:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52F05C433C1; Wed, 23 Nov 2022 22:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669241211; bh=/7dPPWDOLt3RfGahyD2/fSmkAD12JNWT03DPRG4zap4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=itKRR4UbhhfOorTMdNKR6cKqlxN4HUuuVzot0BrOYtejLBZgcCrd+5LIwpAkhNdXf mvPMzskm7O8KzD/FH8iPcLtRIaO/p32DtxKZB4Gdd05TsQeMPSqy8O1DvuUQQhRYLj eChzJbzyHcIQe0367dBniMqar4w6MZRAECdAOmXu8ex6vDNCsKhFnEW472Tdn/uTH7 xk8NKwT+Zph+OSWk9BLenI21qsEhjIQ14oxTGrQOe+PYhT9TWFq+2vITb8SfbvbuaV zF8PThTBtmsUI0brZfSR9O9r0BMYsryvFdcjJlZ842RehsPJGn95hF2KNDwOg3ZHxx pPzVO44R/q+VQ== Date: Wed, 23 Nov 2022 23:06:48 +0100 From: Frederic Weisbecker To: Pengfei Xu Cc: Lai Jiangshan , "Paul E. McKenney" , Neeraj Upadhyay , Christian Brauner , "Eric W. Biederman" , linux-kernel@vger.kernel.org, heng.su@intel.com, rcu@vger.kernel.org Subject: Re: PID_NS unshare VS synchronize_rcu_tasks() (was: Re: [Syzkaller & bisect] There is task hung in "synchronize_rcu" in v6.1-rc5 kernel) Message-ID: <20221123220648.GA1395324@lothringen> References: <20221123143758.GA1387380@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Nov 23, 2022 at 11:45:50PM +0800, Pengfei Xu wrote: > On 2022-11-23 at 15:37:58 +0100, Frederic Weisbecker wrote: > > I have no idea how to solve the situation without violating the pid_namespace > > rules and unshare() semantics (although I wish unshare(CLONE_NEWPID) had a less > > error prone behaviour with allowing creating more than one task belonging to the > > same namespace). > > > > So probably having an SRCU read side critical section within exit_notify() is > > not a good idea, is there a solution to work around that for rcu tasks? > > > Thanks for the analysis! > Add one more information: I tried to revert this commit only on top of > v6.1-rc5 mainline by script, but it caused kernel make to fail, it could not > confirm the bisect information is 100% accurate if I could not pass the > revert step verification. I just provide all the information I could. No problem, I managed to reproduce with latest upstream. I don't think the bisected commit is the culprit though, it may perhaps just make the issue more likely to happen. Thanks. > > And this issue is too difficult to me. > If I find more clue, I will update the eamil. > > Thanks! > BR. > > > Thanks.