diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-28 13:23:52 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-29 07:32:48 +0200 |
| commit | 1bbc033983b76f41d51d4a48838bf94c5e6b6f50 (patch) | |
| tree | 646cc3dee9c46dc1fb86b859d2ec8b2b29207c2a /tools/lib/python/kdoc/python_version.py | |
| parent | d243bb01c86cf7e6aaec53bf0eb8bac8c92ecffa (diff) | |
ALSA: timer: Handle userspace-driven timer ioctls from 32-bit tasks
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>
Link: https://patch.msgid.link/20260928182352.309457-1-danishkhateeb03@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
