From: bugzilla-daemon@bugzilla.kernel.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 214847] New: [radeon] UBSAN shows several null-ptr-deref in drm/radeon/atom.c, radeon_atombios.c, atombios_encoders.c, atombios_crtc.c
Date: Wed, 27 Oct 2021 14:38:40 +0000 [thread overview]
Message-ID: <bug-214847-2300@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=214847
Bug ID: 214847
Summary: [radeon] UBSAN shows several null-ptr-deref in
drm/radeon/atom.c, radeon_atombios.c,
atombios_encoders.c, atombios_crtc.c
Product: Drivers
Version: 2.5
Kernel Version: 5.15-rc7
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: drivers_video-dri@kernel-bugs.osdl.org
Reporter: erhard_f@mailbox.org
CC: christian.koenig@amd.com
Regression: No
Created attachment 299331
--> https://bugzilla.kernel.org/attachment.cgi?id=299331&action=edit
kernel dmesg (kernel 5.15-rc7, AMD Ryzen 9 5950X)
[...]
[drm] radeon kernel modesetting enabled.
checking generic (e0000000 300000) vs hw (e0000000 10000000)
fb0: switching to radeon from simple
Console: switching to colour dummy device 80x25
radeon 0000:07:00.0: vgaarb: deactivate vga console
[drm] initializing kernel modesetting (RV515 0x1002:0x7187 0x174B:0x3000 0x00).
ATOM BIOS: X1550
================================================================================
UBSAN: null-ptr-deref in drivers/gpu/drm/radeon/atom.c:1400:14
member access within null pointer of type 'ATOM_MASTER_LIST_OF_DATA_TABLES'
(aka 'struct _ATOM_MASTER_LIST_OF_DATA_TABLES')
CPU: 26 PID: 418 Comm: systemd-udevd Not tainted 5.15.0-rc7-Zen3+ #5
Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Steel
Legend, BIOS P4.20 08/03/2021
Call Trace:
dump_stack_lvl+0x7f/0xc0
ubsan_type_mismatch_common+0x248/0x290
__ubsan_handle_type_mismatch_v1+0x49/0x50
atom_allocate_fb_scratch+0x2b/0xf0 [radeon]
radeon_atombios_init+0x113/0x130 [radeon]
rv515_init+0x5b/0x250 [radeon]
radeon_device_init+0x99a/0xe00 [radeon]
radeon_driver_load_kms+0xb8/0x1a0 [radeon]
drm_dev_register+0xec/0x1d0 [drm]
radeon_pci_probe+0xaa/0x100 [radeon]
pci_device_probe+0xaa/0x140
really_probe+0x111/0x360
__driver_probe_device+0x84/0xf0
__driver_attach+0xbb/0x120
? driver_attach+0x20/0x20
bus_for_each_dev+0x93/0xd0
bus_add_driver+0xf5/0x200
driver_register+0x66/0xf0
do_one_initcall+0x11a/0x2e0
? __kernel_text_address+0x56/0xa0
? 0xffffffffc0760000
? mmu_interval_notifier_insert+0xa/0xa0
do_init_module+0x55/0x200
load_module+0x1b50/0x1ee0
? kernel_read_file_from_fd+0x58/0x80
__x64_sys_finit_module+0xa8/0xd0
do_syscall_64+0x79/0xb0
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5c569992c9
Code: 0c 00 b8 ca 00 00 00 0f 05 eb a4 66 0f 1f 44 00 00 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 6f 1b 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe2a4aefe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000558584ea2070 RCX: 00007f5c569992c9
RDX: 0000000000000000 RSI: 00007f5c56adc97f RDI: 0000000000000016
RBP: 0000000000020000 R08: 0000000000000000 R09: fffffffffffffeb8
R10: 0000000000000016 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5c56adc97f R14: 0000558584e510c0 R15: 0000000000000000
================================================================================
================================================================================
UBSAN: null-ptr-deref in drivers/gpu/drm/radeon/radeon_atombios.c:1126:14
member access within null pointer of type 'ATOM_MASTER_LIST_OF_DATA_TABLES'
(aka 'struct _ATOM_MASTER_LIST_OF_DATA_TABLES')
CPU: 26 PID: 418 Comm: systemd-udevd Not tainted 5.15.0-rc7-Zen3+ #5
Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Steel
Legend, BIOS P4.20 08/03/2021
Call Trace:
dump_stack_lvl+0x7f/0xc0
ubsan_type_mismatch_common+0x248/0x290
__ubsan_handle_type_mismatch_v1+0x49/0x50
radeon_atom_get_clock_info+0x2e/0x410 [radeon]
? atom_allocate_fb_scratch+0xa7/0xf0 [radeon]
radeon_get_clock_info+0x170/0x470 [radeon]
rv515_init+0xa0/0x250 [radeon]
radeon_device_init+0x99a/0xe00 [radeon]
radeon_driver_load_kms+0xb8/0x1a0 [radeon]
drm_dev_register+0xec/0x1d0 [drm]
radeon_pci_probe+0xaa/0x100 [radeon]
pci_device_probe+0xaa/0x140
really_probe+0x111/0x360
__driver_probe_device+0x84/0xf0
__driver_attach+0xbb/0x120
? driver_attach+0x20/0x20
bus_for_each_dev+0x93/0xd0
bus_add_driver+0xf5/0x200
driver_register+0x66/0xf0
do_one_initcall+0x11a/0x2e0
? __kernel_text_address+0x56/0xa0
? 0xffffffffc0760000
? mmu_interval_notifier_insert+0xa/0xa0
do_init_module+0x55/0x200
load_module+0x1b50/0x1ee0
? kernel_read_file_from_fd+0x58/0x80
__x64_sys_finit_module+0xa8/0xd0
do_syscall_64+0x79/0xb0
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5c569992c9
Code: 0c 00 b8 ca 00 00 00 0f 05 eb a4 66 0f 1f 44 00 00 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 6f 1b 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe2a4aefe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000558584ea2070 RCX: 00007f5c569992c9
RDX: 0000000000000000 RSI: 00007f5c56adc97f RDI: 0000000000000016
RBP: 0000000000020000 R08: 0000000000000000 R09: fffffffffffffeb8
R10: 0000000000000016 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5c56adc97f R14: 0000558584e510c0 R15: 0000000000000000
================================================================================
[...]
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2021-10-27 14:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 14:38 bugzilla-daemon [this message]
2021-10-27 14:39 ` [Bug 214847] [radeon] UBSAN shows several null-ptr-deref in drm/radeon/atom.c, radeon_atombios.c, atombios_encoders.c, atombios_crtc.c bugzilla-daemon
2021-10-27 20:45 ` bugzilla-daemon
2023-03-20 20:05 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-214847-2300@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.