Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] quota: Verify special quota formats match sb type
@ 2026-09-03  9:05 Jan Kara
  2026-09-03  9:05 ` [PATCH v2 1/2] ocfs2: Refuse to enable ocfs2 format for another filesystem Jan Kara
  2026-09-03  9:05 ` [PATCH v2 2/2] shmem: Refuse to enable tmpfs " Jan Kara
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kara @ 2026-09-03  9:05 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: linux-mm, ocfs2-devel, Joseph Qi, Hugh Dickins, Baolin Wang,
	Farhad Alemi, Jan Kara

Hello,

here is v2 of the patches for fix quota crashes when quota format doesn't match
filesystem type. I'm now using s_magic instead of s_type for superblock type
checking as Hugh pointed out (thus I also didn't pick up OCFS2 guys' R-b tags
because the patch is different now). Once reviewed, I can merge these patches
through my tree as they are only quota related and very unlikely to clash with
anything.

Changes since v1:
* Use s_magic instead of s_type for superblock type checking

Original cover letter:

There are certain quota formats that are created only for particular
filesystems - ocfs2 and tmpfs quota formats in particular. Make sure these
formats are indeed being enabled only for filesystem of appropriate type.
Otherwise quota format operations can easily crash as was spotted by fuzz
testing. 


								Honza

Previous versions:
Link: http://lore.kernel.org/r/20260902132458.23590-1-jack@suse.cz # v1

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

end of thread, other threads:[~2026-09-03 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  9:05 [PATCH v2 0/2] quota: Verify special quota formats match sb type Jan Kara
2026-09-03  9:05 ` [PATCH v2 1/2] ocfs2: Refuse to enable ocfs2 format for another filesystem Jan Kara
2026-09-03 10:15   ` Joseph Qi
2026-09-03  9:05 ` [PATCH v2 2/2] shmem: Refuse to enable tmpfs " Jan Kara
2026-09-03 15:15   ` Hugh Dickins

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