Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2019 13:12:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 241905] SSP setup is not thread-safe ?
Message-ID:  <bug-241905-29464-6yQdFFwKCr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241905-29464@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241905

--- Comment #6 from Kyle Evans <kevans@freebsd.org> ---
(In reply to Konstantin Belousov from comment #5)

Huh, today I learned about __constructor__ priority, too. =-)

It looks like it's really only one __constructor__ creating a thread, and that
constructor is using whatever the toolchain default is:
https://github.com/qemu/qemu/blob/master/util/rcu.c#L376

I guess this is the same as __guard_setup,
https://svnweb.freebsd.org/base/head/lib/libc/secure/stack_protector.c?revision=332940&view=markup#l47
-> I can bump the priority on qemu's to 200 and that sufficiently works around
the problem, but it seems like __guard_setup should be specifically lower than
the default.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241905-29464-6yQdFFwKCr>