diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2021-12-05 22:00:43 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2021-12-05 22:00:43 +0000 |
commit | 511ad065a20a3deafbba71c37965d7b264e5a9e8 (patch) | |
tree | 10529d34d1f526125abfdeacf2794d9e7c53fe57 /include | |
parent | 26db02871f7be361d50339e8ccdbabc5eeca1195 (diff) |
kbind(2): disable system call if not initialized before first __tfork(2)
To unlock kbind(2) we need to protect ps_kbind_addr and
ps_kbind_cookie.
The simplest way to do this is to disallow kbind(2) initialization
after the first __tfork(2) call. If the first thread does not
initialize the kbind(2) variables before __tfork(2) then we disable
kbind(2) during that first __tfork(2) call.
This is guenther@'s patch, I'm just committing it.
Discussed with guenther@, deraadt@, kettenis@, and mpi@.
ok kettenis@, positive response from mpi@, "I am busy" guenther@
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions