Hi! > From: Parav Pandit > > [ Upstream commit 33b347503f014ebf76257327cbc7001c6b721956 ] > > To add one or more VDPA devices, define a management device which > allows adding or removing vdpa device. A management device defines > set of callbacks to manage vdpa devices. > > To begin with, it defines add and remove callbacks through which a user > defined vdpa device can be added or removed. This looks quite intrusive; is it meant to be in -stable, or is it some kind of mistake? Best regards, Pavel > Signed-off-by: Parav Pandit > Reviewed-by: Eli Cohen > Reviewed-by: Jason Wang > Link: https://lore.kernel.org/r/20210105103203.82508-4-parav@nvidia.com > Signed-off-by: Michael S. Tsirkin > > Including a bugfix: > > vpda: correctly size vdpa_nl_policy > > We need to ensure last entry of vdpa_nl_policy[] > is zero, otherwise out-of-bounds access is hurting us. > > Signed-off-by: Eric Dumazet > Reported-by: syzbot > Cc: Parav Pandit > Cc: Eli Cohen > Cc: Jason Wang > Cc: Michael S. Tsirkin > Link: https://lore.kernel.org/r/20210210134911.4119555-1-eric.dumazet@gmail.com > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Sasha Levin > --- > drivers/vdpa/Kconfig | 1 + > drivers/vdpa/vdpa.c | 213 +++++++++++++++++++++++++++++++++++++- > include/linux/vdpa.h | 31 ++++++ > include/uapi/linux/vdpa.h | 31 ++++++ > 4 files changed, 275 insertions(+), 1 deletion(-) > create mode 100644 include/uapi/linux/vdpa.h -- http://www.livejournal.com/~pavelmachek