UBSAN array-index-out-of-bounds error in dmesg - amd gpu drivers

Bug #2049317 reported by Dario Menin
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux-meta-hwe-6.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

lsb_release -a
System info
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

uname -a
Linux dario-Aspire-E5-553G 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

At boot and in dmesg (and /var/log/syslog) this error appears, repeated multiple times, I don't remember seeing it in the past, If necessary I can provide the ful /var/log/syslog file:

Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.503732] ================================================================================
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.504707] 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/processpptables.c:1502:42
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.506717] index 1 is out of range for type 'ATOM_PPLIB_CAC_Leakage_Record [1]'
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507673] CPU: 1 PID: 136 Comm: systemd-udevd Not tainted 6.5.0-14-generic #14~22.04.1-Ubuntu
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507677] Hardware name: Acer Aspire E5-553G/Wasp_BR, BIOS V1.31 03/28/2018
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507679] Call Trace:
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507681] <TASK>
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507684] dump_stack_lvl+0x48/0x70
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507694] dump_stack+0x10/0x20
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507696] __ubsan_handle_out_of_bounds+0xc6/0x110
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.507701] init_dpm2_parameters+0x2d6/0x360 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.509001] pp_tables_initialize+0x12c/0x440 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.510250] ? amdgpu_ring_test_helper+0x83/0x90 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.511425] hwmgr_hw_init+0x7b/0x1e0 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.512733] pp_hw_init+0x16/0x50 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.513987] amdgpu_device_ip_init+0x48d/0x960 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.515143] amdgpu_device_init+0x9c8/0x1160 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.516313] amdgpu_driver_load_kms+0x1a/0x1c0 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.517507] amdgpu_pci_probe+0x182/0x450 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518678] local_pci_probe+0x47/0xb0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518684] pci_call_probe+0x55/0x190
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518688] pci_device_probe+0x84/0x120
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518692] really_probe+0x1cc/0x430
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518696] __driver_probe_device+0x8c/0x190
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518709] driver_probe_device+0x24/0xd0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518712] __driver_attach+0x10b/0x210
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518715] ? __pfx___driver_attach+0x10/0x10
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518718] bus_for_each_dev+0x8d/0xf0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518723] driver_attach+0x1e/0x30
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518727] bus_add_driver+0x127/0x240
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518731] driver_register+0x5e/0x130
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.518735] ? __pfx_amdgpu_init+0x10/0x10 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.519866] __pci_register_driver+0x62/0x70
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.519871] amdgpu_init+0x69/0xff0 [amdgpu]
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521048] do_one_initcall+0x5e/0x340
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521056] do_init_module+0x68/0x260
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521062] load_module+0xb85/0xcd0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521066] ? security_kernel_post_read_file+0x75/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521070] ? security_kernel_post_read_file+0x75/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521074] init_module_from_file+0x96/0x100
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521077] ? init_module_from_file+0x96/0x100
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521082] idempotent_init_module+0x11c/0x2b0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521087] __x64_sys_finit_module+0x64/0xd0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521090] do_syscall_64+0x5b/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521095] ? ksys_mmap_pgoff+0x120/0x270
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521101] ? exit_to_user_mode_prepare+0x30/0xb0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521105] ? syscall_exit_to_user_mode+0x37/0x60
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521109] ? do_syscall_64+0x67/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521112] ? do_syscall_64+0x67/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521115] ? syscall_exit_to_user_mode+0x37/0x60
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521118] ? do_syscall_64+0x67/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521121] ? do_syscall_64+0x67/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521124] ? do_syscall_64+0x67/0x90
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521127] entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521132] RIP: 0033:0x7f1a1c89788d
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521142] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 73 b5 0f 00 f7 d8 64 89 01 48
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521145] RSP: 002b:00007fffd9c31678 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521149] RAX: ffffffffffffffda RBX: 00005591b8c34430 RCX: 00007f1a1c89788d
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521151] RDX: 0000000000000000 RSI: 00007f1a1ca46441 RDI: 0000000000000018
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521152] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000002
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521154] R10: 0000000000000018 R11: 0000000000000246 R12: 00007f1a1ca46441
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521156] R13: 00005591b8c335e0 R14: 00005591b8c2d720 R15: 00005591b8c36ce0
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521159] </TASK>
Jan 14 20:24:13 dario-Aspire-E5-553G kernel: [ 12.521180] ================================================================================

description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2049317/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Dario Menin (darioalessio-menin) wrote :

I changed the source package to linux-meta-hwe-6.5 because this is the kernel version, but I'm not sure that this is the correct package.

affects: ubuntu → linux-meta-hwe-6.5 (Ubuntu)
Revision history for this message
Ken Sharp (kennybobs) wrote :

I've started seeing this for the Virtualbox modules. Could just be a coincidence but thought I'd mention it.

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

Other bug subscribers

Remote bug watches

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