UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.2-n2KLlt (drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dce110/irq_service_dce110.c)

Bug #2039991 reported by Jack
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned
linux-hwe-6.2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Everything works fine, this error shows up in the boot log.

Description: Ubuntu 22.04.3 LTS
Release: 22.04

Ubuntu 6.2.0-35.35~22.04.1-generic 6.2.16
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde PRO [Radeon HD 7750/8740 / R7 250E]
driverInfo = Mesa 23.2.1 - kisak-mesa PPA (LLVM 15.0.7)

oct 20 18:12:33 H-Linux kernel: ================================================================================
oct 20 18:12:33 H-Linux kernel: UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.2-n2KLlt/linux-hwe-6.2-6.2.0/drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dce110/irq_service_dce110.c:215:39
oct 20 18:12:33 H-Linux kernel: index 178 is out of range for type 'pipe_ctx [6]'
oct 20 18:12:33 H-Linux kernel: CPU: 1 PID: 865 Comm: canonical-livep Not tainted 6.2.0-35-generic #35~22.04.1-Ubuntu
oct 20 18:12:33 H-Linux kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./960GC-GS FX, BIOS P1.60 10/20/2014
oct 20 18:12:33 H-Linux kernel: Call Trace:
oct 20 18:12:33 H-Linux kernel: <IRQ>
oct 20 18:12:33 H-Linux kernel: dump_stack_lvl+0x48/0x70
oct 20 18:12:33 H-Linux kernel: dump_stack+0x10/0x20
oct 20 18:12:33 H-Linux kernel: __ubsan_handle_out_of_bounds+0xa2/0x100
oct 20 18:12:33 H-Linux kernel: dce110_vblank_set+0xc9/0xd0 [amdgpu]
oct 20 18:12:33 H-Linux kernel: dal_irq_service_set+0x67/0x100 [amdgpu]
oct 20 18:12:33 H-Linux kernel: dc_interrupt_set+0x24/0x40 [amdgpu]
oct 20 18:12:33 H-Linux kernel: dm_set_vupdate_irq+0x38/0x90 [amdgpu]
oct 20 18:12:33 H-Linux kernel: dm_set_vblank+0x173/0x1d0 [amdgpu]
oct 20 18:12:33 H-Linux kernel: dm_disable_vblank+0x10/0x20 [amdgpu]
oct 20 18:12:33 H-Linux kernel: drm_vblank_disable_and_save+0xfd/0x150 [drm]
oct 20 18:12:33 H-Linux kernel: vblank_disable_fn+0x74/0xa0 [drm]
oct 20 18:12:33 H-Linux kernel: ? __pfx_vblank_disable_fn+0x10/0x10 [drm]
oct 20 18:12:33 H-Linux kernel: call_timer_fn+0x2c/0x160
oct 20 18:12:33 H-Linux kernel: ? __pfx_vblank_disable_fn+0x10/0x10 [drm]
oct 20 18:12:33 H-Linux kernel: __run_timers.part.0+0x1fb/0x2b0
oct 20 18:12:33 H-Linux kernel: ? __pfx_tick_sched_timer+0x10/0x10
oct 20 18:12:33 H-Linux kernel: ? __pfx_native_apic_mem_write+0x10/0x10
oct 20 18:12:33 H-Linux kernel: ? lapic_next_event+0x20/0x30
oct 20 18:12:33 H-Linux kernel: ? clockevents_program_event+0xb5/0x140
oct 20 18:12:33 H-Linux kernel: run_timer_softirq+0x2a/0x60
oct 20 18:12:33 H-Linux kernel: __do_softirq+0xdd/0x330
oct 20 18:12:33 H-Linux kernel: ? hrtimer_interrupt+0x12b/0x250
oct 20 18:12:33 H-Linux kernel: __irq_exit_rcu+0xa2/0xd0
oct 20 18:12:33 H-Linux kernel: irq_exit_rcu+0xe/0x20
oct 20 18:12:33 H-Linux kernel: sysvec_apic_timer_interrupt+0x96/0xb0
oct 20 18:12:33 H-Linux kernel: </IRQ>
oct 20 18:12:33 H-Linux kernel: <TASK>
oct 20 18:12:33 H-Linux kernel: asm_sysvec_apic_timer_interrupt+0x1b/0x20
oct 20 18:12:33 H-Linux kernel: RIP: 0010:lzma_literal+0x100/0x2a0
oct 20 18:12:33 H-Linux kernel: Code: ff 00 77 22 48 8b 73 18 4c 8b 53 10 c1 e1 08 c1 e2 08 89 0b 4c 8d 5e 01 4c 89 5b 18 41 0f b6 34 32 01 f2 89 53 04 45 0f b7 10 <89> ce 01 c0 c1 ee 0b 41 0f af f2 39 d6 77 9b>
oct 20 18:12:33 H-Linux kernel: RSP: 0018:ffffb21d4167f748 EFLAGS: 00000216
oct 20 18:12:33 H-Linux kernel: RAX: 0000000000000001 RBX: ffff8e7f86cf8000 RCX: 0000000009d930a8
oct 20 18:12:33 H-Linux kernel: RDX: 0000000004455f07 RSI: 0000000004455f07 RDI: ffff8e7f86cf8f0c
oct 20 18:12:33 H-Linux kernel: RBP: ffffb21d4167f770 R08: ffff8e7f86cf8f0e R09: 0000000000000800
oct 20 18:12:33 H-Linux kernel: R10: 000000000000071a R11: 0000000000000000 R12: 0000000000000000
oct 20 18:12:33 H-Linux kernel: R13: 0000000000000003 R14: 0000000000000001 R15: 0000000000000003
oct 20 18:12:33 H-Linux kernel: lzma_main+0x85/0x2b0
oct 20 18:12:33 H-Linux kernel: lzma2_lzma+0x1c0/0x3f0
oct 20 18:12:33 H-Linux kernel: xz_dec_lzma2_run+0x83/0x4e0
oct 20 18:12:33 H-Linux kernel: dec_block+0x184/0x1a0
oct 20 18:12:33 H-Linux kernel: dec_main+0x2dc/0x4e0
oct 20 18:12:33 H-Linux kernel: xz_dec_run+0x38/0xe0
oct 20 18:12:33 H-Linux kernel: squashfs_xz_uncompress+0xd0/0x230
oct 20 18:12:33 H-Linux kernel: squashfs_decompress+0x5e/0xb0
oct 20 18:12:33 H-Linux kernel: squashfs_read_data+0x102/0x400
oct 20 18:12:33 H-Linux kernel: ? kmalloc_trace+0x2a/0xb0
oct 20 18:12:33 H-Linux kernel: squashfs_readahead+0x3ae/0x610
oct 20 18:12:33 H-Linux kernel: read_pages+0x70/0x260
oct 20 18:12:33 H-Linux kernel: page_cache_ra_unbounded+0x157/0x1b0
oct 20 18:12:33 H-Linux kernel: page_cache_ra_order+0x264/0x330
oct 20 18:12:33 H-Linux kernel: ? xas_load+0x1f/0x100
oct 20 18:12:33 H-Linux kernel: do_sync_mmap_readahead+0x13d/0x270
oct 20 18:12:33 H-Linux kernel: filemap_fault+0x425/0x7f0
oct 20 18:12:33 H-Linux kernel: ? filemap_map_pages+0x324/0x4b0
oct 20 18:12:33 H-Linux kernel: __do_fault+0x39/0x150
oct 20 18:12:33 H-Linux kernel: do_read_fault+0xef/0x170
oct 20 18:12:33 H-Linux kernel: do_fault+0xa0/0x2f0
oct 20 18:12:33 H-Linux kernel: handle_pte_fault+0x119/0x280
oct 20 18:12:33 H-Linux kernel: __handle_mm_fault+0x3c0/0x720
oct 20 18:12:33 H-Linux kernel: handle_mm_fault+0x119/0x330
oct 20 18:12:33 H-Linux kernel: ? lock_mm_and_find_vma+0x44/0x250
oct 20 18:12:33 H-Linux kernel: do_user_addr_fault+0x1a9/0x640
oct 20 18:12:33 H-Linux kernel: exc_page_fault+0x81/0x1b0
oct 20 18:12:33 H-Linux kernel: asm_exc_page_fault+0x27/0x30
oct 20 18:12:33 H-Linux kernel: RIP: 0033:0x455316

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-6.2.0-35-generic 6.2.0-35.35~22.04.1
ProcVersionSignature: Ubuntu 6.2.0-35.35~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 20 18:39:06 2023
InstallationDate: Installed on 2021-11-21 (698 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: linux-signed-hwe-6.2
UpgradeStatus: Upgraded to jammy on 2022-07-23 (454 days ago)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cosmin 1908 F.... pulseaudio
 /dev/snd/pcmC0D0p: cosmin 1908 F...m pulseaudio
 /dev/snd/controlC1: cosmin 1908 F.... pulseaudio
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2021-11-21 (700 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
IwConfig:
 lo no wireless extensions.

 enp2s0 no wireless extensions.

 virbr0 no wireless extensions.
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: linux-hwe-6.2
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-35-generic root=UUID=a3fefe1a-85bd-4e91-ae65-9e679e446542 ro msr.allow_writes=on radeon.si_support=0 amdgpu.si_support=1 amdgpu.dc=1
ProcVersionSignature: Ubuntu 6.2.0-35.35~22.04.1-generic 6.2.16
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-35-generic N/A
 linux-backports-modules-6.2.0-35-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.21
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: jammy wayland-session
Uname: Linux 6.2.0-35-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-07-23 (456 days ago)
UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sudo vboxusers
_MarkForUpload: True
dmi.bios.date: 10/20/2014
dmi.bios.release: 8.15
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.60
dmi.board.asset.tag: BC5FF4D0EA28
dmi.board.name: 960GC-GS FX
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.60:bd10/20/2014:br8.15:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn960GC-GSFX:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:skuToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

Revision history for this message
Jack (jack07) wrote :
Juerg Haefliger (juergh)
tags: added: kernel-flexible-arrays
tags: added: kernel-flexible-array
removed: kernel-flexible-arrays
affects: linux-signed-hwe-6.2 (Ubuntu) → linux-hwe-6.2 (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2039991

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jack (jack07) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Jack (jack07) wrote : CRDA.txt

apport information

Revision history for this message
Jack (jack07) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jack (jack07) wrote : Lspci.txt

apport information

Revision history for this message
Jack (jack07) wrote : Lspci-vt.txt

apport information

Revision history for this message
Jack (jack07) wrote : Lsusb.txt

apport information

Revision history for this message
Jack (jack07) wrote : Lsusb-t.txt

apport information

Revision history for this message
Jack (jack07) wrote : Lsusb-v.txt

apport information

Revision history for this message
Jack (jack07) wrote : PaInfo.txt

apport information

Revision history for this message
Jack (jack07) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jack (jack07) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Jack (jack07) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jack (jack07) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jack (jack07) wrote : ProcModules.txt

apport information

Revision history for this message
Jack (jack07) wrote : PulseList.txt

apport information

Revision history for this message
Jack (jack07) wrote : UdevDb.txt

apport information

Revision history for this message
Jack (jack07) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jack (jack07) wrote : acpidump.txt

apport information

Jack (jack07)
Changed in linux-hwe-6.2 (Ubuntu):
status: New → Confirmed
Juerg Haefliger (juergh)
summary: UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.2-n2KLlt
+ (drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dce110/irq_service_dce110.c)
Revision history for this message
Claus Neumayer (claus56) wrote :

Ubuntu 22.04. 3 LTS
I get the same error

Jan 16 14:41:04 claus-VPCEC2S1E kernel: x86/cpu: VMX (outside TXT) disabled by BIOS
Jan 16 14:41:32 claus-VPCEC2S1E kernel: ================================================================================
Jan 16 14:41:32 claus-VPCEC2S1E kernel: UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/
gpu/drm/radeon/radeon_atombios.c:2620:43
Jan 16 14:41:32 claus-VPCEC2S1E kernel: index 1 is out of range for type 'UCHAR [1]'

Revision history for this message
Guy Rouillier (guy-rouillier) wrote :

Ubuntu MATE 22.04.3 LTS

Linux hp 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

I'm getting several of these messages at boot time. Here's one of them:

UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-q7NZ0T/linux-hwe-6.5-6.5.0/drivers/gpu/drm/radeon/kv_dpm.c:2509:32
index 48 is out of range for type 'UCHAR [1]'

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.