<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - meson-built drivers are installed with non-empty rpath"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110328">110328</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>meson-built drivers are installed with non-empty rpath
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ajax@nwnk.net
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>109323
</td>
</tr></table>
<p>
<div>
<pre>This is terrible:
datura:~% readelf -d /usr/lib64/dri/radeonsi_dri.so | grep RPATH
0x000000000000000f (RPATH) Library rpath:
[$ORIGIN/../../../mesa:$ORIGIN/../../../compiler/glsl:$ORIGIN/../../../compiler/glsl/glcpp:$ORIGIN/../../../util:$ORIGIN/../../../compiler/nir:$ORIGIN/../../../compiler:$ORIGIN/../../../mesa/drivers/dri/common:$ORIGIN/../../state_trackers/dri:$ORIGIN/../../auxiliary:$ORIGIN/../../../mapi/shared-glapi:$ORIGIN/../../auxiliary/pipe-loader:$ORIGIN/../../../loader:$ORIGIN/../../winsys/sw/null:$ORIGIN/../../winsys/sw/wrapper:$ORIGIN/../../winsys/sw/dri:$ORIGIN/../../winsys/sw/kms-dri:$ORIGIN/../../drivers/llvmpipe:$ORIGIN/../../drivers/softpipe:$ORIGIN/../../drivers/r300:$ORIGIN/../../winsys/radeon/drm:$ORIGIN/../../drivers/r600:$ORIGIN/../../drivers/radeonsi:$ORIGIN/../../winsys/amdgpu/drm:$ORIGIN/../../../amd/addrlib:$ORIGIN/../../../amd/common:$ORIGIN/../../winsys/nouveau/drm:$ORIGIN/../../drivers/nouveau:$ORIGIN/../../drivers/svga:$ORIGIN/../../winsys/svga/drm:$ORIGIN/../../drivers/virgl:$ORIGIN/../../winsys/virgl/drm:$ORIGIN/../../winsys/virgl/vtest]
This is _probably_ not a security problem, since in most cases $ORIGIN is going
to be /usr/lib/dri, and /usr and / aren't generally world-writable. But it is a
performance problem, because when the 3D driver loads any libraries it depends
on that aren't already loaded (llvm, probably) will be uselessly searched for
in a bunch of nonexistent directories. Not theoretical either, see:
<a href="https://gitlab.freedesktop.org/wayland/weston/issues/213">https://gitlab.freedesktop.org/wayland/weston/issues/213</a>
In Fedora I'm going to work around this for now by doing 'chrpath -d' on the
drivers after they're installed, but this should be addressed upstream too.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [TRACKER] mesa: Remove autotools"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109323">Bug 109323</a>] [TRACKER] mesa: Remove autotools
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>