Re: [PATCH] vduse: prevent uninitialized memory accesses

2022-08-29 Thread Maxime Coquelin
On 8/27/22 08:54, Dan Carpenter wrote: On Fri, Aug 26, 2022 at 06:16:05PM +0200, Maxime Coquelin wrote: If the VDUSE application provides a smaller config space than the driver expects, the driver may use uninitialized memory from the stack. This patch prevents it by initializing the buffer

[PATCH v2] vduse: prevent uninitialized memory accesses

2022-08-29 Thread Maxime Coquelin
If the VDUSE application provides a smaller config space than the driver expects, the driver may use uninitialized memory from the stack. This patch prevents it by initializing the buffer passed by the driver to store the config value. This fix addresses CVE-2022-2308. Cc: xieyon...@bytedance.co

Re: [PATCH v2] vduse: prevent uninitialized memory accesses

2022-08-29 Thread Greg KH
On Mon, Aug 29, 2022 at 09:34:24AM +0200, Maxime Coquelin wrote: > If the VDUSE application provides a smaller config space > than the driver expects, the driver may use uninitialized > memory from the stack. > > This patch prevents it by initializing the buffer passed by > the driver to store the

[PATCH v2] virtio_blk: add SECURE ERASE command support

2022-08-29 Thread Alvaro Karsz
Support for the VIRTIO_BLK_F_SECURE_ERASE VirtIO feature. A device that offers this feature can receive VIRTIO_BLK_T_SECURE_ERASE commands. A device which supports this feature has the following fields in the virtio config: - max_secure_erase_sectors - max_secure_erase_seg - secure_erase_sector_

Re: [PATCH net-next v4 0/9] vsock: updates for SO_RCVLOWAT handling

2022-08-29 Thread Stefano Garzarella
On Tue, Aug 23, 2022 at 10:57:01PM +0200, Paolo Abeni wrote: On Tue, 2022-08-23 at 16:30 -0400, Stefan Hajnoczi wrote: On Tue, Aug 23, 2022 at 12:18:52PM -0700, Jakub Kicinski wrote: > On Tue, 23 Aug 2022 15:14:10 -0400 Stefan Hajnoczi wrote: > > Stefano will be online again on Monday. I suggest

Re: [PATCH v3 1/2] virtio-net: introduce and use helper function for guest gso support checks

2022-08-29 Thread Xuan Zhuo
On Tue, 30 Aug 2022 05:26:33 +0300, Gavin Li wrote: > Probe routine is already several hundred lines. > Use helper function for guest gso support check. > > Signed-off-by: Gavin Li > Reviewed-by: Gavi Teitz > Reviewed-by: Parav Pandit Reviewed-by: Xuan Zhuo > --- > changelog: > v1->v2 > - A

Re: [virtio-dev] [PATCH v3 2/2] virtio-net: use mtu size as buffer length for big packets

2022-08-29 Thread Xuan Zhuo
On Tue, 30 Aug 2022 05:26:34 +0300, Gavin Li wrote: > Currently add_recvbuf_big() allocates MAX_SKB_FRAGS segments for big > packets even when GUEST_* offloads are not present on the device. > However, if guest GSO is not supported, it would be sufficient to > allocate segments to cover just up th