[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1d364245-f2ed-0354-702b-0ac745ef3e96@acm.org>
Date: Thu, 11 May 2023 05:49:59 -0700
From: Bart Van Assche <bvanassche@....org>
To: Juergen Gross <jgross@...e.com>, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org
Cc: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
stable@...r.kernel.org
Subject: Re: [PATCH] scsi: Let scsi_execute_cmd() mark args->sshdr as invalid
On 5/11/23 05:34, Juergen Gross wrote:
> Some callers of scsi_execute_cmd() (like e.g. sd_spinup_disk()) are
> passing an uninitialized struct sshdr and don't look at the return
> value of scsi_execute_cmd() before looking at the contents of that
> struct.
Shouldn't the scsi_execute_cmd() callers be fixed instead of modifying
scsi_execute_cmd(), e.g. by zero-initializing the sshdr structure?
Thanks,
Bart.
Powered by blists - more mailing lists