Skip to contentSkip to conversation

New: UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

Bug 220428 [email protected] 1 participant 7 messages Aug 9, 2025 – Jan 22

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=220428

            Bug ID: 220428
           Summary: UBSAN array-index-out-of-bounds warning in
                    radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD
                    6250
           Product: Drivers
           Version: 2.5
    Kernel Version: 6.15.9
          Hardware: AMD
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
[   17.138975] ------------[ cut here ]------------
[   17.138980] UBSAN: array-index-out-of-bounds in
drivers/gpu/drm/radeon/radeon_atombios.c:2720:34
[   17.138991] index 16 is out of range for type 'UCHAR [*]'
[   17.139004] CPU: 1 UID: 0 PID: 544 Comm: (udev-worker) Not tainted
6.15.9-201.fc42.x86_64 #1 PREEMPT(lazy) 
[   17.139016] Hardware name: Acer Aspire 5250/JE50-BZ, BIOS V1.08 09/26/2012
[   17.139022] Call Trace:
[   17.139031]  <TASK>
[   17.139041]  dump_stack_lvl+0x5d/0x80
[   17.139060]  ubsan_epilogue+0x5/0x2b
[   17.139070]  __ubsan_handle_out_of_bounds.cold+0x54/0x59
[   17.139086]  radeon_atombios_parse_power_table_6+0x3bc/0x3e0 [radeon]
[   17.139581]  radeon_atombios_get_power_modes+0x220/0x240 [radeon]
[   17.139977]  radeon_pm_init_dpm+0x77/0x240 [radeon]
[   17.140428]  evergreen_init+0x154/0x2b0 [radeon]
[   17.140885]  radeon_device_init+0x484/0xa60 [radeon]
[   17.141275]  ? pci_find_capability+0x79/0xb0
[   17.141288]  radeon_driver_load_kms+0xa6/0x230 [radeon]
[   17.141681]  radeon_pci_probe+0xef/0x1b0 [radeon]
[   17.142069]  local_pci_probe+0x42/0x90
[   17.142081]  pci_call_probe+0x5b/0x190
[   17.142090]  ? kernfs_create_link+0x61/0xb0
[   17.142106]  pci_device_probe+0x95/0x140
[   17.142117]  really_probe+0xde/0x340
[   17.142128]  ? pm_runtime_barrier+0x55/0x90
[   17.142141]  __driver_probe_device+0x78/0x140
[   17.142152]  driver_probe_device+0x1f/0xa0
[   17.142164]  ? __pfx___driver_attach+0x10/0x10
[   17.142173]  __driver_attach+0xcb/0x1e0
[   17.142185]  bus_for_each_dev+0x85/0xd0
[   17.142197]  bus_add_driver+0x12f/0x210
[   17.142209]  ? __pfx_radeon_module_init+0x10/0x10 [radeon]
[   17.142604]  driver_register+0x75/0xe0
[   17.142613]  ? radeon_register_atpx_handler+0xe/0x30 [radeon]
[   17.143030]  do_one_initcall+0x5b/0x300
[   17.143052]  do_init_module+0x84/0x260
[   17.143064]  init_module_from_file+0x8a/0xe0
[   17.143081]  idempotent_init_module+0x114/0x310
[   17.143095]  __x64_sys_finit_module+0x67/0xc0
[   17.143107]  do_syscall_64+0x7b/0x160
[   17.143119]  ? syscall_exit_to_user_mode+0x10/0x210
[   17.143141]  ? vfs_read+0x160/0x390
[   17.143150]  ? vfs_read+0x160/0x390
[   17.143163]  ? ksys_read+0x73/0xe0
[   17.143172]  ? syscall_exit_to_user_mode+0x10/0x210
[   17.143182]  ? do_syscall_64+0x87/0x160
[   17.143195]  ? syscall_exit_to_user_mode+0x10/0x210
[   17.143206]  ? do_syscall_64+0x87/0x160
[   17.143214]  ? exc_page_fault+0x7e/0x1a0
[   17.143224]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   17.143235] RIP: 0033:0x7f924c636a4d
[   17.143255] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 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 83 53 0f 00 f7 d8 64 89 01 48
[   17.143263] RSP: 002b:00007ffcb7ab1498 EFLAGS: 00000246 ORIG_RAX:
0000000000000139
[   17.143274] RAX: ffffffffffffffda RBX: 00005643357c7350 RCX:
00007f924c636a4d
[   17.143280] RDX: 0000000000000004 RSI: 00007f924b0ec965 RDI:
000000000000002b
[   17.143285] RBP: 00007ffcb7ab1550 R08: 0000000000000000 R09:
00007ffcb7ab1500
[   17.143290] R10: 0000000000000000 R11: 0000000000000246 R12:
0000000000020000
[   17.143294] R13: 00005643357ca790 R14: 00007f924b0ec965 R15:
0000000000000000
[   17.143306]  </TASK>
[   17.143470] ---[ end trace ]---

Since this is a Kernel video driver problem, I am reporting here and not elsewhere.

This MAY be related to https://bugzilla.kernel.org/show_bug.cgi?id=218435

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

https://bugzilla.kernel.org/show_bug.cgi?id=220428

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from [email protected] ---
I've encountered the same error in kernel 6.16.5-200.fc42.x86_64. There is also another one next to it that seems related:

UBSAN: array-index-out-of-bounds in drivers/gpu/drm/radeon/si_dpm.c:6824:32

both stack traces attached.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220428

--- Comment #2 from [email protected] ---
Created attachment 308692
--> https://bugzilla.kernel.org/attachment.cgi?id=308692&action=edit
stack trace with 2 errors on 6.16.5-200.fc42.x86_64

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220428

Vedran Miletić ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Vedran Miletić ([email protected]) --- This is fixed in 6.19 series. Details:
https://gitlab.freedesktop.org/drm/amd/-/issues/4374

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220428

--- Comment #4 from Lucas ([email protected]) --- Awesome. Thanks for reporting. So, let's wait the 6.19 version be fully released and stay a bit, so we can assure the problem will be solved for everyone, then we the issue can be closed.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#5 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220428

--- Comment #5 from Vedran Miletić ([email protected]) --- Curious, can you reproduce https://gitlab.freedesktop.org/drm/amd/-/issues/4897
?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

[Bug 220428] UBSAN array-index-out-of-bounds warning in radeon_atombios.c on kernel 6.15.9 with AMD Radeon HD 6250

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220428

--- Comment #6 from Lucas ([email protected]) ---
No, this other error never appeared to me. My old Laptop from 2011 is an Acer Aspire 5250 with an old GPU AMD Radeon HD 6250, and a C-50 processor. Using radeon firmware on Linux.

I uninstalled Linux, since it will never be equal or better Windows 10 Lite in this case. I do not pretend to reinstall linux on it, since it cannot even play a YouTube video or play SuperTuxKart without lagging. Different from Windows with Catalyst Radeon drivers which works fines, for both cases. Seems like original radeon firmware from AMD was not open source neither well documented back in the time, so I think it is literally impossible a equal or better driver for Linux.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.