]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r325232
authortijl <tijl@FreeBSD.org>
Tue, 7 Nov 2017 17:07:45 +0000 (17:07 +0000)
committertijl <tijl@FreeBSD.org>
Tue, 7 Nov 2017 17:07:45 +0000 (17:07 +0000)
commit97ac47477eb1dff39a08a1c6e32eb24bc0191dd7
tree311df533ad50f9c769d2a11b37263504cee072f6
parent75a5cc1cc6fcc6bca6da7a6e321c0ce4cbc30058
MFC r325232

Set the return address for stack entry points to zero.

Stack unwinders treat zero as a stop condition.  The value on the stack can
be non-zero because thread stacks may be arbitrary memory provided via
pthread_attr_setstack(3) or may be recycled from previous threads.

Reference:
https://lists.freebsd.org/pipermail/freebsd-current/2017-August/066855.html
https://lists.freebsd.org/pipermail/freebsd-current/2017-October/067254.html

Discussed with: kib
sys/amd64/amd64/vm_machdep.c
sys/i386/i386/vm_machdep.c