[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZUtUWTcrqHG6MNZa@ninjato>
Date:   Wed, 8 Nov 2023 10:26:49 +0100
From:   Wolfram Sang <wsa@...nel.org>
To:     Philipp Stanner <pstanner@...hat.com>
Cc:     linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
        Dave Airlie <airlied@...hat.com>
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@...hat.com>
> Signed-off-by: Philipp Stanner <pstanner@...hat.com>
Applied to for-current, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists