cvs commit: src/sys/kern kern_sig.c
David Schultz
das at FreeBSD.org
Sat Apr 9 19:31:25 PDT 2005
das 2005-04-10 02:31:24 UTC
FreeBSD src repository
Modified files:
sys/kern kern_sig.c
Log:
Suspend all other threads in the process while generating a core dump.
The main reason for doing this is that the ELF dump handler expects
the thread list to be fixed while the dump header is generated, so an
upcall that occurs at the wrong time can lead to buffer overruns and
other Bad Things.
Another solution would be to grab sched_lock in the ELF dump handler,
but we might as well single-thread, since the process is about to die.
Furthermore, I think this should ensure that the register sets in the
core file are sequentially consistent.
Revision Changes Path
1.304 +11 -1 src/sys/kern/kern_sig.c
More information about the cvs-src
mailing list