Date: Fri, 31 Oct 2008 10:38:30 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/linux linux_emul.c Message-ID: <200810311038.m9VAcYe4023942@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2008-10-31 10:38:30 UTC FreeBSD src repository Modified files: sys/compat/linux linux_emul.c Log: SVN rev 184501 on 2008-10-31 10:38:30Z by kib The code in linux_proc_exit() contains a race when multiple linux based processes exits at the same time. The linux_emuldata structure is freed but p->p_emuldata is left as a dangling pointer to the just freed memory. The check for W_EXIT in the loop scanning the child processes isn't safe since the state of the child process can change right afterwards. Lock the process and check the W_EXIT before delivering signal. Submitted by: tegge Reviewed by: davidxu MFC after: 1 week Revision Changes Path 1.22 +3 -3 src/sys/compat/linux/linux_emul.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810311038.m9VAcYe4023942>