All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] scsi: ses: out of bound accessing in ses_enclosure_data_process
@ 2019-03-14  3:19 jianchao.wang
  2019-03-18  3:13 ` jianchao.wang
  2019-03-18  5:01   ` Martin K. Petersen
  0 siblings, 2 replies; 8+ messages in thread
From: jianchao.wang @ 2019-03-14  3:19 UTC (permalink / raw)
  To: jejb, martin.petersen
  Cc: linux-scsi, linux-kernel, Junxiao Bi, diego.gonzalez

Dear all

When our customer probe the lpfc devices, they encountered odd memory corruption issues,
and we get 'out of bound' access warning at following position after open KASAN

ses_enclosure_data_process

for (i = 0; i < types; i++, type_ptr += 4) {
  for (j = 0; j < type_ptr[1]; j++) {
                   ^^^^^^^^^^^
                   out of bound

With some debug log, I got following,

page1 ffff88042d1aad20 len 32 types 5 type_ptr ffff88042d1aad64

Would anyone please give some suggestions on this ?

Thanks
Jianchao

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-19  2:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  3:19 [BUG] scsi: ses: out of bound accessing in ses_enclosure_data_process jianchao.wang
2019-03-18  3:13 ` jianchao.wang
2019-03-18  4:17   ` Junxiao Bi
2019-03-18  5:01 ` Martin K. Petersen
2019-03-18  5:01   ` Martin K. Petersen
2019-03-18  5:09   ` jianchao.wang
2019-03-18 15:22   ` Ewan D. Milne
2019-03-19  2:41     ` jianchao.wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.