Re: [PATCH V3 1/2] drm/radeon: Fix integer overflow in radeon_cs_parser_init

2023-04-27 Thread whitehat002 whitehat002
Hello, What is the current status of this patch, has it been applied? Alex Deucher 于2023年4月19日周三 21:49写道: > Applied. Thanks! > > Alex > > On Wed, Apr 19, 2023 at 8:24 AM Christian König > wrote: > > > > Am 19.04.23 um 14:20 schrieb hackyzh002: > > > The type of size is unsigned, if size is

[PATCH V3 1/2] drm/radeon: Fix integer overflow in radeon_cs_parser_init

2023-04-20 Thread hackyzh002
The type of size is unsigned, if size is 0x4000, there will be an integer overflow, size will be zero after size *= sizeof(uint32_t), will cause uninitialized memory to be referenced later Signed-off-by: hackyzh002 --- drivers/gpu/drm/radeon/radeon_cs.c | 3 ++- 1 file changed, 2

Re: [PATCH V3 1/2] drm/radeon: Fix integer overflow in radeon_cs_parser_init

2023-04-19 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Apr 19, 2023 at 8:24 AM Christian König wrote: > > Am 19.04.23 um 14:20 schrieb hackyzh002: > > The type of size is unsigned, if size is 0x4000, there will be an > > integer overflow, size will be zero after size *= sizeof(uint32_t), > > will cause

Re: [PATCH V3 1/2] drm/radeon: Fix integer overflow in radeon_cs_parser_init

2023-04-19 Thread Christian König
Am 19.04.23 um 14:20 schrieb hackyzh002: The type of size is unsigned, if size is 0x4000, there will be an integer overflow, size will be zero after size *= sizeof(uint32_t), will cause uninitialized memory to be referenced later Signed-off-by: hackyzh002 Reviewed-by: Christian König