Hi!
From: Parav Pandit parav@nvidia.com
[ 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 parav@nvidia.com Reviewed-by: Eli Cohen elic@nvidia.com Reviewed-by: Jason Wang jasowang@redhat.com Link: https://lore.kernel.org/r/20210105103203.82508-4-parav@nvidia.com Signed-off-by: Michael S. Tsirkin mst@redhat.com
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 edumazet@google.com Reported-by: syzbot syzkaller@googlegroups.com Cc: Parav Pandit parav@nvidia.com Cc: Eli Cohen elic@nvidia.com Cc: Jason Wang jasowang@redhat.com Cc: Michael S. Tsirkin mst@redhat.com Link: https://lore.kernel.org/r/20210210134911.4119555-1-eric.dumazet@gmail.com Signed-off-by: Michael S. Tsirkin mst@redhat.com Signed-off-by: Sasha Levin sashal@kernel.org
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