Re: [PATCH] fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_START

From: Christian Brauner

Date: Tue Mar 17 2026 - 10:47:59 EST


On Tue, 17 Mar 2026 14:48:27 +0900, Hyungjung Joo wrote:
> omfs_fill_super() rejects oversized s_sys_blocksize values (> PAGE_SIZE),
> but it does not reject values smaller than OMFS_DIR_START (0x1b8 = 440).
>
> Later, omfs_make_empty() uses
>
> sbi->s_sys_blocksize - OMFS_DIR_START
>
> [...]

Pretty sure this is AI generated and it misses a Fixes: tag but otherwise looks
correct.

---

Applied to the vfs-7.1.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.1.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.1.misc

[1/1] fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_START
https://git.kernel.org/vfs/vfs/c/0621c385fda1