Date: Mon, 28 Jun 2010 18:12:42 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern sysv_shm.c Message-ID: <201006281813.o5SIDJSC061354@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2010-06-28 18:12:42 UTC
FreeBSD src repository
Modified files:
sys/kern sysv_shm.c
Log:
SVN rev 209580 on 2010-06-28 18:12:42Z by kib
Despite system call deregistration drains the threads executing System V
shm syscalls, and initial check for the number of allocated segments
in the module deinitialization code, the following might happen:
after the check for active segment, while waiting for threads to
leave some other syscall, shmget(2) is called. Then, we can end
up with the shared segment that cannot be detached since sysvshm
module is unloaded.
Prevent the leak by rechecking and disclaiming a reference to the vm
object owned by sysvshm module, that might have grown during the drain.
Tested by: pho
Reviewed by: jhb
MFC after: 1 month
Revision Changes Path
1.129 +9 -1 src/sys/kern/sysv_shm.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006281813.o5SIDJSC061354>
