Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp526928rdb; Mon, 29 Jan 2024 09:21:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEB/ZPGcjFUF+2ys6R0tjqnmOotV2Xtc+EDkJI39XB0BGVXGkw9p2Ms6e1MxjExG6htR8Zu X-Received: by 2002:a17:906:590d:b0:a35:34a7:af20 with SMTP id h13-20020a170906590d00b00a3534a7af20mr4719229ejq.76.1706548907805; Mon, 29 Jan 2024 09:21:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706548907; cv=pass; d=google.com; s=arc-20160816; b=uKkXUdN8nbGkKb6r1jo89yWNIEY+kZeHdU+tw7hwIwldK2N+Nne9FMpmIlWbPODtGW b6CHlCqbzcfKvTgdBJBzSPZxadNXxgnr3ix/nyVAnPqBfvX3Wri6WOK9M8MNpQcSs8Et ehOKB5m0NIlnGuhn+X5W4kJCOAuVC+uQmvV6Ibx65LBhNuBeIUJEQGcZmOvcPTtCLxLy 1AW5Tp9p+YahMZiEy+YtjvWoNbfAdzVkKyTPhfVE60Tszy/saxpMWGuK8mnTbXmxWhpF wg9DTjX1Wh1/kaJAEBGuDDAF5/thgiPgjP9/Bxf/Bce6vPfxEL8ewg7zNaLjiZil+Pry e4HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=mlNt0bokuaYiiTq/gVyfnuZHmNoBtyJv168r5YI4Yyc=; fh=v9fVoqng7NuDWV3UJtH8WSO7MU+gnXJamvjYkaV9T+M=; b=DmAnehD+gaKiXPDYrv/DWP4mqqdPyrWAxq0ybDckqZsOEsPliefpivJ6G9P3jY3/DO wmgiVF5ukXGSsJsRfv2PVEtVnJ4DwqY0Shu/2Pvws633BXhnnc8VULj4/1XMvPWaZkdS a1Usic0cGq4gK/Amq+JW277gcSjeenkhZjMtFbZY2DxG1anRrS+CXMqQNKB2GeibJUu+ bsPRY1HyUMybXk4vpUHN6EX3DNw7Cx04YnKYitzX/gfCFdoAE2EWYBR9wxWAAzfKZI8X ovbqKIqw7pWTHDpttxQm1EUXNsH+9P5puP83J6Or5mm6nDY4h29KrEgWCSMrSceRvIPn BBug== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43171-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qx25-20020a170906fcd900b00a2c5bb3e727si3920319ejb.778.2024.01.29.09.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43171-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EEDDC1F28F9B for ; Mon, 29 Jan 2024 17:01:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83BD3157E61; Mon, 29 Jan 2024 17:01:18 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03EF4155A5F; Mon, 29 Jan 2024 17:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547678; cv=none; b=EmsyOfHVD+bFzl+oW/qdGZS77rvlLgMv9S2y/Mh/zktYVJWtOI7AxzsyqlReC1XM/1RadnUXl+MjiS+u2jzvCG+5qzYFaLToyKu+jOB4tD8rEwX95G9jv7Slq2Vn88kW5IBz5RQ1gmrO7iMdrNDBbfyBdsO9jk2cWj2i8+gEWYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547678; c=relaxed/simple; bh=CNhm7Ccu7kTuwqe+I/IrKjglq6iSx/VH7y5Y1S7R300=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BfcD1WBljcjD3q7MjCK5bCmEwQm+skG/dKsHHSZZraMqu/zuJ4KvoDEDVAzoegQ6QvG78zKhoYqQMe28Hea3FhgEKTy1uouDNjvNABCqgxjX7C5wz/bqCwo79GvVys+XNZDFfE6pSDaIMhT6321VlPfVWzgMjHA+xYjn849aYUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34A2CC433F1; Mon, 29 Jan 2024 17:01:16 +0000 (UTC) Date: Mon, 29 Jan 2024 12:01:25 -0500 From: Steven Rostedt To: Linus Torvalds Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Christian Brauner , Al Viro , Ajay Kaher , linux-trace-kernel@vger.kernel.org Subject: Re: [linus:master] [eventfs] 852e46e239: BUG:unable_to_handle_page_fault_for_address Message-ID: <20240129120125.605e97af@gandalf.local.home> In-Reply-To: References: <202401291043.e62e89dc-oliver.sang@intel.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 28 Jan 2024 20:36:12 -0800 Linus Torvalds wrote: > End result: the d_instantiate() needs to be done *after* the inode has > been fully filled in. > > Alternatively, you could > > (a) not drop the eventfs_mutex around the create_dir() call > > (b) take the eventfs_mutex around all of set_top_events_ownership() > > and just fix it by having the lock protect the lack of ordering. Hi Linus, Thanks for the analysis. I have a patch that removes the dropping of the mutex over the create_dir/file() calls, and lockdep hasn't complained about it. I was going to add that to my queue for the next merge window along with other clean ups but this looks like it actually fixes a real bug. I'll move that over to my urgent queue and start testing it. -- Steve