6.5.5: UBSAN: radeon_atombios.c: index 1 is out of range for type 'UCHAR [1]'
Before submitting your bug report:
- Check if your bug has already been reported here.
- I did not find anything here or on Google for this driver/out of range error.
$ lspci -nn | grep VGA 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430] [1002:68e1]
- For any logs, backtraces, etc - use code blocks
[Sun Oct 1 15:59:04 2023] ACPI: bus type drm_connector registered
[Sun Oct 1 15:59:04 2023] [drm] radeon kernel modesetting enabled.
[Sun Oct 1 15:59:04 2023] [drm] initializing kernel modesetting (CEDAR 0x1002:0x68E1 0x1787:0x3000 0x00).
[Sun Oct 1 15:59:04 2023] ATOM BIOS: PARK
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF
[Sun Oct 1 15:59:04 2023] [drm] Detected VRAM RAM=1024M, BAR=256M
[Sun Oct 1 15:59:04 2023] [drm] RAM width 64bits DDR
[Sun Oct 1 15:59:04 2023] [drm] radeon: 1024M of VRAM memory ready
[Sun Oct 1 15:59:04 2023] [drm] radeon: 1024M of GTT memory ready.
[Sun Oct 1 15:59:04 2023] [drm] Loading CEDAR Microcode
[Sun Oct 1 15:59:04 2023] [drm] Internal thermal controller with fan control
[Sun Oct 1 15:59:04 2023] ================================================================================
[Sun Oct 1 15:59:04 2023] UBSAN: array-index-out-of-bounds in drivers/gpu/drm/radeon/radeon_atombios.c:2620:43
[Sun Oct 1 15:59:04 2023] index 1 is out of range for type 'UCHAR [1]'
[Sun Oct 1 15:59:04 2023] CPU: 5 PID: 1 Comm: swapper/0 Tainted: G T 6.5.5 #13 55df8de52754ef95effc50a55e9206abdea304ac
[Sun Oct 1 15:59:04 2023] Hardware name: Supermicro X9SRL-F/X9SRL-F, BIOS 3.3 11/13/2018
[Sun Oct 1 15:59:04 2023] Call Trace:
[Sun Oct 1 15:59:04 2023] <TASK>
[Sun Oct 1 15:59:04 2023] dump_stack_lvl+0x36/0x50
[Sun Oct 1 15:59:04 2023] __ubsan_handle_out_of_bounds+0xc7/0x110
[Sun Oct 1 15:59:04 2023] radeon_atombios_get_power_modes+0x87a/0x8f0
[Sun Oct 1 15:59:04 2023] radeon_pm_init+0x13a/0x7e0
[Sun Oct 1 15:59:04 2023] evergreen_init+0x13d/0x3d0
[Sun Oct 1 15:59:04 2023] radeon_device_init+0x60a/0xbf0
[Sun Oct 1 15:59:04 2023] radeon_driver_load_kms+0xb1/0x250
[Sun Oct 1 15:59:04 2023] drm_dev_register+0xfc/0x250
[Sun Oct 1 15:59:04 2023] radeon_pci_probe+0xd0/0x150
[Sun Oct 1 15:59:04 2023] pci_device_probe+0x97/0x130
[Sun Oct 1 15:59:04 2023] really_probe+0xbe/0x2f0
[Sun Oct 1 15:59:04 2023] ? __pfx___driver_attach+0x10/0x10
[Sun Oct 1 15:59:04 2023] __driver_probe_device+0x6e/0x120
[Sun Oct 1 15:59:04 2023] driver_probe_device+0x1a/0x90
[Sun Oct 1 15:59:04 2023] __driver_attach+0xd4/0x170
[Sun Oct 1 15:59:04 2023] bus_for_each_dev+0x87/0xe0
[Sun Oct 1 15:59:04 2023] bus_add_driver+0xf3/0x1f0
[Sun Oct 1 15:59:04 2023] driver_register+0x58/0x120
[Sun Oct 1 15:59:04 2023] ? __pfx_radeon_module_init+0x10/0x10
[Sun Oct 1 15:59:04 2023] do_one_initcall+0x93/0x4a0
[Sun Oct 1 15:59:04 2023] kernel_init_freeable+0x301/0x580
[Sun Oct 1 15:59:04 2023] ? __pfx_kernel_init+0x10/0x10
[Sun Oct 1 15:59:04 2023] kernel_init+0x15/0x1b0
[Sun Oct 1 15:59:04 2023] ret_from_fork+0x2f/0x50
[Sun Oct 1 15:59:04 2023] ? __pfx_kernel_init+0x10/0x10
[Sun Oct 1 15:59:04 2023] ret_from_fork_asm+0x1b/0x30
[Sun Oct 1 15:59:04 2023] </TASK>
[Sun Oct 1 15:59:04 2023] ================================================================================
[Sun Oct 1 15:59:04 2023] [drm] radeon: dpm initialized
[Sun Oct 1 15:59:04 2023] [drm] GART: num cpu pages 262144, num gpu pages 262144
[Sun Oct 1 15:59:04 2023] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
[Sun Oct 1 15:59:04 2023] [drm] PCIE GART of 1024M enabled (table at 0x000000000014C000).
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: WB enabled
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: radeon: MSI limited to 32-bit
[Sun Oct 1 15:59:04 2023] radeon 0000:03:00.0: radeon: using MSI.
[Sun Oct 1 15:59:04 2023] [drm] radeon: irq initialized.
- As examples of good bug reports you may review one of these - #1698 (closed), #1536, #1734 (closed)
Otherwise, fill the requested information below. And please remove anything that doesn't apply to keep things readable :)
Brief summary of the problem:
- Never had a problem.
- Enabled UBSAN with 6.5.5 and it caught an out of range error.
Hardware description:
-
CPU: Xeon E5-1660
-
GPU: < TODO:
lspci -nn | grep VGA
orlshw -C display -numeric
>
*-display
description: VGA compatible controller
product: Park [Mobility Radeon HD 5430] [1002:68E1]
vendor: Advanced Micro Devices, Inc. [AMD/ATI] [1002]
physical id: 0
bus info: pci@0000:03:00.0
logical name: /dev/fb0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=radeon latency=0 resolution=2560,1600
resources: irq:44 memory:e0000000-efffffff memory:fbb20000-fbb3ffff ioport:d000(size=256) memory:c0000-dffff
-
System Memory: 64GB
-
Display(s): 1 x DVI-D to Dell Monitor
-
Type of Display Connection: <TODO: DP, HDMI, DVI, etc>
-
DVI-D
System information:
- Distro name and Version: Debian Testing
- Kernel version: Linux box1 6.5.5 #13 (closed) SMP Sun Oct 1 15:57:11 EDT 2023 x86_64 GNU/Linux
- Custom kernel: Custom kernel
- AMD official driver version: Not using AMD version, just Linux kernel driver + the non-free firmware.
How to reproduce the issue:
Enable UBSAN on the Linux kernel (6.5.5) and also use AMD/DRM driver with firmware-linux-nonfree package and I get this error at boot as shown in the dmesg output above.
Attached files:
Screenshots/video files
N/A; kernel error is logged in dmesg.
Log files (for system lockups / game freezes / crashes)
N/A