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.
This should be filed upstream I guess. With a patch to fix it or without, either way so that it is tracked somewhere.
ping