diff options
author | Joern Engel <joern@logfs.org> | 2013-05-13 16:30:06 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-05-15 01:47:35 -0700 |
commit | ccf5ae83a6cf3d9cfe9a7038bfe7cd38ab03d5e1 (patch) | |
tree | cb3966328bce7584d4c24434490dc21a67ecb48b /MAINTAINERS | |
parent | a1321ddd27e65c6ada5b9a12cae4ee2612d76893 (diff) | |
download | linux-3.10-ccf5ae83a6cf3d9cfe9a7038bfe7cd38ab03d5e1.tar.gz linux-3.10-ccf5ae83a6cf3d9cfe9a7038bfe7cd38ab03d5e1.tar.bz2 linux-3.10-ccf5ae83a6cf3d9cfe9a7038bfe7cd38ab03d5e1.zip |
target: close target_put_sess_cmd() vs. core_tmr_abort_task() race
It is possible for one thread to to take se_sess->sess_cmd_lock in
core_tmr_abort_task() before taking a reference count on
se_cmd->cmd_kref, while another thread in target_put_sess_cmd() drops
se_cmd->cmd_kref before taking se_sess->sess_cmd_lock.
This introduces kref_put_spinlock_irqsave() and uses it in
target_put_sess_cmd() to close the race window.
Signed-off-by: Joern Engel <joern@logfs.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions