[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180425103315.261058445@linuxfoundation.org>
Date: Wed, 25 Apr 2018 12:33:19 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Gerd Hoffmann <kraxel@...hat.com>,
Alex Williamson <alex.williamson@...hat.com>,
Zhenyu Wang <zhenyuw@...ux.intel.com>
Subject: [PATCH 4.16 10/26] drm/i915/gvt: throw error on unhandled vfio ioctls
4.16-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gerd Hoffmann <kraxel@...hat.com>
commit 9f591ae60e1be026901398ef99eede91237aa3a1 upstream.
On unknown/unhandled ioctls the driver should return an error, so
userspace knows it tried to use something unsupported.
Cc: stable@...r.kernel.org
Signed-off-by: Gerd Hoffmann <kraxel@...hat.com>
Reviewed-by: Alex Williamson <alex.williamson@...hat.com>
Signed-off-by: Zhenyu Wang <zhenyuw@...ux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/gpu/drm/i915/gvt/kvmgt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
@@ -1284,7 +1284,7 @@ static long intel_vgpu_ioctl(struct mdev
}
- return 0;
+ return -ENOTTY;
}
static ssize_t
Powered by blists - more mailing lists