linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sb->s_fs_info freeing fixes
@ 2023-08-31  5:31 Christoph Hellwig
  2023-08-31  5:31 ` [PATCH 1/4] ramfs: free sb->s_fs_info after shutting down the super block Christoph Hellwig
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Christoph Hellwig @ 2023-08-31  5:31 UTC (permalink / raw)
  To: Alexander Viro, Christian Brauner
  Cc: Heiko Carstens, Vasily Gorbik, Alexander Gordeev, Paul Moore,
	Stephen Smalley, Eric Paris, linux-s390, linux-fsdevel, selinux

sb->s_fs_info should only be freed after the superblock has been marked
inactive in generic_shutdown_super, which means either in ->put_super or
in ->kill_sb after generic_shutdown_super has returned.  Fix the
instances where that is not the case.

Diffstat
 arch/s390/hypfs/inode.c      |    3 +--
 fs/devpts/inode.c            |    2 +-
 fs/ramfs/inode.c             |    2 +-
 security/selinux/selinuxfs.c |    5 +----
 4 files changed, 4 insertions(+), 8 deletions(-)

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

end of thread, other threads:[~2023-08-31 14:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31  5:31 sb->s_fs_info freeing fixes Christoph Hellwig
2023-08-31  5:31 ` [PATCH 1/4] ramfs: free sb->s_fs_info after shutting down the super block Christoph Hellwig
2023-08-31  6:25   ` Al Viro
2023-08-31  5:31 ` [PATCH 2/4] devpts: " Christoph Hellwig
2023-08-31  6:31   ` Al Viro
2023-08-31  5:31 ` [PATCH 3/4] selinuxfs: " Christoph Hellwig
2023-08-31  6:33   ` Al Viro
2023-08-31  5:31 ` [PATCH 4/4] hypfs: " Christoph Hellwig
2023-08-31  6:37   ` Al Viro
2023-08-31 10:20 ` sb->s_fs_info freeing fixes Christian Brauner
2023-08-31 10:29   ` Christian Brauner
2023-08-31 12:36     ` Christoph Hellwig
2023-08-31 13:11       ` Christian Brauner
2023-08-31 14:38         ` Paul Moore
2023-08-31 14:39           ` Christoph Hellwig
2023-08-31 14:49             ` Paul Moore

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).