Re: [PATCH] ALSA: compress_offload: Fix get_user usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Dec 16, 2024 at 10:32 AM Shengjiu Wang <shengjiu.wang@xxxxxxx> wrote:
>
> ERROR: modpost: "__get_user_bad" [sound/core/snd-compress.ko] undefined!
>
> Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202412141955.FBjr5T5q-lkp@xxxxxxxxx/
> Signed-off-by: Shengjiu Wang <shengjiu.wang@xxxxxxx>
> ---
>  sound/core/compress_offload.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
> index 6f2d389abd04..dadf074359ec 100644
> --- a/sound/core/compress_offload.c
> +++ b/sound/core/compress_offload.c
> @@ -1182,7 +1182,7 @@ static int snd_compr_task_seq(struct snd_compr_stream *stream, unsigned long arg
>
>         if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
>                 return -EPERM;
> -       retval = get_user(seqno, (__u64 __user *)arg);
> +       retval = get_user(seqno, (__u32 __user *)arg);

This change may not be accurate. Do we have get_user() for 64bit?

Best regards
Shengjiu Wang

>         if (retval < 0)
>                 return retval;
>         retval = 0;
> --
> 2.37.1
>
>





[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux