Re: [PATCH v3] drm: Fix potential overflow issue in event_string array

2025-05-02 Thread Rodrigo Vivi
On Thu, May 01, 2025 at 03:22:25PM +0300, Raag Jadav wrote: > On Wed, Apr 09, 2025 at 09:24:41AM +0300, Raag Jadav wrote: > > On Wed, Apr 09, 2025 at 09:46:33AM +0800, jiangf...@kylinos.cn wrote: > > > From: Feng Jiang > > > > > > When calling scnprintf() to append recovery method to event_string

Re: [PATCH v3] drm: Fix potential overflow issue in event_string array

2025-05-01 Thread Raag Jadav
On Wed, Apr 09, 2025 at 09:24:41AM +0300, Raag Jadav wrote: > On Wed, Apr 09, 2025 at 09:46:33AM +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`, othe

Re: [PATCH v3] drm: Fix potential overflow issue in event_string array

2025-04-10 Thread Raag Jadav
On Wed, Apr 09, 2025 at 09:46:33AM +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. > > Fixes: b7cf9f4ac1b

Re: [PATCH v3] drm: Fix potential overflow issue in event_string array

2025-04-08 Thread André Almeida
Em 08/04/2025 22:46, jiangf...@kylinos.cn escreveu: 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 wedg

[PATCH v3] drm: Fix potential overflow issue in event_string array

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 --- v3: - update