Messages in this thread | | | Subject | Re: [PATCH v3 linux-next] scsi: scsi_debug: fix type in min_t to avoid stack OOB | From | "Martin K. Petersen" <> | Date | Mon, 08 Nov 2021 23:03:57 -0500 |
| |
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
| |