diff options
| author | Logan Gunthorpe <[email protected]> | 2019-07-31 23:35:32 +0000 |
|---|---|---|
| committer | Sagi Grimberg <[email protected]> | 2019-08-01 00:57:17 +0000 |
| commit | 86b9a63e595ff03f9d0a7b92b6acc231fecefc29 (patch) | |
| tree | 2c64fb11f909916e60bd11b8aa9a8a8707660f8e /scripts/gen_compile_commands.py | |
| parent | nvmet: Fix use-after-free bug when a port is removed (diff) | |
| download | kernel-86b9a63e595ff03f9d0a7b92b6acc231fecefc29.tar.gz kernel-86b9a63e595ff03f9d0a7b92b6acc231fecefc29.zip | |
nvmet-loop: Flush nvme_delete_wq when removing the port
After calling nvme_loop_delete_ctrl(), the controllers will not
yet be deleted because nvme_delete_ctrl() only schedules work
to do the delete.
This means a race can occur if a port is removed but there
are still active controllers trying to access that memory.
To fix this, flush the nvme_delete_wq before returning from
nvme_loop_remove_port() so that any controllers that might
be in the process of being deleted won't access a freed port.
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
