summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorHyunjung Ko <hj351016@gmail.com>2026-11-09 01:58:12 +0900
committerJarkko Sakkinen <jarkko@kernel.org>2026-11-10 14:52:19 +0200
commitc22052a012698ce56d599d75b669d55778521c7c (patch)
tree4ad383a92958cda62153054c640a8ed320932e6e /include/linux/timerqueue.h
parent0a385f668ba77d29ae167c1668fd452418ebc9d6 (diff)
tpm: flush timeout work outside buffer_mutex to avoid deadlock
tpm_common_read() calls flush_work(&priv->timeout_work) under priv->buffer_mutex, but tpm_timeout_work() also takes buffer_mutex, so a running timeout work deadlocks the flush. Flush after unlocking; the timer is deleted under the lock, so no new work can be queued. Fixes: 9488585b21be ("tpm: add support for partial reads") Cc: stable@vger.kernel.org Signed-off-by: Hyunjung Ko <hj351016@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20261108165812.676876-1-hj351016@gmail.com Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions