From: Takashi Iwai <tiwai@suse.de>
To: Danish Khateeb <danishkhateeb03@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
Ivan Orlov <ivan.orlov0322@gmail.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] ALSA: timer: Handle userspace-driven timer ioctls from 32-bit tasks
Date: Tue, 29 Sep 2026 07:34:27 +0200 [thread overview]
Message-ID: <87v77o39jw.wl-tiwai@suse.de> (raw)
In-Reply-To: <20260928182352.309457-1-danishkhateeb03@gmail.com>
On Mon, 28 Sep 2026 20:23:52 +0200,
Danish Khateeb wrote:
>
> 32-bit tasks on a 64-bit kernel can't use userspace-driven timers. The
> compat handler for /dev/snd/timer doesn't list SNDRV_TIMER_IOCTL_CREATE,
> so creating a timer fails with -ENOTTY. The file returned for a timer
> has no .compat_ioctl either, so SNDRV_TIMER_IOCTL_TRIGGER fails with
> -ENOTTY too.
>
> struct snd_timer_uinfo has the same layout for 32-bit and 64-bit tasks,
> and SNDRV_TIMER_IOCTL_TRIGGER takes no argument, so both commands can
> be passed through unchanged.
>
> The utimer selftest doesn't catch this when built with -m32: it takes
> -ENOTTY from SNDRV_TIMER_IOCTL_CREATE to mean CONFIG_SND_UTIMER=n and
> skips.
>
> Fixes: 37745918e0e7 ("ALSA: timer: Introduce virtual userspace-driven timers")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Applied to for-next branch now. Thanks.
Takashi
prev parent reply other threads:[~2026-09-29 5:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 18:23 Danish Khateeb
2026-09-29 5:34 ` Takashi Iwai [this message]
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=87v77o39jw.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=danishkhateeb03@gmail.com \
--cc=ivan.orlov0322@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
/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®