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 5862912BEA8; Wed, 31 Jan 2024 16:13:45 +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=1706717626; cv=none; b=gMuee71rhQjKAV0ggKSzlbzY/hcNZc8QYQiHyiNcC+GWaA5xcBvKFRgjXx3xhFfJ1+aF5rm5oVif2TdJubLJJyMcXQ9S/PDs1PwrH3znR+G+n/PEsIza9Ypao9Y5UMMTxrKqJ+m+BmVN0vzmWi+bAAtDH0xINifQy0OcIU4koQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706717626; c=relaxed/simple; bh=Y9p7Qys8VYoI5vR/TxJmHQmVhklAbcJAcFqAVVpM4GY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hndHPRYdPgT67lK4rGoAy3KeXay/0Eaff+FFpz1dQ2YgIml3bVni+zmMpNGBySPF/gRuSadIOU+pGNkNrGsPIGevf/PmW5dZzaDY7XzE/NNUhKPg3ilUpLF9pbpVI3vBRc2j9qu1IUlR6QKKfOKOUsrsihYOzUoEs2K2jwjNpIE= 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 6CAB6C433F1; Wed, 31 Jan 2024 16:13:44 +0000 (UTC) Date: Wed, 31 Jan 2024 11:13:58 -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: <20240131111358.5506645a@gandalf.local.home> In-Reply-To: <20240131105847.3e9afcb8@gandalf.local.home> 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> <20240131105847.3e9afcb8@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 Wed, 31 Jan 2024 10:58:47 -0500 Steven Rostedt wrote: > @@ -788,6 +717,7 @@ static void init_once(void *foo) > { > struct tracefs_inode *ti = (struct tracefs_inode *) foo; > > + memset(ti, 0, sizeof(*ti)); > inode_init_once(&ti->vfs_inode); > } > Note, that inode_init_once() also does a memset on the entire inode, so the initial memset is redundant on the inode portion. But I didn't think it was really worth the time to complicate the code by optimizing it. I guess if I changed the structure to: struct tracefs_inode { + struct inode vfs_inode; unsigned long flags; void *private; - struct inode vfs_inode; }; I could have it do: memset_after(ti, 0, vfs_inode); But this can be done as a separate clean up and doesn't need to be done now. -- Steve