Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp673915rdb; Mon, 29 Jan 2024 14:47:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9c7cHykYAVHgZrREt3J0zm6gimFkvEaK549HvMYkVPCBoIolQgWZwDOuf0ZFCmCgzjGfJ X-Received: by 2002:a17:906:5585:b0:a35:f0fd:99e6 with SMTP id y5-20020a170906558500b00a35f0fd99e6mr1400618ejp.32.1706568451529; Mon, 29 Jan 2024 14:47:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706568451; cv=pass; d=google.com; s=arc-20160816; b=iFw6xsQ8lUucFYpiwcQjqGpWGDFsFeDk5diNVrzHRmqPeP1uSzvXW6eLU9UAkv4cj8 yCg4wpjgDH7vIMAlK88EEIG2dgdrB3H5OYX4C5MIdIHXwoBAmiVoUgLcQ3+remMeuKrT mPI6v/C5o21aumEwRKapbkfbX1h6CUyInFb6gjMZHEVt55pepJ5SeI+0b1UPDasn4K+c HwmNgC+ekzkFGEjAJbrYdPd14Zkrvz8X9mq4tbuO9GbiXn5xQ5hMuEiBcCRlAqFQV8rJ uF3FsbOpyTyCIPgMBkjz15QPIlxHDvcubVIirLI064m+pLL2HEAS/3Ci7vIm9cg4yC6s jQkw== 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=nHKy7WuqIvgMAPdLtvrLGHAqeWsGsCXmhpolZm3gDOQ=; fh=v9fVoqng7NuDWV3UJtH8WSO7MU+gnXJamvjYkaV9T+M=; b=iwzfTJRFIAYiT0H/VSX4rxifF3jDWh9i7OAU04XfSPj9A9NwGnu7OMkPQmyilQ968g nP+MjRssyeeM0Kb+3vApOZpqzrGjmO4X4d2Foes7SG2JVdwbNxO/Hg2GE2JDYSQuE4m9 QZj7PNWy3S+CtDkl+q3BB9ZKBvscnv8BKlyn6c11rbZ5V0GFAB5T7bu+nmv8i+qIiEWe AI/mZTGRUZmsoIjMihO4PhJ5V1x9HYFaY98O+10VfdhMbsNt7KGNwfg2CZh3wwooND2/ ke/R7SGilOlxiktqF62gugRoBI1ICvTZYEn9JCRZ0obk4VGaL7CiyCTLi6QF6wGtF5p1 rDbw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43586-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 b5-20020a1709062b4500b00a35c52884f9si1246153ejg.332.2024.01.29.14.47.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 14:47:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43586-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-43586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43586-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 4B1621F22630 for ; Mon, 29 Jan 2024 22:47:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1016A4F1F5; Mon, 29 Jan 2024 22:47:25 +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 853A54F5ED; Mon, 29 Jan 2024 22:47:24 +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=1706568444; cv=none; b=dvfMK4Ji5p7cTGi8I+u0SIM+UqLTX3rDQx9YIFlrPxQjtWV10laFjuUXzbM/lGf5dIMqg2Fjo4xLX+WIXJ4faaQrzFbS8GKH+x2TmbnmRakBg81xx9fxmZxGBj2gDR68Z40WLnTQA0olIpAGP54RcWDHb4Rht0xpzU+mnViB0C0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706568444; c=relaxed/simple; bh=R4OVOUbiceKRowUYWDKLn08CPB0ttMYSVtdFdQCnOuE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Wc0SysI0NyRZGGPWRn9dlsT2Me/OrHO2gBmqnIeV5EvaQiW7vLIziM0VhZBHtzbTMAiYF2dUOYe1XEUvd1KXJexmTFpyNicXLZQnytr07TWtlFspOnHWeI2XJXITpHwaak5s5wewykZvASetJreAFP4Du+6qpfdDLh+bpYtzG2Q= 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 B54F9C433C7; Mon, 29 Jan 2024 22:47:22 +0000 (UTC) Date: Mon, 29 Jan 2024 17:47:32 -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: <20240129174732.1cea0d69@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-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:35:37 -0800 Linus Torvalds wrote: > And I hope there aren't any other stupid things I missed like that. Well the preliminary tests pass with this added to your patch: diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index cd6de3244442..ad11063bdd53 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -230,7 +230,6 @@ static struct eventfs_inode *eventfs_find_events(struct dentry *dentry) { struct eventfs_inode *ei; - mutex_lock(&eventfs_mutex); do { // The parent is stable because we do not do renames dentry = dentry->d_parent; @@ -247,7 +246,6 @@ static struct eventfs_inode *eventfs_find_events(struct dentry *dentry) } // Walk upwards until you find the events inode } while (!ei->is_events); - mutex_unlock(&eventfs_mutex); update_top_events_attr(ei, dentry->d_sb); @@ -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); -- Steve