linux-stable/sound/core
Takashi Iwai b9ec6441cb ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl
commit 358040e380 upstream.

The update of rate_num/den and msbits were factored out to
fixup_unreferenced_params() function to be called explicitly after the
hw_refine or hw_params procedure.  It's called from
snd_pcm_hw_refine_user(), but it's forgotten in the PCM compat ioctl.
This ended up with the incomplete rate_num/den and msbits parameters
when 32bit compat ioctl is used.

This patch adds the missing call in snd_pcm_ioctl_hw_params_compat().

Reported-by: Meng_Cai@novatek.com.cn
Fixes: f9a076bff0 ("ALSA: pcm: calculate non-mask/non-interval parameters always when possible")
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20230829134344.31588-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-23 10:48:10 +02:00
..
oss ALSA: oss: avoid missing-prototype warnings 2023-06-09 10:24:00 +02:00
seq ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-09-23 10:47:58 +02:00
Kconfig
Makefile ALSA: ISA: not for M68K 2021-11-26 11:36:20 +01:00
compress_offload.c ALSA: compress: fix partial_drain completion state 2020-07-16 08:17:24 +02:00
control.c ALSA: ctl: fix error path at adding user-defined element set 2020-11-24 13:27:24 +01:00
control_compat.c treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
ctljack.c
device.c
hrtimer.c
hwdep.c ALSA: hwdep: fix a left shifting 1 by 31 UB bug 2020-06-03 08:19:38 +02:00
hwdep_compat.c
info.c ALSA: info: Fix llseek return value when using callback 2022-08-25 11:15:33 +02:00
info_oss.c
init.c ALSA: core: remove redundant spin_lock pair in snd_card_disconnect 2021-05-22 10:59:35 +02:00
isadma.c
jack.c ALSA: jack: Fix mutex call in snd_jack_report() 2023-08-11 11:45:14 +02:00
memalloc.c ALSA: memalloc: Align buffer allocations in page size 2022-07-29 17:10:36 +02:00
memory.c
misc.c ALSA: core: Add async signal helpers 2022-08-25 11:15:46 +02:00
pcm.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
pcm_compat.c ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl 2023-09-23 10:48:10 +02:00
pcm_dmaengine.c ALSA: dmaengine: increment buffer pointer atomically 2022-10-26 13:19:28 +02:00
pcm_drm_eld.c
pcm_iec958.c
pcm_lib.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
pcm_local.h
pcm_memory.c ALSA: pcm: Fix races among concurrent prealloc proc writes 2022-05-15 19:41:58 +02:00
pcm_misc.c ALSA: pcm: Test for "silence" field in struct "pcm_format_data" 2022-04-20 09:12:50 +02:00
pcm_native.c ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-05-15 19:41:58 +02:00
pcm_param_trace.h
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free() 2022-10-26 13:19:19 +02:00
rawmidi_compat.c
seq_device.c ALSA: seq: Fix a potential UAF by wrong private_free call order 2021-10-20 11:23:00 +02:00
sgbuf.c
sound.c
sound_oss.c ALSA: oss: Fix potential deadlock at unregistration 2022-10-26 13:19:19 +02:00
timer.c ALSA: timer: Use deferred fasync helper 2022-08-25 11:15:46 +02:00
timer_compat.c
vmaster.c