mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] ALSA: more fixes for timer
@ 2026-06-09 11:50 Takashi Iwai
  2026-06-09 11:50 ` [PATCH 1/3] ALSA: timer: Manage timer object with kref Takashi Iwai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Takashi Iwai @ 2026-06-09 11:50 UTC (permalink / raw)
  To: linux-sound; +Cc: linux-kernel, Kyle Zeng

Hi,

as there are still open holes in ALSA timer code that may lead to
UAFs, here is a patch to address more drastically, by introducing the
refcounting for the timer object's lifecycle.  With this change, the
previous workaround is no longer needed, hence it's reverted in the
second patch.  And, the third one is to assure the pending work being
finished at freeing.  I don't think we've received a report about it,
but just to be sure.

This is targeted for 7.2.


Takashi

===

Takashi Iwai (3):
  ALSA: timer: Manage timer object with kref
  Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"
  ALSA: timer: Disable work at freeing timer object

 include/sound/timer.h      |   6 +++
 sound/core/seq/seq_timer.c |  11 ++--
 sound/core/timer.c         | 107 +++++++++++++++++++++++++++----------
 sound/core/timer_compat.c  |   5 +-
 4 files changed, 97 insertions(+), 32 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-09 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 11:50 [PATCH 0/3] ALSA: more fixes for timer Takashi Iwai
2026-06-09 11:50 ` [PATCH 1/3] ALSA: timer: Manage timer object with kref Takashi Iwai
2026-06-09 11:50 ` [PATCH 2/3] Revert "ALSA: timer: Fix UAF at snd_timer_user_params()" Takashi Iwai
2026-06-09 11:50 ` [PATCH 3/3] ALSA: timer: Disable work at freeing timer object Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®