linux/sound/core
Arnd Bergmann 19c4096ccd ALSA: compress_offload: tighten ioctl command number checks
The snd_compr_ioctl() ignores the upper 24 bits of the ioctl command
number and only compares the number of the ioctl command, which can
cause unintended behavior if an application tries to use an unsupprted
command that happens to have the same _IOC_NR() value.

Remove the truncation to the low bits and compare the entire ioctl
command code like every other driver does.

Fixes: b21c60a4ed ("ALSA: core: add support for compress_offload")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://patch.msgid.link/20250710063059.2683476-1-arnd@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2025-07-10 10:10:08 +02:00
..
oss ALSA: pcm: Fix race of buffer access at PCM OSS layer 2025-05-16 10:09:02 +02:00
seq Merge branch 'for-linus' into for-next 2025-05-16 09:58:35 +02:00
.kunitconfig
Kconfig
Makefile
compress_offload.c ALSA: compress_offload: tighten ioctl command number checks 2025-07-10 10:10:08 +02:00
control.c ALSA: core: use snd_kcontrol_chip() 2025-05-08 11:53:34 +02:00
control_compat.c
control_led.c ALSA: control: Avoid WARN() for symlink errors 2024-12-10 12:32:34 +01:00
ctljack.c
device.c ALSA: core: Remove unused snd_device_get_state 2025-05-05 12:36:29 +02:00
hrtimer.c ALSA: Switch to use hrtimer_setup() 2025-02-10 09:26:31 +01:00
hwdep.c
hwdep_compat.c
info.c
info_oss.c
init.c
isadma.c
jack.c USB/Thunderbolt changes for 6.16-rc1 2025-06-06 12:45:35 -07:00
memalloc.c ALSA: memalloc: prefer dma_mapping_error() over explicit address checking 2024-12-20 09:54:12 +01:00
memory.c ALSA: Align the syntax of iov_iter helpers with standard ones 2024-12-30 12:50:04 +01:00
misc.c
pcm.c ALSA: pcm: Convert to SYSTEM_SLEEP_PM_OPS() 2025-03-14 11:07:13 +01:00
pcm_compat.c
pcm_dmaengine.c ALSA: pcm: Remove unused snd_dmaengine_pcm_open_request_chan 2025-05-05 12:36:29 +02:00
pcm_drm_eld.c ALSA: hda/hdmi: extract common interface for ELD handling 2025-02-05 13:04:00 +01:00
pcm_iec958.c
pcm_lib.c
pcm_local.h
pcm_memory.c ALSA: pcm: Make snd_pcm_lib_malloc_pages() debug message say "allocate" 2025-04-22 15:00:24 +02:00
pcm_misc.c ALSA: pcm: Remove unused snd_pcm_rate_range_to_bits 2025-05-05 12:36:29 +02:00
pcm_native.c ALSA: pcm: Fix race of buffer access at PCM OSS layer 2025-05-16 10:09:02 +02:00
pcm_param_trace.h
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: rawmidi: Make tied_device=0 as default / unknown 2025-01-14 16:52:07 +01:00
rawmidi_compat.c
seq_device.c ALSA: core: fix up bus match const issues. 2025-05-22 20:29:45 +02:00
sound.c
sound_kunit.c
sound_oss.c
timer.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
timer_compat.c
ump.c ALSA: rawmidi: Make tied_device=0 as default / unknown 2025-01-14 16:52:07 +01:00
ump_convert.c
vmaster.c