]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Follow up r313841 on powerpc
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 9 Jun 2017 20:26:42 +0000 (20:26 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 9 Jun 2017 20:26:42 +0000 (20:26 +0000)
commit11138abae102dd06275b973862f0d32d74d18046
tree91049cc202feaa74d9f0ff462b16f036592e0d80
parente10054b3aa9548f4e53eaaeca28c75b7331f265a
Follow up r313841 on powerpc

Close a potential race in reading the CPU dtrace flags, where a thread can
start on one CPU, and partway through retrieving the flags be swapped out,
while another thread traps and sets the CPU_DTRACE_NOFAULT.  This could
cause the first thread to return without handling the fault.

Discussed with: markj@
sys/cddl/dev/dtrace/powerpc/dtrace_subr.c