diff options
| author | Shixiong Ou <oushixiong@kylinos.cn> | 2026-07-29 16:48:15 +0800 |
|---|---|---|
| committer | Jocelyn Falempe <jfalempe@redhat.com> | 2026-08-13 15:49:40 +0200 |
| commit | f4f2bba28df9b9aaa00262a462139dbbcdc38d9f (patch) | |
| tree | d20e3bd7c46cd02a28ace2e2281502d53484725b /tools/perf/scripts/python/bin | |
| parent | 60baa179ed1333535f6e2da4133511db55278ee4 (diff) | |
drm/log: Fix infinite loop when scale is too large for display
When scale is large enough that scaled_font exceeds the display
dimensions, rows or columns become 0. A columns value of 0 causes
an infinite loop in drm_log_draw_kmsg_record() because the loop
never decrements len.
Check for zero rows/columns in drm_log_setup_modeset() and return
an error, cleaning up the already allocated buffer to avoid a leak.
Fixes: 8a4b913df427 ("drm/log: Add integer scaling support")
Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260729084815.692944-1-oushixiong1025@163.com
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
