Re: [PATCH 2/2] ALSA: compress_offload: avoid 64-bit get_user()
From: Vinod Koul
Date: Mon Dec 16 2024 - 11:32:58 EST
On 16-12-24, 10:33, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> On some architectures, get_user() cannot read a 64-bit user variable:
>
> arm-linux-gnueabi-ld: sound/core/compress_offload.o: in function `snd_compr_ioctl':
> compress_offload.c:(.text.snd_compr_ioctl+0x538): undefined reference to `__get_user_bad'
>
> Use an equivalent copy_from_user() instead.
Acked-by: Vinod Koul <vkoul@xxxxxxxxxx>
--
~Vinod