NetBSD

CVS log for src/sys/kern/sys_mqueue.c

[BACK] Up to [NetBSD] / src / sys / kern

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 11:09:36 2011 (8 months ago) by jruoho
Branches: jruoho-x86intr
Diff to previous 1.30: preferred, colored next main 1.31: preferred, colored
Changes since revision 1.30: +234 -262 lines
Sync with HEAD.

Revision 1.29.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 05:05:02 2011 (8 months, 1 week ago) by rmind
Branches: rmind-uvmplock
Diff to previous 1.29.4.1: preferred, colored to branchpoint 1.29: preferred, colored next main 1.30: preferred, colored
Changes since revision 1.29.4.1: +228 -256 lines
sync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Apr 25 13:39:42 2011 (9 months, 2 weeks ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, HEAD
Diff to previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2 lines
Add missing <sys/atomic.h> include.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Apr 24 22:17:53 2011 (9 months, 2 weeks ago) by rmind
Branches: MAIN
Diff to previous 1.31: preferred, colored
Changes since revision 1.31: +229 -258 lines
- Move some checks into mqueue_get() and avoid some duplication.
- Simplify message queue descriptor unlinking and closure operations.
- Update proc_t::p_mqueue_cnt atomically.  Inherit it on fork().
- Use separate allocation for the name of message queue.

Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 21:55:22 2011 CET (11 months ago) by rmind
Branches: rmind-uvmplock
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +32 -17 lines
sync with head

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jan 18 21:32:53 2011 CET (12 months, 3 weeks ago) by rmind
Branches: MAIN
CVS tags: bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to previous 1.30: preferred, colored
Changes since revision 1.30: +6 -6 lines
mq_poll_fop: return only those events which are polled.

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 08:47:31 2010 (17 months, 3 weeks ago) by uebayasi
Branches: uebayasi-xip
Diff to previous 1.29: preferred, colored next main 1.30: preferred, colored
Changes since revision 1.29: +28 -13 lines
Sync with HEAD.

Revision 1.10.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 12 00:54:42 2010 (17 months, 4 weeks ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10.2.5: preferred, colored to branchpoint 1.10: preferred, colored next main 1.11: preferred, colored
Changes since revision 1.10.2.5: +28 -13 lines
sync with head.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Jul 28 22:49:12 2010 (18 months, 1 week ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +28 -13 lines
Get rid of SYSCTL_SETUP.

We want the sysctl variables also when mqueue(3) is loaded as a module.

Revision 1.12.4.1.2.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 02:28:18 2010 (21 months, 3 weeks ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to previous 1.12.4.1.2.3: preferred, colored next main 1.12.4.1.2.4: preferred, colored
Changes since revision 1.12.4.1.2.3: +75 -47 lines
sync to netbsd-5

Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 16:04:19 2010 CET (23 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10.2.4: preferred, colored to branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.4: +59 -61 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Dec 20 10:36:05 2009 CET (2 years, 1 month ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.12.4.1.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 18 06:27:56 2009 CET (2 years, 1 month ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to previous 1.12.4.1.2.3: preferred, colored to branchpoint 1.12.4.1: preferred, colored next main 1.12.4.2: preferred, colored
Changes since revision 1.12.4.1.2.3: +17 -4 lines
Pull up following revision(s) (requested by tron in ticket #1188):
	sys/kern/sys_mqueue.c: revision 1.28 via patch
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
on delivery -- add a boundary check
-a user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel
memory by mq_send(2) -- add a sysctl'able limit which defaults
to 16*mq_def_maxmsg
(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)

Revision 1.12.4.6: download - view: text, markup, annotated - select for diffs
Fri Dec 11 00:08:43 2009 CET (2 years, 2 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to previous 1.12.4.5: preferred, colored to branchpoint 1.12: preferred, colored next main 1.13: preferred, colored
Changes since revision 1.12.4.5: +29 -12 lines
Pull up following revision(s) (requested by drochner in ticket #1188):
	sys/kern/sys_mqueue.c: revision 1.28 via patch
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
on delivery -- add a boundary check
-mq_receive(2) from an empty queue crashed the kernel by NULL dereference
in timeout calculation -- handle the NULL case
-likewise for mq_send(2) to a full queue
-a user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel
memory by mq_send(2) -- add a sysctl'able limit which defaults
to 16*mq_def_maxmsg
(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Dec 10 13:22:48 2009 CET (2 years, 2 months ago) by drochner
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +29 -12 lines
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
 on delivery -- add a boundary check
-mq_receive(2) from an empty queue crashed the kernel by NULL dereference
 in timeout calculation -- handle the NULL case
-likewise for mq_send(2) to a full queue
-a user could set mq_maxmsg (the maximal number of messages in a queue)
 to a huge value on mq_open(O_CREAT) and later use up all kernel
 memory by mq_send(2) -- add a sysctl'able limit which defaults
 to 16*mq_def_maxmsg

(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Dec 9 22:32:59 2009 CET (2 years, 2 months ago) by dsl
Branches: MAIN
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Nov 1 22:46:09 2009 CET (2 years, 3 months ago) by rmind
Branches: MAIN
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +2 -27 lines
- Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export.  Use it in lwp_park().

Revision 1.12.4.5: download - view: text, markup, annotated - select for diffs
Fri Oct 16 08:37:51 2009 (2 years, 3 months ago) by snj
Branches: netbsd-5
Diff to previous 1.12.4.4: preferred, colored to branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.4: +52 -41 lines
Pull up following revision(s) (requested by rmind in ticket #1071):
	sys/kern/sys_mqueue.c: revision 1.25 via patch
	sys/sys/mqueue.h: revision 1.11 via patch
mq_timedsend/mq_timedreceive: timeout value is absolute, not relative.
While here, drop unecessary (since fdesc API changes) lwp_t arguments.
Bug reported by Stathis Kamperis, thanks!

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Oct 6 01:49:46 2009 (2 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +48 -42 lines
mq_timedsend/mq_timedreceive: timeout value is absolute, not relative.
While here, drop unecessary (since fdesc API changes) lwp_t arguments.

Bug reported by Stathis Kamperis, thanks!

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 20:48:17 2009 (2 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10.2.3: preferred, colored to branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +114 -30 lines
sync with head.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 24 01:32:35 2009 (2 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to previous 1.13.2.1: preferred, colored to branchpoint 1.13: preferred, colored next main 1.14: preferred, colored
Changes since revision 1.13.2.1: +257 -113 lines
Sync with HEAD.

Revision 1.12.4.4: download - view: text, markup, annotated - select for diffs
Tue Jul 21 02:23:01 2009 (2 years, 6 months ago) by snj
Branches: netbsd-5
Diff to previous 1.12.4.3: preferred, colored to branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.3: +12 -3 lines
Pull up following revision(s) (requested by rmind in ticket #857):
	sys/kern/sys_mqueue.c: revision 1.21 via patch
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.
From Stathis Kamperis, thanks!

Revision 1.12.4.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 21 02:21:21 2009 (2 years, 6 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to previous 1.12.4.1.2.2: preferred, colored to branchpoint 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1.2.2: +12 -3 lines
Pull up following revision(s) (requested by rmind in ticket #857):
	sys/kern/sys_mqueue.c: revision 1.21 via patch
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.
From Stathis Kamperis, thanks!

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jul 19 04:50:44 2009 (2 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jymxensuspend-base
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +80 -5 lines
Make POSIX message queues a kernel module.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jul 19 04:26:49 2009 (2 years, 6 months ago) by rmind
Branches: MAIN
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +36 -27 lines
Fix previous, so that it actually works, correctly.

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 16:53:23 2009 (2 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10.2.2: preferred, colored to branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +128 -57 lines
sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 13 04:37:12 2009 (2 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base6
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +102 -51 lines
- Make insertion to message queue O(1) by using bitmap and array.  However,
  mq_prio_max is dynamic, and sorted list is used for custom setup, when
  user manually sets higher priority range.
- Cache mq->mq_attrib in some places.  Change msg_ptr type to uint8_t.
- Update copyright, misc.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jul 13 02:41:08 2009 (2 years, 6 months ago) by rmind
Branches: MAIN
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +14 -6 lines
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.

From Stathis Kamperis, thanks!

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jul 3 23:32:09 2009 (2 years, 7 months ago) by elad
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +14 -4 lines
Message queues also use genfs_can_access() to control access. Since the
latter might lose its KAUTH_GENERIC_ISSUSER check soon, add an internal
function, mqueue_access(), and call genfs_can_access() from it instead
so we don't pollute the main code path once we need to add a special
kauth(9) check for message queues.

No functional change, error codes preserved.

Related mailing list thread:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jun 23 21:36:38 2009 (2 years, 7 months ago) by elad
Branches: MAIN
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +6 -4 lines
Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.

Adjust file-system code to use it.

Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).

No objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 20 09:20:31 2009 (2 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10.2.1: preferred, colored to branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +46 -57 lines
sync with head

Revision 1.12.4.1.2.2: download - view: text, markup, annotated - select for diffs
Wed May 27 23:33:50 2009 (2 years, 8 months ago) by snj
Branches: netbsd-5-0
Diff to previous 1.12.4.1.2.1: preferred, colored to branchpoint 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1.2.1: +46 -54 lines
Pull up following revision(s) (requested by rmind in ticket #779):
	sys/kern/sys_mqueue.c: revision 1.18
- Slightly rework the way permissions are checked. Neither mq_receive() not
  mq_send() should fail due to permissions.  Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
  files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
  mq_unlink(), clean up.

Revision 1.12.4.3: download - view: text, markup, annotated - select for diffs
Wed May 27 23:32:05 2009 (2 years, 8 months ago) by snj
Branches: netbsd-5
Diff to previous 1.12.4.2: preferred, colored to branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.2: +46 -54 lines
Pull up following revision(s) (requested by rmind in ticket #779):
	sys/kern/sys_mqueue.c: revision 1.18
- Slightly rework the way permissions are checked. Neither mq_receive() not
  mq_send() should fail due to permissions.  Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
  files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
  mq_unlink(), clean up.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 26 02:39:14 2009 (2 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base5
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +46 -54 lines
- Slightly rework the way permissions are checked. Neither mq_receive() not
  mq_send() should fail due to permissions.  Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
  files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
  mq_unlink(), clean up.

Revision 1.12.4.1.2.1: download - view: text, markup, annotated - select for diffs
Mon May 18 21:50:13 2009 (2 years, 8 months ago) by bouyer
Branches: netbsd-5-0
Diff to previous 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1: +2 -5 lines
Pull up following revision(s) (requested by rmind in ticket #762):
	sys/kern/sys_mqueue.c: revision 1.17
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.

Revision 1.12.4.2: download - view: text, markup, annotated - select for diffs
Mon May 18 21:47:32 2009 (2 years, 8 months ago) by bouyer
Branches: netbsd-5
Diff to previous 1.12.4.1: preferred, colored to branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.1: +2 -5 lines
Pull up following revision(s) (requested by rmind in ticket #762):
	sys/kern/sys_mqueue.c: revision 1.17
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun May 17 01:58:09 2009 (2 years, 8 months ago) by rmind
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +2 -5 lines
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:21:57 2009 (2 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +38 -4 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 10:13:48 2009 (2 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +98 -43 lines
sync with head.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 09:37:00 2009 (2 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to previous 1.12.2.1: preferred, colored to branchpoint 1.12: preferred, colored next main 1.13: preferred, colored
Changes since revision 1.12.2.1: +38 -4 lines
Sync with HEAD.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Apr 12 01:05:26 2009 (2 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +8 -4 lines
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Apr 11 17:47:33 2009 (2 years, 10 months ago) by christos
Branches: MAIN
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +26 -3 lines
Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sun Apr 5 01:36:27 2009 (2 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4
Branch point for: netbsd-5-0
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +11 -4 lines
Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Apr 4 12:12:51 2009 (2 years, 10 months ago) by ad
Branches: MAIN
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +11 -4 lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 14:19:39 2009 CET (3 years ago) by skrll
Branches: nick-hppapmap
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +23 -18 lines
Sync with HEAD.

Revision 1.6.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 14:29:20 2009 CET (3 years ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.6.6.4: preferred, colored to branchpoint 1.6: preferred, colored next main 1.7: preferred, colored
Changes since revision 1.6.6.4: +21 -16 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 11 03:45:52 2009 CET (3 years ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +23 -18 lines
merge christos-time_t

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 22:22:27 2008 CET (3 years, 3 months ago) by christos
Branches: christos-time_t
Diff to previous 1.9.2.1: preferred, colored to branchpoint 1.9: preferred, colored next main 1.10: preferred, colored
Changes since revision 1.9.2.1: +43 -27 lines
Sync with head.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 20 00:17:28 2008 (3 years, 3 months ago) by haad
Branches: haad-dm
Diff to previous 1.11: preferred, colored next main 1.12: preferred, colored
Changes since revision 1.11: +41 -27 lines
Sync with HEAD.

Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 11 00:34:14 2008 (3 years, 4 months ago) by skrll
Branches: wrstuden-revivesa
Diff to previous 1.10.4.1: preferred, colored to branchpoint 1.10: preferred, colored next main 1.11: preferred, colored
Changes since revision 1.10.4.1: +41 -27 lines
Sync with HEAD.

Revision 1.6.6.4: download - view: text, markup, annotated - select for diffs
Sun Oct 5 22:11:32 2008 (3 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.6.6.3: preferred, colored to branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.3: +39 -25 lines
Sync with HEAD.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 29 12:27:53 2008 (3 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +41 -27 lines
- Fix message queue permissions problems.
- Rake into account umask when creating mqueue.
- Restore DDB command, which was accidentally lost (hi martin).
- Misc.

Revision 1.6.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 12:40:53 2008 (3 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.6.6.2: preferred, colored to branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.2: +5 -3 lines
Sync with HEAD.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 06:31:43 2008 (3 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 20:38:12 2008 (3 years, 7 months ago) by simonb
Branches: simonb-wapbl
Diff to previous 1.10: preferred, colored next main 1.11: preferred, colored
Changes since revision 1.10: +7 -5 lines
Sync with head.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jul 2 22:06:09 2008 (3 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5 lines
mq_open: fix confusion of FREAD/FWRITE and VREAD/VWRITE.

Revision 1.6.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 15:24:12 2008 (3 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.6.6.1: preferred, colored to branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.1: +2 -2 lines
Sync with HEAD.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 14:35:10 2008 (3 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to previous 1.9: preferred, colored next main 1.10: preferred, colored
Changes since revision 1.9: +4 -4 lines
sync with head.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Apr 24 17:35:30 2008 (3 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 14:43:04 2008 (3 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +106 -64 lines
Sync with HEAD.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 21:47:01 2008 CET (3 years, 10 months ago) by christos
Branches: christos-time_t
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +23 -18 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 27 19:30:15 2008 CET (3 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42, christos-time_t
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Replace use of CACHE_LINE_SIZE in some obvious places.

Revision 1.3.4.6: download - view: text, markup, annotated - select for diffs
Mon Mar 24 10:39:02 2008 CET (3 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.3.4.5: preferred, colored to branchpoint 1.3: preferred, colored next main 1.4: preferred, colored
Changes since revision 1.3.4.5: +106 -64 lines
sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 23 01:44:15 2008 CET (3 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +82 -34 lines
- Support for select/poll.
- Convert pool to pool-cache.
- Wrap long lines, adjust the license.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Mar 21 22:55:00 2008 CET (3 years, 10 months ago) by ad
Branches: MAIN
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +26 -32 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 10:46:23 2008 CET (4 years ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.3.4.4: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +31 -31 lines
sync with head

Revision 1.3.8.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:56:21 2008 CET (4 years, 1 month ago) by matt
Branches: matt-armv6
Diff to previous 1.3.8.2: preferred, colored to branchpoint 1.3: preferred, colored next main 1.4: preferred, colored
Changes since revision 1.3.8.2: +34 -33 lines
sync with HEAD

Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 22:56:13 2008 CET (4 years, 1 month ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to previous 1.5: preferred, colored next main 1.6: preferred, colored
Changes since revision 1.5: +31 -31 lines
Sync with HEAD

Revision 1.3.6.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 01:46:10 2007 CET (4 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to previous 1.3.6.2: preferred, colored to branchpoint 1.3: preferred, colored next main 1.4: preferred, colored
Changes since revision 1.3.6.2: +31 -31 lines
Sync with HEAD.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 20:57:14 2007 CET (4 years, 1 month ago) by ad
Branches: vmlocking2
Diff to previous 1.5: preferred, colored next main 1.6: preferred, colored
Changes since revision 1.5: +31 -31 lines
Sync with head.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Dec 21 00:03:10 2007 CET (4 years, 1 month ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +31 -31 lines
Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:20:39 2007 CET (4 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to previous 1.3.6.1: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.6.1: +3 -2 lines
Sync with HEAD.

Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 18:33:11 2007 CET (4 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.3.4.3: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +3 -2 lines
sync with head

Revision 1.2.4.5: download - view: text, markup, annotated - select for diffs
Mon Dec 3 17:14:58 2007 CET (4 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.2.4.4: preferred, colored to branchpoint 1.2: preferred, colored next main 1.3: preferred, colored
Changes since revision 1.2.4.4: +3 -2 lines
Sync with HEAD.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 28 20:30:56 2007 CET (4 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
Unify the license: All rights reserved.
No functional change.

Revision 1.3.6.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 01:48:53 2007 CET (4 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Sync with HEAD.

Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Thu Nov 15 12:44:51 2007 CET (4 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.3.4.2: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +4 -4 lines
sync with head.

Revision 1.2.4.4: download - view: text, markup, annotated - select for diffs
Wed Nov 14 20:04:45 2007 CET (4 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.2.4.3: preferred, colored to branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.3: +4 -4 lines
Sync with HEAD.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 17:02:26 2007 CET (4 years, 2 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to previous 1.3: preferred, colored next main 1.4: preferred, colored
Changes since revision 1.3: +4 -4 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Nov 12 00:22:24 2007 CET (4 years, 2 months ago) by matt
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER).  Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto.  Init some static/global
cpu_simple_locks at compile time.

Revision 1.3.8.2: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:32:30 2007 CET (4 years, 3 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to previous 1.3.8.1: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.8.1: +966 -0 lines
sync with HEAD

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 13:35:35 2007 (4 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.3.4.1: preferred, colored to branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +966 -0 lines
sync with head.

Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 17:48:42 2007 (4 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.2.4.2: preferred, colored to branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.2: +3 -4 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 13:48:47 2007 (4 years, 3 months ago) by yamt
Branches: yamt-x86pmap
Diff to previous 1.2: preferred, colored next main 1.3: preferred, colored
Changes since revision 1.2: +3 -4 lines
sync with head.

Revision 1.2.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 12 19:03:20 2007 (4 years, 3 months ago) by ad
Branches: vmlocking
Diff to previous 1.2.6.2: preferred, colored to branchpoint 1.2: preferred, colored next main 1.3: preferred, colored
Changes since revision 1.2.6.2: +3 -4 lines
Sync with head.

Revision 1.3.8.1
Tue Oct 9 20:27:00 2007 (4 years, 4 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.3: +0 -966 lines
file sys_mqueue.c was added on branch matt-armv6 on 2007-11-06 23:32:30 +0000

Revision 1.3.4.1
Tue Oct 9 20:27:00 2007 (4 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.3: +0 -966 lines
file sys_mqueue.c was added on branch yamt-lazymbuf on 2007-10-27 11:35:35 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 20:27:00 2007 (4 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: yamt-lazymbuf, mjf-devfs, matt-armv6, bouyer-xenamd64
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +3 -4 lines
mq_receive1: Handle the possible dereference, when cv_timedwait_sig() awakes
normally (without the error) and MQ_UNLINK is set.
From CID: 4565.

Revision 1.2.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 15:44:30 2007 (4 years, 4 months ago) by ad
Branches: vmlocking
Diff to previous 1.2.6.1: preferred, colored to branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.1: +967 -0 lines
Sync with head.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 20:29:04 2007 (4 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.2.4.1: preferred, colored to branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +967 -0 lines
Sync with HEAD.

Revision 1.2.6.1
Fri Sep 21 03:40:10 2007 (4 years, 4 months ago) by ad
Branches: vmlocking
FILE REMOVED
Changes since revision 1.2: +0 -967 lines
file sys_mqueue.c was added on branch vmlocking on 2007-10-09 13:44:30 +0000

Revision 1.2.4.1
Fri Sep 21 03:40:10 2007 (4 years, 4 months ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.2: +0 -967 lines
file sys_mqueue.c was added on branch jmcneill-pm on 2007-10-02 18:29:04 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Sep 21 03:40:10 2007 (4 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base
Branch point for: yamt-x86pmap, vmlocking, jmcneill-pm
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +4 -7 lines
- mq_receive1, mq_send1: deal with spurious wakeup. XXX should adjust the
  timeout but this is a wider problem.
- MQ_SEND is unused, remove it.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 10 12:56:02 2007 (4 years, 5 months ago) by skrll
Branches: nick-csl-alignment
Diff to previous 1.1.2.1: preferred, colored to branchpoint 1.1: preferred, colored next main 1.2: preferred, colored
Changes since revision 1.1.2.1: +970 -0 lines
Sync with HEAD.

Revision 1.1.2.1
Fri Sep 7 20:56:09 2007 (4 years, 5 months ago) by skrll
Branches: nick-csl-alignment
FILE REMOVED
Changes since revision 1.1: +0 -970 lines
file sys_mqueue.c was added on branch nick-csl-alignment on 2007-09-10 10:56:02 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 20:56:09 2007 (4 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: nick-csl-alignment-base5
Branch point for: nick-csl-alignment
Implementation of POSIX message queues.

Reviewed by: <ad>, <tech-kern>

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

cvsweb.de.netbsd.org <zafer@aydogan.de>