Re: [PATCH v3 linux-next] scsi: scsi_debug: fix type in min_t to avoid stack OOB

From: Martin K. Petersen
Date: Mon Nov 08 2021 - 23:04:15 EST



George,

> Change min_t() to use type "u32" instead of type "int" to avoid stack
> out of bounds. With min_t() type "int" the values get sign extended
> and the larger value gets used causing stack out of bounds.

Applied to 5.16/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering