linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.6 0/3] Fix use-after-free in PSCSI
@ 2012-09-05 15:09 Paolo Bonzini
  2012-09-05 15:09 ` [PATCH 3.6 1/3] target: move transport_get_sense_data Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Bonzini @ 2012-09-05 15:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: target-devel, nab

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(-)


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

end of thread, other threads:[~2012-09-06  0:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05 15:09 [PATCH 3.6 0/3] Fix use-after-free in PSCSI Paolo Bonzini
2012-09-05 15:09 ` [PATCH 3.6 1/3] target: move transport_get_sense_data Paolo Bonzini
2012-09-05 15:09 ` [PATCH 3.6 2/3] target: simplify code around transport_get_sense_data Paolo Bonzini
2012-09-05 15:09 ` [PATCH 3.6 3/3] target: fix use-after-free with PSCSI sense data Paolo Bonzini
2012-09-06  0:41 ` [PATCH 3.6 0/3] Fix use-after-free in PSCSI Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).