I get this message "array-index-out-of-bounds" every time I turn on my laptop since I upgraded from 23.04. to 23.10. (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c)

Bug #2039167 reported by Zoran Nikolov
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

UBSAN: array-index-out-of-bounds in /build/linux-D15vQj/linux-6.5.0/drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:929:40
index 1 is out of range for type 'UCHAR [1]'

My firmware version is X515DAP.311.
OS type 64-bit.
GNOME version 45.0.
Kernel version Linux 6.5.0-9-generic.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: linux-image-6.5.0-9-generic 6.5.0-9.9
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: zoran 2329 F.... wireplumber
 /dev/snd/controlC0: zoran 2329 F.... wireplumber
 /dev/snd/seq: zoran 2316 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 12 13:42:16 2023
InstallationDate: Installed on 2023-09-21 (21 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=UUID=9b0c8205-22d2-4c7e-8e53-959a91e2174d ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-9-generic N/A
 linux-backports-modules-6.5.0-9-generic N/A
 linux-firmware 20230919.git3672ccab-0ubuntu2.1
SourcePackage: linux
UpgradeStatus: Upgraded to mantic on 2023-10-12 (0 days ago)
dmi.bios.date: 01/06/2023
dmi.bios.release: 5.14
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X515DAP.311
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X515DAP
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrX515DAP.311:bd01/06/2023:br5.14:svnASUSTeKCOMPUTERINC.:pnVivoBook_ASUSLaptopX515DAP_M515DA:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX515DAP:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:
dmi.product.family: ASUSLaptop
dmi.product.name: VivoBook_ASUSLaptop X515DAP_M515DA
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Zoran Nikolov (zoran902) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Juerg Haefliger (juergh)
tags: added: kernel-flexible-array
Juerg Haefliger (juergh)
summary: I get this message "array-index-out-of-bounds" every time I turn on my
laptop since I upgraded from 23.04. to 23.10.
+ (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c)
Revision history for this message
R A (readableauthor) wrote :

Happens to me on the latest LTS:
6.5.0-14-generic #14~22.04.1-Ubuntu

Revision history for this message
Bruno Maderni (bmaderni) wrote (last edit ):

Happens to me as well on 22.04.3 with 6.5.0-14-generic or 6.5.0-21-generic.

6.2.0-39 works fine.

Revision history for this message
samuelbailey (samuelbailey) wrote :

Not completely sure whether this is an identical issue, but at the very least looks very similar, I was seeing:

UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:621:5

A workaround appears to have been found here: https://bugzilla.kernel.org/show_bug.cgi?id=201957#c94

Setting the kernel parameter amdgpu.mcbp=0 appears to have stopped the crashing for me.

Revision history for this message
Bruno Maderni (bmaderni) wrote : Re: [Bug 2039167] Re: I get this message "array-index-out-of-bounds" every time I turn on my laptop since I upgraded from 23.04. to 23.10. (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c)

amdgpu.mcbp=0

Does not work for me.

On Mon, Jan 22, 2024 at 7:51 PM samuelbailey <email address hidden>
wrote:

> Not completely sure whether this is an identical issue, but at the very
> least looks very similar, I was seeing:
>
> UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-q7NZ0T/linux-
>
> hwe-6.5-6.5.0/drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:621:5
>
> A workaround appears to have been found here:
> https://bugzilla.kernel.org/show_bug.cgi?id=201957#c94
>
> Setting the kernel parameter amdgpu.mcbp=0 appears to have stopped the
> crashing for me.
>
> ** Bug watch added: Linux Kernel Bug Tracker #201957
> https://bugzilla.kernel.org/show_bug.cgi?id=201957
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2049971).
> https://bugs.launchpad.net/bugs/2039167
>
> Title:
> I get this message "array-index-out-of-bounds" every time I turn on
> my laptop since I upgraded from 23.04. to 23.10.
> (drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039167/+subscriptions
>
>

Revision history for this message
Bruno Maderni (bmaderni) wrote :

6.5.0-25-generic fixed it

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.