Messages in this thread | | | Date | Wed, 8 Nov 2023 10:26:49 +0100 | From | Wolfram Sang <> | Subject | Re: [PATCH] drivers/i2c: copy userspace array safely |
| |
On Thu, Nov 02, 2023 at 08:26:13PM +0100, Philipp Stanner wrote: > i2c-dev.c utilizes memdup_user() to copy a userspace array. This is done > without an overflow check. > > Use the new wrapper memdup_array_user() to copy the array more safely. > > Suggested-by: Dave Airlie <airlied@redhat.com> > Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Applied to for-current, thanks!
[unhandled content-type:application/pgp-signature] | |