All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] coda dcache-related cleanups and fixes
@ 2026-04-05  2:15 Al Viro
  2026-04-05  2:15 ` [PATCH 1/3] coda: is_bad_inode() is always false there Al Viro
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Al Viro @ 2026-04-05  2:15 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Christian Brauner, Jan Kara, Jan Harkes

1) prior to 2002 coda_revalidate_inode() used make_bad_inode() on
failures; is_bad_inode() checks used to make sense back then.  For
the last 23.5 years they had been dead code; let's take them out...

2) coda ->d_delete() appears to have been hit by somebody overhardened
back in 2021.  Useful tip: if we've just checked d_really_is_negative()
and it had returned false, dentry->d_inode is *NOT* going to be NULL.

3) coda_flag_children() is holding ->d_lock on parent while iterating
through the list of its children; that's fine, but that does not protect
->d_inode of individual children.  Hold rcu_read_lock() over the entire
loop to prevent UAF there...

No preferences regarding the tree these would go through; at the moment
it's in
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git #work.coda
but if coda folks prefer to route those through another tree, just say
so.

Individual patches in followups.  Please, review.

Al Viro (3):
  coda: is_bad_inode() is always false there
  sanitize coda_dentry_delete()
  coda_flag_children(): fix a UAF

 fs/coda/cache.c |  2 ++
 fs/coda/dir.c   | 15 +++------------
 2 files changed, 5 insertions(+), 12 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-04-21 21:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05  2:15 [PATCH 0/3] coda dcache-related cleanups and fixes Al Viro
2026-04-05  2:15 ` [PATCH 1/3] coda: is_bad_inode() is always false there Al Viro
2026-04-05  2:15 ` [PATCH 2/3] sanitize coda_dentry_delete() Al Viro
2026-04-05  2:15 ` [PATCH 3/3] coda_flag_children(): fix a UAF Al Viro
2026-04-07 22:05 ` [PATCH 0/3] coda dcache-related cleanups and fixes Jan Harkes
2026-04-21 20:06   ` [git pull] " Al Viro
2026-04-21 21:56     ` pr-tracker-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.