Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp649403rdb; Mon, 29 Jan 2024 13:45:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IE76JnC+tAmVKBeHG1kFotomrCLje+usfZHfaOuvdMJYVJ5jd6KzSk+u9X9EvNHJdBBMBz6 X-Received: by 2002:a17:90b:4b07:b0:295:84b4:5813 with SMTP id lx7-20020a17090b4b0700b0029584b45813mr2523208pjb.8.1706564720358; Mon, 29 Jan 2024 13:45:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706564720; cv=pass; d=google.com; s=arc-20160816; b=DcK7kSpv3FoBlL1XVvbeTWfQOBIQToopiVWXlK1sbKoao7IGaHF5feg+UOXBlvU8mE PP7KeZStJphhCeo1JinCac/l6tYuieNelliMIgPbFVOYSDIuJpj7I/9dPWe4/FARMr7I aNCXhCuqr4IGhW6Eqq4vUKWb7crynliQQLlf5Bu2v56iqTzvrtNV5r+JediyDbEk1+jO DduvxEj4It/VcpcL1fqvZXe51c+7fJfWYU6gZQoH9dzUveRojswVMldLi33zuDami20u lP3n2lgPIVadT5oEAMKorKVbfucVsrIrDza50avLRn76pmrLQfrgsG6C5CEiHnTHBTbO QG5g== 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=VW1rR6vIB88Lm7poxeT+wh9VvLA/Yf/jIvZGJHj88so=; fh=v9fVoqng7NuDWV3UJtH8WSO7MU+gnXJamvjYkaV9T+M=; b=xWtAvWy9kZZo0bg7FU2SNd2igZZLZtuA5dGs3UlLXskUAZjAa+UjZgTozbG0u0POlh 6baD7osqH7LncHO/QXcPicxgkrelFbarnl3ZfM6VW2WLWbDBgvI6f69d6KtrMV8EU1aM YBgUjVslztiOpgqJCaJsn+UYKLLsr5pOLoA5w56xyjXkt11IuQcGubS38MWFalLr0zBq eouCaNLZjGaFZ30rY2Q8+EFDKejCAMWvn2MEpktAS9ygGO9F9OFC75B16GG0+I1X9ox6 uAJgXVKRhlzm504m1MyHKA8gGIusg4KxzuxlyFDMzf7oPNah0Wgx260L6KLvCgKUtLOb fIug== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43534-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v22-20020a17090ae99600b002909213c891si6172060pjy.25.2024.01.29.13.45.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 13:45:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-43534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43534-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 08EAE2881D0 for ; Mon, 29 Jan 2024 21:45:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE22A158D68; Mon, 29 Jan 2024 21:45:14 +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 2D49F266D4; Mon, 29 Jan 2024 21:45:13 +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=1706564714; cv=none; b=p63+eq8wMuvzSZaeHm+0PnrIgYp0W1OksOhPVqJ0QnSP/zsyTsJfw4s/o9M9cVX/VR+QtNXsNjqKzd5h3g3yox2vohemkbwJZ8mswzjHESXEmiWG5is11BEBjOMCHIzmQhy9hI8SXiNvzPVlw8LCHZg2m7bVX//A++KhciUenJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706564714; c=relaxed/simple; bh=yY4xF0kLqIPE63javcYLHfeIRhob7wmKoaWeIExeS1Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XN1/ocxtadsahfo0WCJgHU3zTYWBY/Va6j2TOtSAtoPqED38443IsNebmYlxf105A/wPV63Awy+xn+SgXSz0Iye2U5Kx1jlwnxAVrA0Yxi50gOI38OmSrStIfooNcGxi0MwolJ5EK8WOcxTLf3KGrQcacxXZiz33vM2J/6I53nM= 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 5A19BC433F1; Mon, 29 Jan 2024 21:45:12 +0000 (UTC) Date: Mon, 29 Jan 2024 16:45:22 -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: <20240129164522.72482faa@gandalf.local.home> In-Reply-To: References: <202401291043.e62e89dc-oliver.sang@intel.com> <20240129120125.605e97af@gandalf.local.home> <20240129152600.7587d1aa@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 12:51:59 -0800 Linus Torvalds wrote: > End result: what simple_lookup() does is say "oh, you didn't have the > file, so it's by definition a negative dentry", and thus all it does > is to do "d_add(dentry, NULL)". > > Anyway, removing this was painful. I initially thought "I'll just > remove the calls". But it all ended up cascading into "that's also > wrong". > > So now I have a patch that tries to fix this all up, and it looks like thisL: > > 1 file changed, 50 insertions(+), 219 deletions(-) Thanks, much appreciated. > > because it basically removed all the old code, and replaced it with > much simpler code. > > I'm including the patch here as an attachment, but I want to note very > clearly that this *builds* for me, and it looks a *lot* more obvious > and correct than the old code did, but I haven't tested it. AT ALL. I'm going to stare at them as I test them. Because I want to understand them. I may come back with questions. > > Also note that it depends on my previous patches, so I guess I'll > include them here again just to make it unambiguous. > > Finally - this does *not* fix up the refcounting. I still think the > SRCU stuff is completely broken. But that's another headache. But at > least now the *lookup* parts look like they DTRT wrt eventfs_mutex. > > The SRCU logic from the directory iteration parts still needs crapectomy. I think the not dropping the mutex lock lets me get rid of the SRCU. I added the SRCU when I was hitting the deadlocks with the iput code which I'm not hitting anymore. So getting rid of the SRCU shouldn't be hard. > > AGAIN: these patches (ie particularly that last one - 0004) were all > done entirely "blindly" - I've looked at the code, and fixed the bugs > and problems I've seen by pure code inspection. > > That's great, but it really means that it's all untested. It *looks* > better than the old code, but there may be some silly gotcha that I > have missed. I'll let you know. Oh, does b4 handle attachments? Because this breaks the patchwork flow. I haven't used b4 yet. Thanks, -- Steve