Fix use-after-free errors in lpfc driver when using NVMe
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lpfc: nvme: avoid hang / use-after-free when destroying localportdrivers/ drivers/ | +10 | 1 reply | |
| 2/2 | lpfc: nvmet: avoid hang / use-after-free when destroying targetportdrivers/ drivers/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Fix use-after-free errors in lpfc driver when using NVMe
These two patches fix use-after-free errors in the shutdown path of the lpfc driver with both the Initiator and Target mode usage of FC ports.
The problem is very apparent with slub_debug enabled, as the memory poisoning prevents the wait_for_completion_timeout() from returning after the object has been freed.
Ewan D. Milne (2):
lpfc: nvme: avoid hang / use-after-free when destroying localport
lpfc: nvmet: avoid hang / use-after-free when destroying targetport
drivers/scsi/lpfc/lpfc_nvme.c | 16 +++++++++------- drivers/scsi/lpfc/lpfc_nvme.h | 2 +- drivers/scsi/lpfc/lpfc_nvmet.c | 8 +++++--- drivers/scsi/lpfc/lpfc_nvmet.h | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-)
Signature · 1 line
2.1.0