Bug 118129

Summary: mprotect calls are not tested to see if they succeed or not
Product: [Fedora] Fedora Reporter: Mike A. Harris <mharris>
Component: xorg-x11Assignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideKeywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-07 11:57:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike A. Harris 2004-03-12 09:55:24 UTC
In the xorg source tree, and probably XFree86 too, the following
files contain calls to mprotect() in which the return code is
not checked, so if it fails for any reason, strange behaviour
may result:

xc/lib/Xxf86dga/XF86DGA.c
xc/lib/Xxf86dga/XF86DGA2.c
xc/programs/Xserver/hw/xfree86/loader/elfloader.c
xc/programs/Xserver/hw/xfree86/loader/loader.c
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmstat.c

Just noticed these and don't have time to fix right now, so logging
here for future fixing.

Comment 1 Mike A. Harris 2004-09-21 09:34:56 UTC
This should be filed upstream I guess.  With a patch to fix it or
without, either way so that it is tracked somewhere.

Comment 4 Rahul Sundaram 2005-08-14 02:28:01 UTC
ping