[Bug 241905] SSP setup is not thread-safe ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 12 13:12:05 UTC 2019


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

--- Comment #6 from Kyle Evans <kevans at 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.


More information about the freebsd-toolchain mailing list