[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq11r3wr8ck.fsf@ca-mkp.ca.oracle.com>
Date: Wed, 03 Nov 2021 21:59:43 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: George Kennedy <george.kennedy@...cle.com>
Cc: gregkh@...uxfoundation.org, jejb@...ux.ibm.com,
martin.petersen@...cle.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, dan.carpenter@...cle.com
Subject: Re: [PATCH v2] scsi: scsi_debug: fix type in min_t to avoid stack OOB
George,
> Change min_t() to use type "unsigned int" 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.
This needs to be reconciled with the following commits:
f347c26836c2 scsi: scsi_debug: Fix out-of-bound read in resp_report_tgtpgs()
4e3ace0051e7 scsi: scsi_debug: Fix out-of-bound read in resp_readcap16()
Thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists