diff options
author | Shin'ichiro Kawasaki <[email protected]> | 2023-02-14 09:50:19 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-02-21 22:00:50 -0500 |
commit | e39ea831ebad4ab15c4748cb62a397a8abcca36e (patch) | |
tree | 222b1f91d11eeb97ceab15b38b809ca5df38a46a /net/lapb/lapb_subr.c | |
parent | 339e61565f81a6534afdc18fd854b2e2628bf5db (diff) |
scsi: mpi3mr: Fix missing mrioc->evtack_cmds initialization
Commit c1af985d27da ("scsi: mpi3mr: Add Event acknowledgment logic")
introduced an array mrioc->evtack_cmds but initialization of the array
elements was missed. They are just zero cleared. The function
mpi3mr_complete_evt_ack() refers host_tag field of the elements. Due to the
zero value of the host_tag field, the function calls clear_bit() for
mrico->evtack_cmds_bitmap with wrong bit index. This results in memory
access to invalid address and "BUG: KASAN: use-after-free". This BUG was
observed at eHBA-9600 firmware update to version 8.3.1.0. To fix it, add
the missing initialization of mrioc->evtack_cmds.
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Fixes: c1af985d27da ("scsi: mpi3mr: Add Event acknowledgment logic")
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Acked-by: Sathya Prakash Veerichetty <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions