[PATCH] drm/i915/selftests: Fix wrong return value of perf_series_engines()

2020-11-17 Thread Zhang Xiaoxu
If intel context create failed, the perf_series_engines() will return 0 rather than error, because we doesn't initialize the return value. Fixes: cbfd3a0c5a55 ("drm/i915/selftests: Add request throughput measurement to perf") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- d

[PATCH] drm/i915/selftests: Fix wrong return value of perf_request_latency()

2020-11-17 Thread Zhang Xiaoxu
If intel context create failed, the perf_request_latency() will return 0 rather than error, because we doesn't initialize the return value. Fixes: 25c26f18ea79 ("drm/i915/selftests: Measure dispatch latency") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/gp

[PATCH rh7.5] vgacon: Fix a UAF in vgacon_invert_region

2020-03-03 Thread Zhang Xiaoxu
n TIOCLINUX, use the new_row_size to calc the offset, it maybe larger than the vga_vram_base in vgacon driver, then bad access. So, If the screen size larger than vga_vram, resize screen should be failed. This alse fix CVE-2020-8649 Fixes: 0aec4867dca14 ("[PATCH] SVGATextMode fix") Reported-by: Hulk R

[v4] vgacon: Fix a UAF in vgacon_invert_region

2020-03-03 Thread Zhang Xiaoxu
;[PATCH] SVGATextMode fix") Reference: CVE-2020-8647 and CVE-2020-8649 Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/video/console/vgacon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index de7b838

[v3] vgacon: Fix a UAF in vgacon_invert_region

2020-03-03 Thread Zhang Xiaoxu
;[PATCH] SVGATextMode fix") Reference: CVE-2020-8647 and CVE-2020-8649 Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/video/console/vgacon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index de7b838

[v2] vgacon: Fix a UAF in vgacon_invert_region

2020-03-03 Thread Zhang Xiaoxu
;[PATCH] SVGATextMode fix") Reference: CVE-2020-8647 and CVE-2020-8649 Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/video/console/vgacon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index de7b838

[PATCH] vgacon: Fix a UAF in vgacon_invert_region

2020-03-03 Thread Zhang Xiaoxu
bad access. So, If the screen size larger than vga_vram, resize screen should be failed. This alse fix CVE-2020-8649 Fixes: 0aec4867dca14 ("[PATCH] SVGATextMode fix") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/video/console/vgacon.c | 5 - 1 file changed, 4 insertio

[PATCH] drm/i915: Fix i915_error_state_store error defination

2020-01-17 Thread Zhang Xiaoxu
patch fix it. Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/gpu/drm/i915/i915_gpu_error.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.h b/drivers/gpu/drm/i915/i915_gpu_error.h index 9109004956bd..41c1475e1

[PATCH] drm/i915: Fix too few arguments to function i915_capture_error_state

2020-01-14 Thread Zhang Xiaoxu
r.h:267:20: note: declared here static inline void i915_capture_error_state(struct drm_i915_private *dev_priv, Fixes: 742379c0c400 ("drm/i915: Start chopping up the GPU error capture") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- drivers/gpu/drm/i915/i915_gpu_error.h | 4

[PATCH] drm/i915/dsi: Fix implicit declaration of function 'acpi_dev*' in 'mipi_exec_i2c'

2020-01-14 Thread Zhang Xiaoxu
Signed-off-by: Zhang Xiaoxu --- drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c index 89fb0d90b694..73a25e7ae090 100644 --- a/drive

[PATCH] drm/i915: Fix multiple definition of 'i915_vma_capture_finish'

2020-01-14 Thread Zhang Xiaoxu
: ./drivers/gpu/drm/i915/i915_gpu_error.h:312: first defined here So, add 'static inline' on the defineation of the 'i915_vma_capture_finish' Fixes: d713e3ab93fdc("drm/i915: Correct typo in i915_vma_compress_finish stub") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- d