diff options
author | kib <kib@FreeBSD.org> | 2015-05-10 09:00:40 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-05-10 09:00:40 +0000 |
commit | f3713229833ccaa3860b3ed139ae4c79f529646e (patch) | |
tree | 064d76e5d8ad1ce92f3fa8db469f737a43503979 /usr.sbin/pw/pwupd.c | |
parent | 00145bc0e070efc612952cdad12ecdb18cd7629a (diff) | |
download | FreeBSD-src-f3713229833ccaa3860b3ed139ae4c79f529646e.zip FreeBSD-src-f3713229833ccaa3860b3ed139ae4c79f529646e.tar.gz |
On exec, single-threading must be enforced before arguments space is
allocated from exec_map. If many threads try to perform execve(2) in
parallel, the exec map is exhausted and some threads sleep
uninterruptible waiting for the map space. Then, the thread which won
the race for the space allocation, cannot single-thread the process,
causing deadlock.
Reported and tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
0 files changed, 0 insertions, 0 deletions