Re: [PATCH] scsi: mvumi: reject handshake sizes that overflow the list allocations
From: Yehyeong Lee
Date: Tue Oct 13 2026 - 21:19:35 EST
Thanks -- both are addressed in v2.
- 32-bit truncation: correct. size_t is 32 bits on 32-bit targets, so the
products wrap and "total > UINT_MAX" can never be true there. v2 computes
the total in u64, which is 64-bit on every architecture.
- list_num_io vs max_io: v2 rejects a handshake list depth that is zero or
yields more entries than max_io. The inbound and outbound rings are
allocated for max_io entries and the slot index wraps on list_num_io, so
bounding list_num_io by max_io keeps the index within the rings.