Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383989 - some newer opengl graphics drivers needs paxctl -m
Summary: some newer opengl graphics drivers needs paxctl -m
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 16:47 UTC by Markus Walter
Modified: 2013-06-03 17:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2011-09-21 16:47:32 UTC
Stellarium needs mprotect disabled, otherwise you get the following error.

LLVM ERROR: Allocation failed when allocating new memory in JIT
Can't allocate RWX Memory: Operation not permitted
Comment 1 Anthoine Bourgeois 2011-09-23 21:45:01 UTC
This is a greater problem. All OpenGL applications with the new shader compiler on radeon (and on all gallium3d driver on mesa-next) will prints the same error with pax mprotect. I don't know if the solution is to mark all openGL binaries or there is another (clean?) solution. Can we fix the llvm JIT?
Comment 2 Anthony Basile gentoo-dev 2011-09-24 11:16:20 UTC
(In reply to comment #1)
> I don't know if the solution is to mark all openGL binaries
> or there is another (clean?) solution. Can we fix the llvm JIT?

Indeed this is a problem.  You've hit both "solution", both of which are pitas.  There is yet a third "solution" --- turn mprotect off in the kernel.  Pick you poison.

Regarding llvm JIT, this would be the best but I have not looked in that direction.