[PATCH v3] drm/modes: Fix division by zero due to overflow

2023-08-02 Thread Ziqi Zhao
. Please let me know if this usage is appropriate. Reported-by: syzbot+622bba18029bcde67...@syzkaller.appspotmail.com Signed-off-by: Ziqi Zhao --- V1 -> V2: address style comments suggested by Jani Nikula V2 -> V3: change title to include context on overflow causing the division by z

[PATCH v2] drm/modes: Fix division by zero error

2023-08-01 Thread Ziqi Zhao
. Please let me know if this usage is appropriate. Reported-by: syzbot+622bba18029bcde67...@syzkaller.appspotmail.com Signed-off-by: Ziqi Zhao --- V1 -> V2: address style comments suggested by Jani Nikula drivers/gpu/drm/drm_modes.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletion

[PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-07-21 Thread Ziqi Zhao
le to keep track of how many connectors are initialized indeed, and use that variable to decrease any refcounts in the "out" branch. Reported-by: syzbot+4fad2e57beb6397ab...@syzkaller.appspotmail.com Signed-off-by: Ziqi Zhao --- drivers/gpu/drm/drm_crtc.c | 9 + 1 file changed

[PATCH] drm/modes: Fix division by zero error

2023-07-21 Thread Ziqi Zhao
. Please let me know if this usage is appropriate. Reported-by: syzbot+622bba18029bcde67...@syzkaller.appspotmail.com Signed-off-by: Ziqi Zhao --- drivers/gpu/drm/drm_modes.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/

[PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-07-15 Thread Ziqi Zhao
le to keep track of how many connectors are initialized indeed, and use that variable to decrease any refcounts in the "out" branch. #syz test: https://github.com/google/kmsan.git master Reported-by: syzbot+4fad2e57beb6397ab...@syzkaller.appspotmail.com Signed-off-by: Ziqi Zhao

[PATCH] drm/modes: Fix division by zero error

2023-07-09 Thread Ziqi Zhao
. Please let me know if this usage is appropriate. #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Signed-off-by: Ziqi Zhao --- drivers/gpu/drm/drm_modes.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.

[Linux-kernel-mentorship] [PATCH] drm/amdgpu: remove excess parameter description in amdgpu_device.c

2023-05-24 Thread Ziqi Zhao
;pcie_index' description in 'amdgpu_device_indirect_wreg' Note: I assume the description can be safely removed based on this earlier patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch?id=65ba96e91b689c23d6fa99c11cfd65965dcddc47 Signed-off-by: Ziqi Zhao ---