CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/04/06 14:20:11
Modified files:
sys/uvm : uvm_mmap.c
lib/libc/sys : pinsyscalls.2
Log message:
Fix a (mostly) hypothetical race in pinsyscalls(2) by making it return an
error if called in a multi-threaded process. The race would involve an
alternate ld.so implementation that starts threads before loading libc.so,
which is just a bad idea. Several ideas to fix the race have been bounced
around but those either involve an additional per-syscall cost or some
convoluted variable dependencies (that would still require an explicit
barrier on alpha). That's simply not worth it.
ok deraadt@