Re: [PATCH] ufs: validate fs_cgsize when reading the superblock

From: Christian Brauner

Date: Tue Nov 17 2026 - 08:49:31 EST


On Sun, Nov 08, 2026 at 10:00:00AM +0800, Guikun Yang wrote:
> diff --git a/fs/ufs/super.c b/fs/ufs/super.c
> index 1111111..2222222 100644
> --- a/fs/ufs/super.c
> +++ b/fs/ufs/super.c
> @@ -1140,6 +1140,14 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)

This diff was never produced by git. The index line is made up, the
hunk header doesn't match the hunk, ufs_fill_super() hasn't had that
signature since b70cb459890b ("ufs: convert ufs to the new mount API"),
and the Fixes: tag sits below the diff. It doesn't apply.

I'm not going to fix up hand-written or generated diffs. Generate
patches with git format-patch from a tree you actually built and tested
the change in, and send them with git send-email. Anything else won't
be applied.