linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2 0/2] xfs: fix inline link path race
@ 2021-11-15  2:24 Ian Kent
  2021-11-15  2:24 ` [PATCH 2 1/2] vfs: check dentry is still valid in get_link() Ian Kent
  2021-11-15  2:24 ` [PATCH 2 2/2] xfs: make sure link path does not go away at access Ian Kent
  0 siblings, 2 replies; 6+ messages in thread
From: Ian Kent @ 2021-11-15  2:24 UTC (permalink / raw)
  To: xfs, Darrick J. Wong, Christoph Hellwig
  Cc: Miklos Szeredi, Brian Foster, Al Viro, David Howells,
	linux-fsdevel, Kernel Mailing List

If the inode of an inline symlink is released (dropped) while a path walk
that is in rcu-walk mode is occuring the inode ->get_link() method can be
NULL when VFS dereferences it causing a crash. But, since the release can
occur at any time there's a small but finite possibility the link path
text could be freed while it's being used.

Changes since v1:
- don't bother trying to rcu-free the link path since there could
  be side effects from the xfs reclaim code.
---

Ian Kent (2):
      vfs: check dentry is still valid in get_link()
      xfs: make sure link path does not go away at access


 fs/xfs/xfs_iops.c | 3 +++
 1 file changed, 3 insertions(+)

--
Ian


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

end of thread, other threads:[~2021-11-15 22:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15  2:24 [PATCH 2 0/2] xfs: fix inline link path race Ian Kent
2021-11-15  2:24 ` [PATCH 2 1/2] vfs: check dentry is still valid in get_link() Ian Kent
2021-11-15 14:25   ` Brian Foster
2021-11-15  2:24 ` [PATCH 2 2/2] xfs: make sure link path does not go away at access Ian Kent
2021-11-15 14:25   ` Brian Foster
2021-11-15 22:26   ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).