[PATCH] drm/virtio: add driver_priv validation in virtio_gpu_create_context

2024-03-28 Thread Maxim Korotkov
ng.org) Fixes: 72b48ae800da ("drm/virtio: enqueue virtio_gpu_create_context after the first 3D ioctl") Signed-off-by: Maxim Korotkov --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_ioctl.c b/drivers/gpu/drm/virti

[PATCH] drm/bochs: avoided potential integer overflow

2024-03-13 Thread Maxim Korotkov
if the bochs_dispi_read() function returns a value between 0x8000 and 0x, then an overflow may occurs. Found by Security Code and Linux Verification Center (linuxtesting.org) Signed-off-by: Maxim Korotkov --- drivers/gpu/drm/tiny/bochs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion