Re: [PATCH v2] drm: Fix the length of event_string in drm_dev_wedged_event()

2025-04-08 Thread Raag Jadav
On Tue, Apr 08, 2025 at 07:27:28PM +0800, jiangf...@kylinos.cn wrote: > From: Feng Jiang > > When calling scnprintf() to append recovery method to event_string, > the second argument should be `sizeof(event_string) - len`, otherwise > there is a potential overflow problem. Thanks. Perhaps change

[PATCH v2] drm: Fix the length of event_string in drm_dev_wedged_event()

2025-04-08 Thread jiangfeng
From: Feng Jiang When calling scnprintf() to append recovery method to event_string, the second argument should be `sizeof(event_string) - len`, otherwise there is a potential overflow problem. Fixes: b7cf9f4ac1b8 ("drm: Introduce device wedged event") Signed-off-by: Feng Jiang --- v2: - update