]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct signatures of several pthreads stubs.
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 2 Jul 2017 05:40:22 +0000 (05:40 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 2 Jul 2017 05:40:22 +0000 (05:40 +0000)
commitc89a3f00130d278142e87b4165b56f1717c2ba42
treeabcdb6698d806194a8c214cd93bdf9ae21722496
parent3f7830a31e3eb4d1d378c1776fb7de1fd47f7bba
Correct signatures of several pthreads stubs.

Most important, use a correct signature for the
__pthread_cleanup_push_imp() stub, which was incorrectly generated
with two-args variant.  The pthread_cleanup_info pointer was corrupted
in the forwarded call to the real libthr implementation, visible on
PowerPC and possibly ARM. [1]

Found and tested by: Mark Millard <markmi@dsl-only.net> [1]
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libc/gen/_pthread_stubs.c