From: Takashi Iwai <tiwai@suse.de>
To: linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Kyle Zeng <kylebot@openai.com>
Subject: [PATCH 0/3] ALSA: more fixes for timer
Date: Tue, 9 Jun 2026 13:50:52 +0200 [thread overview]
Message-ID: <20260609115100.806869-1-tiwai@suse.de> (raw)
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
next reply other threads:[~2026-06-09 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 11:50 Takashi Iwai [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260609115100.806869-1-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=kylebot@openai.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®