Skip to contentSkip to conversation

Caught 16-bit read from uninitialized memory in drm_fb_helper_setcmap

Bug 36522 [email protected] 2 participants 14 messages May 14, 2012 – Feb 17, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Console/Framebuffers        |Video(DRI - non Intel)
         AssignedTo|[email protected]    |drivers_video-dri@kernel-bu
                   |                            |gs.osdl.org
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw
In reply to a message not in the archive

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

--- Comment #10 from Christian Casteyde <[email protected]> 2012-10-21 21:49:34 --- Update:
Still present in 3.7-rc2 on Slackware 64 + xf86-video-ati-6.14.6 + libdrm-2.4.39-x86_64

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#8 lore raw
In reply to a message not in the archive

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

[email protected] changed:

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

--- Comment #14 from [email protected] ---
See if the below patch fixes the issue as it seems your not allocating memory for the cmap.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw
In reply to a message not in the archive

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

--- Comment #15 from [email protected] ---
Created attachment 227551
--> https://bugzilla.kernel.org/attachment.cgi?id=227551&action=edit
Cmap Fix

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw
In reply to a message not in the archive

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

--- Comment #16 from Christian Casteyde <[email protected]> --- No, I still have this:

[ 1215.037018] WARNING: kmemcheck: Caught 16-bit read from uninitialized memory
(ffff8801c307d020)
[ 1215.037029] 2e032b012206070e0307373e033534262327353721171507111e031514062322
[ 1215.037038]  u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u
[ 1215.037039]  ^
[ 1215.037046] RIP: 0010:[<ffffffff81442b8b>]  [<ffffffff81442b8b>]
drm_fb_helper_setcmap+0x15b/0x420
[ 1215.037047] RSP: 0018:ffff8801b9fc7a30  EFLAGS: 00010286
[ 1215.037048] RAX: 0000000000000010 RBX: 0000000000000010 RCX:
0000000000000000
[ 1215.037049] RDX: 00000000000000ff RSI: 0000000000ffff00 RDI:
ffff8801c3064390
[ 1215.037050] RBP: ffff8801b9fc7ad8 R08: ffff8801c307c840 R09:
ffff8801c307d200
[ 1215.037051] R10: ffff8801c307d022 R11: 000000000000ffff R12:
ffff8801c307d220
[ 1215.037051] R13: ffff8801c307d420 R14: ffff8801c307c800 R15:
ffff8801c3064000
[ 1215.037053] FS:  00007f35566fd8c0(0000) GS:ffff8801c7400000(0000)
knlGS:0000000000000000
[ 1215.037054] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1215.037055] CR2: ffff8801c29306c0 CR3: 00000000a8911000 CR4:
00000000000406f0
[ 1215.037058]  [<ffffffff813d5009>] fb_set_cmap+0x49/0x130
[ 1215.037060]  [<ffffffff813d2769>] fb_set_var+0x279/0x460
[ 1215.037063]  [<ffffffff813cba4b>] fbcon_blank+0x33b/0x380
[ 1215.037066]  [<ffffffff8142d966>] do_unblank_screen+0xc6/0x190
[ 1215.037069]  [<ffffffff81424263>] vt_ioctl+0x533/0x1430
[ 1215.037071]  [<ffffffff8141950c>] tty_ioctl+0x38c/0xe90
[ 1215.037073]  [<ffffffff811aed7e>] do_vfs_ioctl+0x8e/0x670
[ 1215.037075]  [<ffffffff811af39c>] SyS_ioctl+0x3c/0x70
[ 1215.037078]  [<ffffffff8193fee5>] entry_SYSCALL_64_fastpath+0x18/0xa8
[ 1215.037080]  [<ffffffffffffffff>] 0xffffffffffffffff
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw
In reply to a message not in the archive

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

--- Comment #17 from [email protected] ---
Can you find out what drm driver you are currently using as all of them link to the core function that is leaking memory and knowing which drive is doing it would be very helpful.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw
In reply to a message not in the archive

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

--- Comment #18 from Christian Casteyde <[email protected]> --- See comment #3, #4 and #5.

I think i'm using radeon driver with kms since the only graphic chip I have on my laptop is a Radeon 6650M (no intel graphic in CPU, has been deactivated by vendor).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw
In reply to a message not in the archive

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

Christian Casteyde ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #19 from Christian Casteyde ([email protected]) --- Closing as too old and I do not have the hardware anymore to reproduce.

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.