From mboxrd@z Thu Jan 1 00:00:00 1970 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 C855E4F1F5; Mon, 29 Jan 2024 22:49:41 +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=1706568581; cv=none; b=gmgroQ64/SV0OEtLExoIchpL/brlbUxPjp1FKYku74eXm8Uo9FZwe/04s94eQaEOcfwRTHTU6IQNzI31frOWyMysJ8dLPOBjnQZJt9cophv8v+ukV7hauTdokTgtik3/FPGtY7RdI3KoeQcMTfyQRppqiTd+z2uGYXT14nDMZhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706568581; c=relaxed/simple; bh=KeLg8W/OSpqeBnocOacGal7XGwVN+UGJN0OY1ZfZUbg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iCB/GpqRf83YygBuUyMXNaX0mHwDcpstTkFM+9I8NAfU9byy0mwjb3dt1FzsnX/QrXE/ERmHAde/GAhjKGDKo+YfCBfRKtigXJmSPcU8bHjVK549rJlleBtPhSXga3xJfhyGVaz0khtKw6QQlLQsyOMjAM1VqoSfq6KD++eAtN8= 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 0AB80C433C7; Mon, 29 Jan 2024 22:49:39 +0000 (UTC) Date: Mon, 29 Jan 2024 17:49:50 -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: <20240129174950.5a17a86c@gandalf.local.home> In-Reply-To: References: <202401291043.e62e89dc-oliver.sang@intel.com> <20240129120125.605e97af@gandalf.local.home> <20240129152600.7587d1aa@gandalf.local.home> <20240129172200.1725f01b@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-trace-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 Mon, 29 Jan 2024 14:42:47 -0800 Linus Torvalds wrote: > @@ -324,7 +322,7 @@ static struct dentry *lookup_file(struct dentry *dentry, > ti->flags = TRACEFS_EVENT_INODE; > ti->private = NULL; // Directories have 'ei', files not > > - d_instantiate(dentry, inode); > + d_add(dentry, inode); > fsnotify_create(dentry->d_parent->d_inode, dentry); > return eventfs_end_creating(dentry); > }; > @@ -365,7 +363,7 @@ static struct dentry *lookup_dir_entry(struct dentry *dentry, > ei->dentry = dentry; // Remove me! > > inc_nlink(inode); > - d_instantiate(dentry, inode); > + d_add(dentry, inode); > inc_nlink(dentry->d_parent->d_inode); > fsnotify_mkdir(dentry->d_parent->d_inode, dentry); > return eventfs_end_creating(dentry); > @@ -786,7 +784,7 @@ struct eventfs_inode *eventfs_create_events_dir(const char *name, struct dentry > > /* directory inodes start off with i_nlink == 2 (for "." entry) */ > inc_nlink(inode); > - d_instantiate(dentry, inode); > + d_add(dentry, inode); Now I didn't change this last d_instantiate, because this is not called through the lookup code. This is the root events directory and acts more like debugfs. It's not "dynamically" added. -- Steve > inc_nlink(dentry->d_parent->d_inode); > fsnotify_mkdir(dentry->d_parent->d_inode, dentry); > tracefs_end_creating(dentry);