Re: [PATCH] scsi: mvumi: reject handshake sizes that overflow the list allocations
From: Yehyeong Lee
Date: Fri Nov 20 2026 - 10:03:04 EST
On Wed, Oct 14, 2026 at 09:42:25AM +0900, Yehyeong Lee wrote:
> mvumi_hs_process_page() takes max_io, the two command entry sizes and the
> list depth from the firmware handshake page. The entry sizes are u8 fields
> used as shift counts, and 1 is an int, so a count of 29 or more makes the
> << 2 applied to the shift overflow an int; a count of 32 or more is
> undefined outright. max_io is a u16, and the sizes derived from the shifts
> are multiplied by it in mvumi_init_data() to size three unsigned int
This is superseded by v9:
https://lore.kernel.org/all/20261015045213.3975845-10-yhlee@xxxxxxxxxxxxxxxxxx/
Best regards,
Yehyeong Lee