[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87zfjb9y4i.wl-tiwai@suse.de>
Date: Tue, 28 Jan 2025 08:49:17 +0100
From: Takashi Iwai <tiwai@...e.de>
To: yangchenyuan <chenyuan0y@...il.com>
Cc: perex@...ex.cz,
tiwai@...e.com,
viro@...iv.linux.org.uk,
brauner@...nel.org,
pavel.hofman@...tera.com,
jbrunet@...libre.com,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
zijie98@...il.com
Subject: Re: [PATCH] ALSA: pcm: use new array-copying-wrapper
On Mon, 27 Jan 2025 17:06:55 +0100,
yangchenyuan wrote:
>
> From: Chenyuan Yang <chenyuan0y@...il.com>
>
> This is found by our static analysis tool.
>
> pcm_native.c utilizes memdup_user() to copy an array from userspace.
>
> There is a new wrapper, specifically designed for copying arrays. Use
> this one instead.
>
> This is similar to the
> commit 3e91a38de1dc ("fbdev: viafb: use new array-copying-wrapper").
>
> Fixes: 67616feda99e ("ALSA: pcm: Unify ioctl functions for playback and capture streams")
This use of Fixes tag is misleading: the original code is correct, per
se, and the original commit was 4.14, where it had no no
memdup_array_user() available (introduced since 6.7).
So I applied with the drop of Fixes tag.
thanks,
Takashi
Powered by blists - more mailing lists