Date: Thu, 5 May 2005 19:57:04 +0000 (UTC) From: Paul Saab <ps@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_ipc.c src/sys/kern sysv_msg.c src/sys/sys syscallsubr.h Message-ID: <200505051957.j45Jv4g2078586@repoman.freebsd.org>
index | next in thread | raw e-mail
ps 2005-05-05 19:57:04 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/compat/linux linux_ipc.c
sys/kern sysv_msg.c
sys/sys syscallsubr.h
Log:
MFC:
- Tweak kern_msgctl() to return a copy of the requested message queue id
structure in the struct pointed to by the 3rd argument for IPC_STAT and
get rid of the 4th argument. The old way returned a pointer into the
kernel array that the calling function would then access afterwards
without holding the appropriate locks and doing non-lock-safe things like
copyout() with the data anyways. This change removes that unsafeness and
resulting race conditions as well as simplifying the interface.
Revision Changes Path
1.39.2.4 +2 -3 src/sys/compat/linux/linux_ipc.c
1.53.2.6 +5 -7 src/sys/kern/sysv_msg.c
1.11.2.12 +1 -2 src/sys/sys/syscallsubr.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505051957.j45Jv4g2078586>
