Up to [cvs.netbsd.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.33.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:29 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.33: +30 -4
lines
Diff to previous 1.33 (colored) next main 1.34 (colored)
sync with head
Revision 1.33.8.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:39 2012 UTC (7 weeks, 1 day ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.33: +30 -4
lines
Diff to previous 1.33 (colored) next main 1.34 (colored)
sync to latest -current.
Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:53 2012 UTC (2 months, 1 week ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
HEAD
Changes since 1.33: +30 -4
lines
Diff to previous 1.33 (colored)
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:36 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.30: +234 -262
lines
Diff to previous 1.30 (colored) next main 1.31 (colored)
Sync with HEAD.
Revision 1.29.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:02 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29.4.1: +228 -256
lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)
sync with head
Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 25 11:39:42 2011 UTC (13 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
netbsd-6-base,
netbsd-6,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp
Branch point for: yamt-pagecache,
jmcneill-usbmp
Changes since 1.32: +3 -2
lines
Diff to previous 1.32 (colored)
Add missing <sys/atomic.h> include.
Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 24 20:17:53 2011 UTC (13 months ago) by rmind
Branch: MAIN
Changes since 1.31: +229 -258
lines
Diff to previous 1.31 (colored)
- 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) - annotate - [select for diffs], Sat Mar 5 20:55:22 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29: +32 -17
lines
Diff to previous 1.29 (colored)
sync with head
Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 18 20:32:53 2011 UTC (16 months ago) by rmind
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.30: +6 -6
lines
Diff to previous 1.30 (colored)
mq_poll_fop: return only those events which are polled.
Revision 1.29.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:31 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.29: +28 -13
lines
Diff to previous 1.29 (colored) next main 1.30 (colored)
Sync with HEAD.
Revision 1.10.2.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:42 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.2.5: +28 -13
lines
Diff to previous 1.10.2.5 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)
sync with head.
Revision 1.30 / (download) - annotate - [select for diffs], Wed Jul 28 20:49:12 2010 UTC (21 months, 4 weeks ago) by jruoho
Branch: 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
Changes since 1.29: +28 -13
lines
Diff to previous 1.29 (colored)
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) - annotate - [select for diffs], Wed Apr 21 00:28:18 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Changes since 1.12.4.1.2.3: +75 -47
lines
Diff to previous 1.12.4.1.2.3 (colored) next main 1.12.4.1.2.4 (colored)
sync to netbsd-5
Revision 1.10.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:19 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.2.4: +59 -61
lines
Diff to previous 1.10.2.4 (colored) to branchpoint 1.10 (colored)
sync with head
Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 20 09:36:05 2009 UTC (2 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Changes since 1.28: +3 -3
lines
Diff to previous 1.28 (colored)
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) - annotate - [select for diffs], Fri Dec 18 05:27:56 2009 UTC (2 years, 5 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE
Changes since 1.12.4.1.2.3: +17 -4
lines
Diff to previous 1.12.4.1.2.3 (colored) to branchpoint 1.12.4.1 (colored) next main 1.12.4.2 (colored)
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) - annotate - [select for diffs], Thu Dec 10 23:08:43 2009 UTC (2 years, 5 months ago) by snj
Branch: 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
Changes since 1.12.4.5: +29 -12
lines
Diff to previous 1.12.4.5 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)
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) - annotate - [select for diffs], Thu Dec 10 12:22:48 2009 UTC (2 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.27: +29 -12
lines
Diff to previous 1.27 (colored)
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) - annotate - [select for diffs], Wed Dec 9 21:32:59 2009 UTC (2 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.26: +3 -3
lines
Diff to previous 1.26 (colored)
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) - annotate - [select for diffs], Sun Nov 1 21:46:09 2009 UTC (2 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.25: +2 -27
lines
Diff to previous 1.25 (colored)
- 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) - annotate - [select for diffs], Fri Oct 16 06:37:51 2009 UTC (2 years, 7 months ago) by snj
Branch: netbsd-5
Changes since 1.12.4.4: +52 -41
lines
Diff to previous 1.12.4.4 (colored) to branchpoint 1.12 (colored)
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) - annotate - [select for diffs], Mon Oct 5 23:49:46 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.24: +48 -42
lines
Diff to previous 1.24 (colored)
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) - annotate - [select for diffs], Wed Aug 19 18:48:17 2009 UTC (2 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.2.3: +114 -30
lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored)
sync with head.
Revision 1.13.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.13.2.1: +257 -113
lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)
Sync with HEAD.
Revision 1.12.4.4 / (download) - annotate - [select for diffs], Tue Jul 21 00:23:01 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.12.4.3: +12 -3
lines
Diff to previous 1.12.4.3 (colored) to branchpoint 1.12 (colored)
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) - annotate - [select for diffs], Tue Jul 21 00:21:21 2009 UTC (2 years, 10 months ago) by snj
Branch: 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
Changes since 1.12.4.1.2.2: +12 -3
lines
Diff to previous 1.12.4.1.2.2 (colored) to branchpoint 1.12.4.1 (colored)
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) - annotate - [select for diffs], Sun Jul 19 02:50:44 2009 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
jymxensuspend-base
Changes since 1.23: +80 -5
lines
Diff to previous 1.23 (colored)
Make POSIX message queues a kernel module.
Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 19 02:26:49 2009 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.22: +36 -27
lines
Diff to previous 1.22 (colored)
Fix previous, so that it actually works, correctly.
Revision 1.10.2.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:23 2009 UTC (2 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.2.2: +128 -57
lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored)
sync with head.
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 13 02:37:12 2009 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.21: +102 -51
lines
Diff to previous 1.21 (colored)
- 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) - annotate - [select for diffs], Mon Jul 13 00:41:08 2009 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.20: +14 -6
lines
Diff to previous 1.20 (colored)
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) - annotate - [select for diffs], Fri Jul 3 21:32:09 2009 UTC (2 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.19: +14 -4
lines
Diff to previous 1.19 (colored)
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) - annotate - [select for diffs], Tue Jun 23 19:36:38 2009 UTC (2 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.18: +6 -4
lines
Diff to previous 1.18 (colored)
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) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.2.1: +46 -57
lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)
sync with head
Revision 1.12.4.1.2.2 / (download) - annotate - [select for diffs], Wed May 27 21:33:50 2009 UTC (2 years, 11 months ago) by snj
Branch: netbsd-5-0
Changes since 1.12.4.1.2.1: +46 -54
lines
Diff to previous 1.12.4.1.2.1 (colored) to branchpoint 1.12.4.1 (colored)
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) - annotate - [select for diffs], Wed May 27 21:32:05 2009 UTC (2 years, 11 months ago) by snj
Branch: netbsd-5
Changes since 1.12.4.2: +46 -54
lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored)
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) - annotate - [select for diffs], Tue May 26 00:39:14 2009 UTC (3 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.17: +46 -54
lines
Diff to previous 1.17 (colored)
- 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) - annotate - [select for diffs], Mon May 18 19:50:13 2009 UTC (3 years ago) by bouyer
Branch: netbsd-5-0
Changes since 1.12.4.1: +2 -5
lines
Diff to previous 1.12.4.1 (colored)
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) - annotate - [select for diffs], Mon May 18 19:47:32 2009 UTC (3 years ago) by bouyer
Branch: netbsd-5
Changes since 1.12.4.1: +2 -5
lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored)
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) - annotate - [select for diffs], Sat May 16 23:58:09 2009 UTC (3 years ago) by rmind
Branch: MAIN
Changes since 1.16: +2 -5
lines
Diff to previous 1.16 (colored)
sys_mq_open: remove broken access flag check. Noted by Stathis Kamperis.
Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.13: +38 -4
lines
Diff to previous 1.13 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10: +98 -43
lines
Diff to previous 1.10 (colored)
sync with head.
Revision 1.12.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.12.2.1: +38 -4
lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)
Sync with HEAD.
Revision 1.16 / (download) - annotate - [select for diffs], Sat Apr 11 23:05:26 2009 UTC (3 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.15: +8 -4
lines
Diff to previous 1.15 (colored)
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.
Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 11 15:47:33 2009 UTC (3 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.14: +26 -3
lines
Diff to previous 1.14 (colored)
Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use fbadop_stat.
Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sat Apr 4 23:36:27 2009 UTC (3 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4
Branch point for: netbsd-5-0
Changes since 1.12: +11 -4
lines
Diff to previous 1.12 (colored)
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) - annotate - [select for diffs], Sat Apr 4 10:12:51 2009 UTC (3 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.13: +11 -4
lines
Diff to previous 1.13 (colored)
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) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.12: +23 -18
lines
Diff to previous 1.12 (colored)
Sync with HEAD.
Revision 1.6.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.6.4: +21 -16
lines
Diff to previous 1.6.6.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)
Sync with HEAD.
Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:52 2009 UTC (3 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.12: +23 -18
lines
Diff to previous 1.12 (colored)
merge christos-time_t
Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:27 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.9.2.1: +43 -27
lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
Sync with head.
Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.11: +41 -27
lines
Diff to previous 1.11 (colored) next main 1.12 (colored)
Sync with HEAD.
Revision 1.10.4.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.10.4.1: +41 -27
lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)
Sync with HEAD.
Revision 1.6.6.4 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:32 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.6.3: +39 -25
lines
Diff to previous 1.6.6.3 (colored) to branchpoint 1.6 (colored)
Sync with HEAD.
Revision 1.12 / (download) - annotate - [select for diffs], Mon Sep 29 10:27:53 2008 UTC (3 years, 7 months ago) by rmind
Branch: 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
Changes since 1.11: +41 -27
lines
Diff to previous 1.11 (colored)
- 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) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.6.2: +5 -3
lines
Diff to previous 1.6.6.2 (colored) to branchpoint 1.6 (colored)
Sync with HEAD.
Revision 1.10.4.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.10: +7 -5
lines
Diff to previous 1.10 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.10.6.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:12 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.10: +7 -5
lines
Diff to previous 1.10 (colored) next main 1.11 (colored)
Sync with head.
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 2 20:06:09 2008 UTC (3 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.10: +7 -5
lines
Diff to previous 1.10 (colored)
mq_open: fix confusion of FREAD/FWRITE and VREAD/VWRITE.
Revision 1.6.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:12 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.6.1: +2 -2
lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored)
Sync with HEAD.
Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.9: +4 -4
lines
Diff to previous 1.9 (colored) next main 1.10 (colored)
sync with head.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (4 years, 1 month ago) by ad
Branch: 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
Changes since 1.9: +4 -4
lines
Diff to previous 1.9 (colored)
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) - annotate - [select for diffs], Thu Apr 3 12:43:04 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.6: +106 -64
lines
Diff to previous 1.6 (colored)
Sync with HEAD.
Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:01 2008 UTC (4 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.9: +23 -18
lines
Diff to previous 1.9 (colored)
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 27 18:30:15 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42,
christos-time_t
Changes since 1.8: +3 -3
lines
Diff to previous 1.8 (colored)
Replace use of CACHE_LINE_SIZE in some obvious places.
Revision 1.3.4.6 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.5: +106 -64
lines
Diff to previous 1.3.4.5 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)
sync with head.
Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:15 2008 UTC (4 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Changes since 1.7: +82 -34
lines
Diff to previous 1.7 (colored)
- Support for select/poll. - Convert pool to pool-cache. - Wrap long lines, adjust the license.
Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.6: +26 -32
lines
Diff to previous 1.6 (colored)
Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
Revision 1.3.4.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:23 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.4: +31 -31
lines
Diff to previous 1.3.4.4 (colored) to branchpoint 1.3 (colored)
sync with head
Revision 1.3.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:21 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.3.8.2: +34 -33
lines
Diff to previous 1.3.8.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)
sync with HEAD
Revision 1.5.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:13 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.5: +31 -31
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
Sync with HEAD
Revision 1.3.6.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:10 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.3.6.2: +31 -31
lines
Diff to previous 1.3.6.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)
Sync with HEAD.
Revision 1.5.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:14 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.5: +31 -31
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
Sync with head.
Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:10 2007 UTC (4 years, 5 months ago) by dsl
Branch: 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
Changes since 1.5: +31 -31
lines
Diff to previous 1.5 (colored)
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) - annotate - [select for diffs], Sat Dec 8 18:20:39 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.3.6.1: +3 -2
lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored)
Sync with HEAD.
Revision 1.3.4.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:11 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.3: +3 -2
lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored)
sync with head
Revision 1.2.4.5 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:58 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2.4.4: +3 -2
lines
Diff to previous 1.2.4.4 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
Sync with HEAD.
Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 28 19:30:56 2007 UTC (4 years, 5 months ago) by rmind
Branch: 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
Changes since 1.4: +3 -2
lines
Diff to previous 1.4 (colored)
Unify the license: All rights reserved. No functional change.
Revision 1.3.6.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:53 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.3: +4 -4
lines
Diff to previous 1.3 (colored)
Sync with HEAD.
Revision 1.3.4.3 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:51 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.2: +4 -4
lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)
sync with head.
Revision 1.2.4.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:45 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2.4.3: +4 -4
lines
Diff to previous 1.2.4.3 (colored) to branchpoint 1.2 (colored)
Sync with HEAD.
Revision 1.3.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:26 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.3: +4 -4
lines
Diff to previous 1.3 (colored) next main 1.4 (colored)
Sync with HEAD
Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 11 23:22:24 2007 UTC (4 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Changes since 1.3: +4 -4
lines
Diff to previous 1.3 (colored)
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) - annotate - [select for diffs], Tue Nov 6 23:32:30 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.3.8.1: +966 -0
lines
Diff to previous 1.3.8.1 (colored) to branchpoint 1.3 (colored)
sync with HEAD
Revision 1.3.4.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:35 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.1: +966 -0
lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)
sync with head.
Revision 1.2.4.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:42 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2.4.2: +3 -4
lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored)
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) - annotate - [select for diffs], Sun Oct 14 11:48:47 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.2: +3 -4
lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
sync with head.
Revision 1.2.6.3 / (download) - annotate - [select for diffs], Fri Oct 12 17:03:20 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.2.6.2: +3 -4
lines
Diff to previous 1.2.6.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
Sync with head.
Revision 1.3.8.1, Tue Oct 9 18:27:00 2007 UTC (4 years, 7 months ago) by matt
Branch: matt-armv6
Changes since 1.3: +0 -966
lines
FILE REMOVED
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 18:27:00 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +0 -966
lines
FILE REMOVED
file sys_mqueue.c was added on branch yamt-lazymbuf on 2007-10-27 11:35:35 +0000
Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 9 18:27:00 2007 UTC (4 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base
Branch point for: yamt-lazymbuf,
mjf-devfs,
matt-armv6,
bouyer-xenamd64
Changes since 1.2: +3 -4
lines
Diff to previous 1.2 (colored)
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) - annotate - [select for diffs], Tue Oct 9 13:44:30 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.2.6.1: +967 -0
lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored)
Sync with head.
Revision 1.2.4.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:04 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2.4.1: +967 -0
lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)
Sync with HEAD.
Revision 1.2.6.1, Fri Sep 21 01:40:10 2007 UTC (4 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.2: +0 -967
lines
FILE REMOVED
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 01:40:10 2007 UTC (4 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2: +0 -967
lines
FILE REMOVED
file sys_mqueue.c was added on branch jmcneill-pm on 2007-10-02 18:29:04 +0000
Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 21 01:40:10 2007 UTC (4 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2,
yamt-x86pmap-base
Branch point for: yamt-x86pmap,
vmlocking,
jmcneill-pm
Changes since 1.1: +4 -7
lines
Diff to previous 1.1 (colored)
- 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) - annotate - [select for diffs], Mon Sep 10 10:56:02 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.1.2.1: +970 -0
lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Sync with HEAD.
Revision 1.1.2.1, Fri Sep 7 18:56:09 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.1: +0 -970
lines
FILE REMOVED
file sys_mqueue.c was added on branch nick-csl-alignment on 2007-09-10 10:56:02 +0000
Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 7 18:56:09 2007 UTC (4 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Branch point for: nick-csl-alignment
Implementation of POSIX message queues. Reviewed by: <ad>, <tech-kern>