Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1238980rdb; Tue, 30 Jan 2024 12:03:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUXGOMjlDAO3oE4fx7gtBkDufNGnU4UEdYkzLS+bKk38hSBhB9I66lUeZPdttMC+W+V3Hl X-Received: by 2002:a2e:a403:0:b0:2cf:2bf:2844 with SMTP id p3-20020a2ea403000000b002cf02bf2844mr5945453ljn.52.1706645037646; Tue, 30 Jan 2024 12:03:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706645037; cv=pass; d=google.com; s=arc-20160816; b=nRGdT7b2iwcQXd+QzQQcs6/ao+GRCXQxXiLaLfEf3QGNYjEKfHsq+XvIM8Pk+rzqKH mmwUbJ7wYB+T6+hQF9QDYWpxdNgJDXaKkA77FDOHuwl1/QBmEZRt4RFIvgIZMWFkKpTn FjsVrwIDFvhR4c72M3of9cYdJoZZOgCfz4AxEw81vijrvkAmNIeIqtQzrdcmjWElhAVv zZXUr86+i6EvVT+qm3NTnDXlA2aG8yw8c6JQiykCI7ku7sFBWBwEdl0TINltFiUdO5Yp EC42SaOMl4paECSsFrISQ99mkBtShvCiheIphtD2X3XL4O52ESIMcVMuSO7Gle+3Rune 1Z2Q== 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=yUrxkZeFxkCfDe5cCYxdBmdbsCjlVOh2l8SWxbKtHvA=; fh=v9fVoqng7NuDWV3UJtH8WSO7MU+gnXJamvjYkaV9T+M=; b=AENwR6RRwfZEpux6twQI2B+0dbCuTL+NgdLzVvY83U+Ihe2QsExoEvdLUZEQCiSG6z pIYSG7YIhKtkoHic8suYDrG4Ns/d4BKBcmgG3+LHkVx/81EFooXFh/M76Z/8N2vsJfii 7ByDks9JUtn5zri4t8p0NwwmE8yL1dEXEO6rqgK2TtWL9w8qvTBPsfy89pMkfsn6SomX QdCUNczpGvs7mq+T37vaFz7oYas6cXpYbfDC7qa1xeYHHvs08fhixhm7VZ0Il9cACtyC TSny/MzbTjrLetdNYsMMWrSHwdjHXy+SRf3gBZbg7DU0ORrjIvmVhi9Xxhktfl9xTZ3p R+3g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-45239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45239-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 16-20020a508e50000000b0055f0891e792si2062526edx.265.2024.01.30.12.03.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 12:03:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45239-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-45239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45239-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 638D81F2511F for ; Tue, 30 Jan 2024 20:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17E8771B39; Tue, 30 Jan 2024 20:03:51 +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 8AD3071B29; Tue, 30 Jan 2024 20:03:50 +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=1706645030; cv=none; b=YLxArgaIv1Afd7S7u3cIAzZ/OsuQ7dN5B5Ah1Skh/GKMw3ZLWndhTVUOiQSsDZENcRHzuIb3bQQEfCqcOEPMzP2GxfQi1yBO6we6nctpjBdPBo5JRLzNBJ8RIsVtcIge1/Cz+Z8Tth+V29rl+VTRdjZObalMcqNt/ecT7WaylAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706645030; c=relaxed/simple; bh=raqJis5H5REnlNnsblpFO5LfaAPo42f2Cmdcg4YjBRc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MDqtvRVHJQ614gpkZYL399YTe7oUg9wIOKHxAVSdavg1wgP9vZY04NbNgw69rnxUoq9YNIuy5/jHf1eGJ6N/MbEUr/fxbEUiaZeeFuRHqDuoxQHzNKAIeX3BHjJ17PB89h2HevJCK8r4YvS6qU6fRlnWbSHTJ/OAitwHvtZPOvQ= 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 AB6EEC433C7; Tue, 30 Jan 2024 20:03:48 +0000 (UTC) Date: Tue, 30 Jan 2024 15:04:00 -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: <20240130150400.119a3909@gandalf.local.home> In-Reply-To: References: <202401291043.e62e89dc-oliver.sang@intel.com> <20240129152600.7587d1aa@gandalf.local.home> <20240129172200.1725f01b@gandalf.local.home> <20240129174950.5a17a86c@gandalf.local.home> <20240129193549.265f32c8@gandalf.local.home> <20240130132319.022817e8@gandalf.local.home> <20240130143734.31b9b3f1@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 Tue, 30 Jan 2024 11:54:56 -0800 Linus Torvalds wrote: > On Tue, 30 Jan 2024 at 11:37, Steven Rostedt wrote: > > > > Do you want me to put this in my urgent branch and mark them for stable, > > and then send them for 6.8? > > Hmm. I think the only one that fixes a _reported_ bug is that [PTCH > 2/6]. And it turns out that while 'ti->private' really is entirely > uninitialized (and I still think it's the cause of the kernel test > robot report that started this thread), the ti->flags field _is_ > initialized to zero in tracefs_alloc_inode(). > > So even in that [PATCH 2/6], these parts: > > - ti->flags |= TRACEFS_EVENT_INODE; > + ti->flags = TRACEFS_EVENT_INODE; > > aren't strictly needed (but aren't wrong either). > > The 'make sure to initialize ti->private before exposing the dentry' > part *definitely* needs to be part of 6.8, though. That has an > outstanding actually triggered bug report on it. > > I do think that tracefs_alloc_inode() should also initialize > ti->private to NULL, but while that would fix the oops that the test > robot reported, it wouldn't fix the data-race on any ti->private > accesses. > > So that "ti->private = ei" needs to be done before the d_instantiate() > (that later became a d_add()) regardless. But not having random fields > left uninitialized for future subtle bugs would be a good idea too. I'll add a patch to add __GFP_ZERO to the tracefs inode allocation, and modify your patch 2 to just move the ti->private = ei; > > Anyway. > > If you do run the full tracefs tests on the whole series, and there > are no other major problems, I'll happily take it all for 6.8. And > yes, even mark it for stable. I think the other bugs are much harder > to hit, but I do think they exist. And code deletion is always good. Sounds good. > > So give it the full test attention, and *if* it all still looks good > and there are no new subtle issues that crop up, let's just put this > saga behind us asap. Yes, I've been wanting to get away from eventfs for a month now. Again, I really do appreciate the time you put in to fixing this for me. I'm going to be backporting this to older Chromebooks as we really need to cut down on the memory overhead of instances. -- Steve