Re: [PATCH] partitions: aix: validate the physical partition size exponent

From: Jens Axboe

Date: Wed Nov 18 2026 - 11:08:36 EST



On Sun, 15 Nov 2026 00:33:45 +0800, shao.mingyin@xxxxxxxxxx wrote:
> The physical partition size exponent is read as an unvalidated 16-bit
> value from the LVM record and used as the shift count of an int. Values
> of 32 or more cause an out-of-range shift and can produce an unrelated
> partition size. Exponents below SECTOR_SHIFT produce a zero sector count.
>
> Reject sizes that cannot be represented by the parser's u32 byte count
> or do not cover a whole sector before doing the shift. Use an unsigned
> operand to express the representable byte count directly.
>
> [...]

Applied, thanks!

[1/1] partitions: aix: validate the physical partition size exponent
commit: 9ce4cf1ad3392b2945bf1d49f1fd305364020a1b

Best regards,
--
Jens Axboe