Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1516242

Re: [PATCH] bad_inode: add missing i_op initializers

From Christoph Hellwig <hch@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] bad_inode: add missing i_op initializers
Date 2016-11-07 16:10 +0100
Message-ID <sATIB-4Mo-15@gated-at.bofh.it> (permalink)
References <sATIB-4Mo-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 07, 2016 at 10:16:21AM +0100, Miklos Szeredi wrote:
> New inode operations were forgotten to be added to bad_inode.  Most of the
> time the op is checked for NULL before being called but marking the inode
> bad and the check can race (very unlikely).
> 
> However in case of ->get_link() only DCACHE_SYMLINK_TYPE is checked before
> calling the op, so there's no race and will definitely oops when trying to
> follow links on such a beast.
> 
> Also remove comments about extinct ops.

Can someone come up with some BUILD_BUG_ON magic to catch issues like
this?

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] bad_inode: add missing i_op initializers Christoph Hellwig <hch@infradead.org> - 2016-11-07 16:10 +0100

csiph-web