Re: [PATCH] ext4: stop verify_reserved_gdb() one entry short of the block
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:51:23 EST
On Sat, 19 Sep 2026 19:39:40 +0800, Kaixuan Li wrote:
> verify_reserved_gdb() walks the backup group list, reading one __le32 from
> the reserved GDT block per iteration, and bounds the walk after the read:
>
> if (le32_to_cpu(*p++) !=
> grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){
> ...
> return -EINVAL;
> }
> if (++gdbackups > EXT4_ADDR_PER_BLOCK(sb))
> return -EFBIG;
>
> [...]
Applied, thanks!
[1/1] ext4: stop verify_reserved_gdb() one entry short of the block
commit: cbc5fe89227dca60c120a94c6c7d04c9d2438676
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>