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 2/3] Revert "ALSA: timer: Fix UAF at snd_timer_user_params()"
Date: Tue, 9 Jun 2026 13:50:54 +0200 [thread overview]
Message-ID: <20260609115100.806869-3-tiwai@suse.de> (raw)
In-Reply-To: <20260609115100.806869-1-tiwai@suse.de>
This reverts commit 053a401b592be424fea9d57c789f66cd5d8cec11.
With the change of the timer object lifecycle with kref, this
temporary workaround is no longer needed.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/core/timer.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 6d8fc1ee29f5..6baa63a3bad0 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1861,7 +1861,6 @@ static int snd_timer_user_params(struct file *file,
struct snd_timer_params params;
int err;
- guard(mutex)(®ister_mutex);
tu = file->private_data;
if (!tu->timeri)
return -EBADFD;
--
2.54.0
next prev parent 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 [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 ` Takashi Iwai [this message]
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-3-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®