Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 506412

Summary: media-libs/mesa-10.0.4[llvm]: llvmpipe tests need pax marking
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: hardened
Priority: Normal Keywords: InOverlay, PATCH, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mesa-10.0.4.ebuild.patch
patch v2

Description Nikoli 2014-04-01 07:08:14 UTC
Created attachment 374008 [details, diff]
mesa-10.0.4.ebuild.patch

All llvmpipe tests fail when using hardened kernel:
[231009.985326] grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/drivers/llvmpipe/lp_test_format[lp_test_format:25364] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[bash:25353] uid/euid:250/250 gid/egid:250/250
[231009.986167] grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/drivers/llvmpipe/lp_test_arit[lp_test_arit:25366] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[bash:25361] uid/euid:250/250 gid/egid:250/250
[231009.987811] grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/drivers/llvmpipe/lp_test_conv[lp_test_conv:25368] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[bash:25362] uid/euid:250/250 gid/egid:250/250
[231009.988077] grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/drivers/llvmpipe/lp_test_blend[lp_test_blend:25365] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[bash:25360] uid/euid:250/250 gid/egid:250/250
[231009.988546] grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/drivers/llvmpipe/lp_test_printf[lp_test_printf:25367] uid/euid:250/250 gid/egid:250/250, parent /bin/bash[bash:25363] uid/euid:250/250 gid/egid:250/250

With attached patch all tests work fine for me, mesa-10.1.0.ebuild and live ebuild need this patch too.
Comment 1 Nikoli 2014-04-29 12:25:37 UTC
Still happens with mesa-10.1.1, attached patch solves problem.
Comment 2 Magnus Granberg gentoo-dev 2014-05-09 14:29:35 UTC
X11 okay to applay?
Comment 3 Nikoli 2014-05-10 09:04:01 UTC
Created attachment 376648 [details, diff]
patch v2
Comment 4 Nikoli 2014-05-10 09:10:45 UTC
Fixed in x11 overlay.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-14 16:02:48 UTC
Fixed in 10.1.3
Comment 6 Nikoli 2014-05-14 21:10:10 UTC
You forgot to add 'pax-utils' to inherit, pax marking does not work now.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-15 07:39:49 UTC
Thanks, fixed.