diff options
| author | Paolo Bonzini <[email protected]> | 2012-05-04 10:32:04 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2012-05-10 07:27:06 +0000 |
| commit | e4594bb50518eb89c447be97dabd5bd99f405d71 (patch) | |
| tree | f4e8d81b2b30cb8ab53207382c2841983954b833 /net/unix/af_unix.c | |
| parent | [SCSI] fix oops in all legacy host adapters caused by 6f381fa (diff) | |
| download | kernel-e4594bb50518eb89c447be97dabd5bd99f405d71.tar.gz kernel-e4594bb50518eb89c447be97dabd5bd99f405d71.zip | |
[SCSI] virtio_scsi: fix TMF use-after-free
Fix a use-after-free in the TMF path, where cmd may have been already
freed by virtscsi_complete_free when wait_for_completion restarts
executing virtscsi_tmf. Technically a race, but in practice the command
will always be freed long before the completion waiter is awoken.
The fix is to make callers specifying a completion responsible for
freeing the command in all cases.
Signed-off-by: Hu Tao <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
