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