summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig.cpu
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-06-19 09:05:41 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-20 16:34:02 -0400
commit240b4cc8fd5db138b675297d4226ec46594d9b3b (patch)
tree8d6b6082fea1e7d19d4fab3513c744ede57916d6 /arch/x86/Kconfig.cpu
parent5589b08e5be47e426158f659a892153b4a831921 (diff)
scsi: vmw_pscsi: Fix use-after-free in pvscsi_queue_lck()
Once we unlock adapter->hw_lock in pvscsi_queue_lck() nothing prevents just queued scsi_cmnd from completing and freeing the request. Thus cmd->cmnd[0] dereference can dereference already freed request leading to kernel crashes or other issues (which one of our customers observed). Store cmd->cmnd[0] in a local variable before unlocking adapter->hw_lock to fix the issue. CC: <stable@vger.kernel.org> Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'arch/x86/Kconfig.cpu')
0 files changed, 0 insertions, 0 deletions