Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1645098
| From | "Martin K. Petersen" <martin.petersen@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] scsi: zero per-cmd private driver data for each MQ I/O |
| Date | 2017-05-19 03:50 +0200 |
| Message-ID | <tIFdh-3gE-43@gated-at.bofh.it> (permalink) |
| References | <tICp3-1gr-13@gated-at.bofh.it> |
| Organization | Oracle Corporation |
Long, > In lower layer driver's (LLD) scsi_host_template, the driver may > optionally ask SCSI to allocate its private driver memory for each > command, by specifying cmd_size. This memory is allocated at the end > of scsi_cmnd by SCSI. Later when SCSI queues a command, the LLD can > use scsi_cmd_priv to get to its private data. > > Some LLD, e.g. hv_storvsc, doesn't clear its private data before > use. In this case, the LLD may get to stale or uninitialized data in > its private driver memory. This may result in unexpected driver and > hardware behavior. > > Fix this problem by also zeroing the private driver memory before > passing them to LLD. Applied to 4.12/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] scsi: zero per-cmd private driver data for each MQ I/O Long Li <longli@exchange.microsoft.com> - 2017-05-19 00:50 +0200 Re: [PATCH v2] scsi: zero per-cmd private driver data for each MQ I/O "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-05-19 03:50 +0200
csiph-web