<html>
<head>
<base href="https://bugs.llvm.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 - Merge r317115 into the 5.0 branch: Fix race condition in omp_init_lock"
href="https://bugs.llvm.org/show_bug.cgi?id=35171">35171</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Merge r317115 into the 5.0 branch: Fix race condition in omp_init_lock
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hahnjo@hahnjo.de
</td>
</tr>
<tr>
<th>CC</th>
<td>andrey.churbanov@intel.com, jpeyton52@gmail.com, llvm-bugs@lists.llvm.org, tstellar@redhat.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>34492
</td>
</tr></table>
<p>
<div>
<pre>This is a partial fix for <a class="bz_bug_link
bz_status_NEW "
title="NEW - Race condition in __kmp_lookup_indirect_lock"
href="show_bug.cgi?id=34050">bug 34050</a>.
This prevents callers of omp_set_lock (which does not hold __kmp_global_lock)
from ever seeing an uninitialized version of __kmp_i_lock_table.table.
It does not solve a use-after-free race condition if omp_set_lock obtains a
pointer to __kmp_i_lock_table.table before it is updated and then attempts to
dereference afterwards. That race is far less likely and can be handled in a
separate patch.
The unit test usually segfaults on the current trunk revision. It passes with
the patch.</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_NEW "
title="NEW - [meta] 5.0.1 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=34492">Bug 34492</a>] [meta] 5.0.1 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>