diff options
| author | 2026-05-17 18:51:20 +0200 | |
|---|---|---|
| committer | 2026-05-17 21:49:47 +0200 | |
| commit | e4d3386b74fba8e01280484b67ee481ece00201e (patch) | |
| tree | dba5c4ad56bab359b85b5f16b885a50615b01221 /security/apparmor/ssh:/git@git.zx2c4.com/git: | |
| parent | ALSA: hda/realtek: Add mute LED quirk for HP Pavilion Plus 14 (diff) | |
ALSA: pcm: Don't setup bogus iov_iter for silencing
At transition to the iov_iter for PCM data transfer, we blindly
applied the iov_iter setup also for silencing (i.e. data = NULL), and
it leads to a calculation of bogus iov_iter. Fortunately this didn't
cause troubles on most of architectures but it goes wrong on RISC-V
now, causing a NULL dereference.
Handle the NULL data case to treat the silencing in interleaved_copy()
for addressing the bug above. noninterleaved_copy() has already the
NULL data handling, so it doesn't need changes.
Reported-by: Jiakai Xu <xujiakai24@mails.ucas.ac.cn>
Closes: https://lore.kernel.org/20260515051516.3103036-1-xujiakai24@mails.ucas.ac.cn
Fixes: cf393babb37a ("ALSA: pcm: Add copy ops with iov_iter")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20260517165121.31399-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'security/apparmor/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
