diff options
| author | Logan Gunthorpe <[email protected]> | 2019-07-31 23:35:31 +0000 |
|---|---|---|
| committer | Sagi Grimberg <[email protected]> | 2019-08-01 00:57:06 +0000 |
| commit | 3aed86731ee2b23e4dc4d2c6d943d33992cd551b (patch) | |
| tree | ec1c8fdaaae875427d39e0734626161419167293 /scripts/gen_compile_commands.py | |
| parent | nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns (diff) | |
| download | kernel-3aed86731ee2b23e4dc4d2c6d943d33992cd551b.tar.gz kernel-3aed86731ee2b23e4dc4d2c6d943d33992cd551b.zip | |
nvmet: Fix use-after-free bug when a port is removed
When a port is removed through configfs, any connected controllers
are still active and can still send commands. This causes a
use-after-free bug which is detected by KASAN for any admin command
that dereferences req->port (like in nvmet_execute_identify_ctrl).
To fix this, disconnect all active controllers when a subsystem is
removed from a port. This ensures there are no active controllers
when the port is eventually removed.
Signed-off-by: Logan Gunthorpe <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Max Gurtovoy <[email protected]>
Reviewed-by : Chaitanya Kulkarni <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
