[Bug 2039926] Re: Error UBSAN: array-index-out-of-bounds amdgpu (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

2024-04-09 Thread Mario Limonciello
Variable sized arrays have fallen out of fashion.

There are various patches like that which fix this issue every time it
crops up.

If you can still reproduce on the latest 6.9-rc kernels you should
report a bug upstream to get the remaining cases fixed. Or if you feel
comfortable you can write a patch for any remaining cases you hit. As
you can see it's a trivial fix.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039926

Title:
  Error UBSAN: array-index-out-of-bounds amdgpu
  (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2039926/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2039926] Re: Error UBSAN: array-index-out-of-bounds amdgpu (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

2024-04-09 Thread Mario Limonciello
https://patchwork.freedesktop.org/patch/588305/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039926

Title:
  Error UBSAN: array-index-out-of-bounds amdgpu
  (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2039926/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2039926] Re: Error UBSAN: array-index-out-of-bounds amdgpu (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

2024-04-08 Thread StoatWblr
Same issue with VERDE - (atombios and si_dpm) in both 6.5 and 6.8 series
kernels on both radeon and amdgpu drivers

Whatever this is isn't just 1 or 2 places in the driver (and it's been
occurring for several years)

Ubuntu Noble boot (dual W4100 quad-head cards), radeon driver - the
amdgpu messages are similar

[   11.030090] UBSAN: array-index-out-of-bounds in 
/build/linux-zdc93w/linux-6.8.0/drivers/gpu/drm/radeon/radeon_atombios.c:2718:34
[   11.030095] index 48 is out of range for type 'UCHAR [1]'

[   11.031839] UBSAN: array-index-out-of-bounds in 
/build/linux-zdc93w/linux-6.8.0/drivers/gpu/drm/radeon/radeon_atombios.c:2716:55
[   11.031843] index 1 is out of range for type 'UCHAR [1]'


[   11.032818] UBSAN: array-index-out-of-bounds in 
/build/linux-zdc93w/linux-6.8.0/drivers/gpu/drm/radeon/radeon_atombios.c:2706:39
[   11.032823] index 2 is out of range for type 'ATOM_PPLIB_NONCLOCK_INFO [1]'

[   11.033887] UBSAN: array-index-out-of-bounds in 
/build/linux-zdc93w/linux-6.8.0/drivers/gpu/drm/radeon/si_dpm.c:6831:39
[   11.033891] index 2 is out of range for type 'ATOM_PPLIB_NONCLOCK_INFO [1]'


[   11.034910] UBSAN: array-index-out-of-bounds in 
/build/linux-zdc93w/linux-6.8.0/drivers/gpu/drm/radeon/si_dpm.c:6868:32
[   11.034913] index 16 is out of range for type 'UCHAR [1]'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039926

Title:
  Error UBSAN: array-index-out-of-bounds amdgpu
  (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2039926/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2039926] Re: Error UBSAN: array-index-out-of-bounds amdgpu (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

2024-03-24 Thread Bug Watch Updater
** Changed in: linux
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039926

Title:
  Error UBSAN: array-index-out-of-bounds amdgpu
  (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c)

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2039926/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs