Re: [PATCH] drm/amdgpu: Fix out-of-bounds write warning

2024-04-26 Thread Christian König
Am 26.04.24 um 05:24 schrieb Ma, Jun: On 4/25/2024 8:39 PM, Christian König wrote: Am 25.04.24 um 12:00 schrieb Ma Jun: Check the ring type value to fix the out-of-bounds write warning Signed-off-by: Ma Jun --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 5 + 1 file changed, 5 inserti

Re: [PATCH] drm/amdgpu: Fix out-of-bounds write warning

2024-04-25 Thread Ma, Jun
On 4/25/2024 8:39 PM, Christian König wrote: > > > Am 25.04.24 um 12:00 schrieb Ma Jun: >> Check the ring type value to fix the out-of-bounds >> write warning >> >> Signed-off-by: Ma Jun >> --- >> drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 5 + >> 1 file changed, 5 insertions(+) >> >>

Re: [PATCH] drm/amdgpu: Fix out-of-bounds write warning

2024-04-25 Thread Christian König
Am 25.04.24 um 12:00 schrieb Ma Jun: Check the ring type value to fix the out-of-bounds write warning Signed-off-by: Ma Jun --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-27 Thread Guenter Roeck
On 10/27/21 8:22 AM, Harry Wentland wrote: On 2021-10-27 10:39, Guenter Roeck wrote: On Wed, Oct 13, 2021 at 04:04:13PM -0400, Thelford Williams wrote: Size can be any value and is user controlled resulting in overwriting the 40 byte array wr_buf with an arbitrary length of data from buf. Sign

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-27 Thread Harry Wentland
On 2021-10-27 10:39, Guenter Roeck wrote: > On Wed, Oct 13, 2021 at 04:04:13PM -0400, Thelford Williams wrote: >> Size can be any value and is user controlled resulting in overwriting the >> 40 byte array wr_buf with an arbitrary length of data from buf. >> >> Signed-off-by: Thelford Williams >> S

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-27 Thread Guenter Roeck
On Wed, Oct 13, 2021 at 04:04:13PM -0400, Thelford Williams wrote: > Size can be any value and is user controlled resulting in overwriting the > 40 byte array wr_buf with an arbitrary length of data from buf. > > Signed-off-by: Thelford Williams > Signed-off-by: Alex Deucher The fix works, but

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-27 Thread Patrik Jakobsson
On Wed, Oct 27, 2021 at 12:08 PM Patrik Jakobsson wrote: > > On Wed, Oct 13, 2021 at 10:41 PM Alex Deucher wrote: > > > > On Wed, Oct 13, 2021 at 4:04 PM T. Williams wrote: > > > > > > > The description and s-o-b should go here and the patch seems to be > > mangled. I've manually applied this.

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-27 Thread Patrik Jakobsson
On Wed, Oct 13, 2021 at 10:41 PM Alex Deucher wrote: > > On Wed, Oct 13, 2021 at 4:04 PM T. Williams wrote: > > > > The description and s-o-b should go here and the patch seems to be > mangled. I've manually applied this. Please fix up your mailer in > the future. > > Thanks for the fix. Hi Th

Re: [PATCH] drm/amdgpu: fix out of bounds write

2021-10-13 Thread Alex Deucher
On Wed, Oct 13, 2021 at 4:04 PM T. Williams wrote: > The description and s-o-b should go here and the patch seems to be mangled. I've manually applied this. Please fix up your mailer in the future. Thanks for the fix. Alex > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c |