Re: [PATCH 10/11] virtio: rng: Check length before copying

2022-04-11 Thread Simon Glass
On Thu, 31 Mar 2022 at 04:10, Andrew Scull wrote: > > Check the length of data written by the device is consistent with the > size of the buffers to avoid out-of-bounds memory accesses in case > values aren't consistent. > > Signed-off-by: Andrew Scull > Cc: Sughosh Ganu > --- > drivers/virtio/

Re: [PATCH 10/11] virtio: rng: Check length before copying

2022-04-07 Thread Andrew Scull
On Wed, 6 Apr 2022 at 15:18, Pierre-Clément Tosi wrote: > > Hi, > > On Thu, Mar 31, 2022 at 10:09:48AM +, Andrew Scull wrote: > > Check the length of data written by the device is consistent with the > > size of the buffers to avoid out-of-bounds memory accesses in case > > values aren't consi

Re: [PATCH 10/11] virtio: rng: Check length before copying

2022-04-06 Thread Pierre-Clément Tosi
Hi, On Thu, Mar 31, 2022 at 10:09:48AM +, Andrew Scull wrote: > Check the length of data written by the device is consistent with the > size of the buffers to avoid out-of-bounds memory accesses in case > values aren't consistent. > > Signed-off-by: Andrew Scull > Cc: Sughosh Ganu > --- >