public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* Does ceph_fill_inode() mishandle I_NEW?
@ 2025-03-13 10:17 David Howells
  2025-03-13 19:14 ` slava
  0 siblings, 1 reply; 7+ messages in thread
From: David Howells @ 2025-03-13 10:17 UTC (permalink / raw)
  To: Viacheslav Dubeyko
  Cc: dhowells, Alex Markuze, Xiubo Li, Ilya Dryomov, Christian Brauner,
	ceph-devel, linux-fsdevel, linux-kernel

ceph_fill_inode() seems to be mishandling I_NEW.  It only check I_NEW when
setting i_mode.  It then goes on to clobber a bunch of things in the inode
struct and ceph_inode_info struct (granted in some cases it's overwriting with
the same thing), irrespective of whether the inode is already set up
(i.e. if I_NEW isn't set).

It looks like I_NEW has been interpreted as to indicating that the inode is
being created as a filesystem object (e.g. by mkdir) whereas it's actually
merely about allocation and initialisation of struct inode in memory.

David


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-13 23:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 10:17 Does ceph_fill_inode() mishandle I_NEW? David Howells
2025-03-13 19:14 ` slava
2025-03-13 20:47   ` David Howells
2025-03-13 21:46     ` Viacheslav Dubeyko
2025-03-13 23:47       ` David Howells
2025-03-13 22:47     ` Jeff Layton
2025-03-13 23:37       ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox