Re: [PATCH V3] vp_vdpa: fix id_table array not null terminated error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 5, 2024 at 9:35 PM Xiaoguang Wang <lege.wang@xxxxxxxxxxxxxxx> wrote:
>
> Allocate one extra virtio_device_id as null terminator, otherwise
> vdpa_mgmtdev_get_classes() may iterate multiple times and visit
> undefined memory.
>
> Fixes: ffbda8e9df10 ("vdpa/vp_vdpa : add vdpa tool support in vp_vdpa")
> Cc: stable@xxxxxxxxxxxxxxx
> Suggested-by: Parav Pandit <parav@xxxxxxxxxx>
> Signed-off-by: Angus Chen <angus.chen@xxxxxxxxxxxxxxx>
> Signed-off-by: Xiaoguang Wang <lege.wang@xxxxxxxxxxxxxxx>
> ---

Acked-by: Jason Wang <jasowang@xxxxxxxxxx>

Thanks






[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux