lkml.org 
[lkml]   [2012]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 3.6 0/3] Fix use-after-free in PSCSI
Date
Hi,

this series fixes the bug I reported with wrong sense data. The
memory corruption is caused by using the sense data after freeing
it. The series corrects it by moving the copy of the sense data
earlier, to the transport_complete callback.

Please review and be kind on my first lio patches! :)

Paolo

Paolo Bonzini (3):
target: move transport_get_sense_data
target: simplify code around transport_get_sense_data
target: fix use-after-free with PSCSI sense data

drivers/target/target_core_pscsi.c | 21 ++----
drivers/target/target_core_transport.c | 117 ++++++++++++--------------------
include/target/target_core_backend.h | 4 +-
3 files changed, 53 insertions(+), 89 deletions(-)



\
 
 \ /
  Last update: 2012-09-05 17:42    [W:0.053 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site