[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250425133259.GA6626@lst.de>
Date: Fri, 25 Apr 2025 15:32:59 +0200
From: Christoph Hellwig <hch@....de>
To: Christian Brauner <brauner@...nel.org>
Cc: Heiko Carstens <hca@...ux.ibm.com>, Christoph Hellwig <hch@....de>,
gregkh@...uxfoundation.org, rafael@...nel.org, dakr@...nel.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
Shin'ichiro Kawasaki <shinichiro.kawasaki@....com>,
Xiao Ni <xni@...hat.com>, Kees Cook <kees@...nel.org>
Subject: Re: [PATCH] devtmpfs: don't use vfs_getattr_nosec to query i_mode
On Fri, Apr 25, 2025 at 12:12:36PM +0200, Christian Brauner wrote:
> > That is: if dev_mynode(dev, inode) is not true some random value will be returned.
>
> Don't bother resending, Christoph.
> I've already fixed this with int err = 0 in the tree.
Thanks! Let me use this as a platform to rant about our option
defaults and/or gcc error handling. It seems like ever since we started
zeroing on-stack variables by default gcc stopped warnings about using
uninitialized on-stack variables, leading to tons of these case where
we don't catch uninitialized variables. Now in this and in many cases
the code works fine because it assumed zero initialization, but there are
also cases where it didn't, leading to new bugs.
Can we fix this somehow?
Powered by blists - more mailing lists