[Bionic][PATCH 0/1] scsi: qla2xxx: Fix memory corruption during hba reset test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bionic][PATCH 0/1] scsi: qla2xxx: Fix memory corruption during hba reset test

Joseph Salisbury-3
BugLink: http://bugs.launchpad.net/bugs/1750441

== Bionic Justification ==
IBM reports a stress test on Qlogic Fibre Channel with a Ubuntu KVM guest
caused KVM host crash in qlt_free_session_done call.  Commit 2ce87cc5b269 is
a fix to this issue and is in mainline as of v4.16-rc3.

== Fix ==
2ce87cc5b269 ("scsi: qla2xxx: Fix memory corruption during hba reset test")

== Regression Potential ==
Fixes memory corruption and limited to qla adapter.

Quinn Tran (1):
  scsi: qla2xxx: Fix memory corruption during hba reset test

 drivers/scsi/qla2xxx/qla_os.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[Bionic][PATCH 1/1] scsi: qla2xxx: Fix memory corruption during hba reset test

Joseph Salisbury-3
From: Quinn Tran <[hidden email]>

BugLink: http://bugs.launchpad.net/bugs/1750441

This patch fixes memory corrpution while performing HBA Reset test.

Following stack trace is seen:

[  466.397219] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
[  466.433669] IP: [<ffffffffc06f5dd0>] qlt_free_session_done+0x260/0x5f0 [qla2xxx]
[  466.467731] PGD 0
[  466.476718] Oops: 0000 [#1] SMP

Signed-off-by: Quinn Tran <[hidden email]>
Signed-off-by: Himanshu Madhani <[hidden email]>
Reviewed-by: Johannes Thumshirn <[hidden email]>
Signed-off-by: Martin K. Petersen <[hidden email]>
(cherry picked from commit 2ce87cc5b269510de9ca1185ca8a6e10ec78c069)
Signed-off-by: Joseph Salisbury <[hidden email]>
---
 drivers/scsi/qla2xxx/qla_os.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 46f2d0c..f4a3982 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -3595,6 +3595,8 @@ qla2x00_remove_one(struct pci_dev *pdev)
  }
  qla2x00_wait_for_hba_ready(base_vha);
 
+ qla2x00_wait_for_sess_deletion(base_vha);
+
  /*
  * if UNLOAD flag is already set, then continue unload,
  * where it was set first.
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

APPLIED[BIONIC]: [Bionic][PATCH 1/1] scsi: qla2xxx: Fix memory corruption during hba reset test

Thadeu Lima de Souza Cascardo-3
Applied to bionic master-next tree.

Thanks.
Cascardo.

Applied-to: bionic/master-next

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team