Date: Sun, 9 Nov 2003 17:37:41 -0800 (PST) From: Alan Cox <alc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_glue.c vm_map.c vm_mmap.c Message-ID: <200311100137.hAA1bfsN058166@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2003/11/09 17:37:41 PST FreeBSD src repository Modified files: sys/vm vm_glue.c vm_map.c vm_mmap.c Log: - The Open Group Base Specifications Issue 6 specifies that an munmap(2) must return EINVAL if size is zero. Submitted by: tegge - In order to avoid a race condition in multithreaded applications, the check and removal operations by munmap(2) must be in the same critical section. To accomodate this, vm_map_check_protection() is modified to require its caller to obtain at least a read lock on the map. Revision Changes Path 1.187 +4 -0 src/sys/vm/vm_glue.c 1.321 +6 -14 src/sys/vm/vm_map.c 1.171 +8 -6 src/sys/vm/vm_mmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311100137.hAA1bfsN058166>