aboutsummaryrefslogtreecommitdiff
path: root/include/linux/uwb.h
diff options
context:
space:
mode:
authorJoern Engel2013-05-13 16:30:06 -0400
committerNicholas Bellinger2013-05-15 01:47:35 -0700
commitccf5ae83a6cf3d9cfe9a7038bfe7cd38ab03d5e1 (patch)
treecb3966328bce7584d4c24434490dc21a67ecb48b /include/linux/uwb.h
parenta1321ddd27e65c6ada5b9a12cae4ee2612d76893 (diff)
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 'include/linux/uwb.h')
0 files changed, 0 insertions, 0 deletions