The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.47 / (download) - annotate - [select for diffs], Sat May 16 18:31:50 2020 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.46: +7 -7 lines
Diff to previous 1.46 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.40.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.40.4.2: +3 -0 lines
Diff to previous 1.40.4.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.40.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (3 years, 2 months ago) by martin
Branch: phil-wifi
Changes since 1.40.4.1: +12 -28 lines
Diff to previous 1.40.4.1 (colored) to branchpoint 1.40 (colored)

Merge changes from current as of 20200406

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 16 21:20:10 2020 UTC (3 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.45: +12 -28 lines
Diff to previous 1.45 (colored)

Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Sep 15 20:51:03 2019 UTC (3 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.44: +5 -2 lines
Diff to previous 1.44 (colored)

Prevent O_EXEC for mq_open(2), and O_EXEC with a writable fd for open(2).

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years ago) by christos
Branch: phil-wifi
Changes since 1.40: +14 -17 lines
Diff to previous 1.40 (colored)

Sync with HEAD

Revision 1.36.10.1 / (download) - annotate - [select for diffs], Tue Apr 16 03:53:46 2019 UTC (4 years, 1 month ago) by msaitoh
Branch: netbsd-7-1
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Pull up following revision(s) (requested by martin in ticket #1688):
	sys/kern/sys_mqueue.c: revision 1.44
mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Tue Apr 16 03:53:25 2019 UTC (4 years, 1 month ago) by msaitoh
Branch: netbsd-7-0
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Pull up following revision(s) (requested by martin in ticket #1688):
	sys/kern/sys_mqueue.c: revision 1.44
mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Tue Apr 16 03:52:34 2019 UTC (4 years, 1 month ago) by msaitoh
Branch: netbsd-7
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Pull up following revision(s) (requested by martin in ticket #1688):
	sys/kern/sys_mqueue.c: revision 1.44
mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.

Revision 1.39.10.1 / (download) - annotate - [select for diffs], Tue Apr 16 03:47:14 2019 UTC (4 years, 1 month ago) by msaitoh
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Pull up following revision(s) (requested by martin in ticket #1230):
	sys/kern/sys_mqueue.c: revision 1.44
mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 16 01:02:41 2019 UTC (4 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.40.2.1: +10 -15 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.43 / (download) - annotate - [select for diffs], Sun Aug 19 15:10:23 2018 UTC (4 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.42: +10 -15 lines
Diff to previous 1.42 (colored)

Handle p->p_mqueue_cnt in a symmetric manner.

While this change does mean that each open mqd_t counts against the
limit, it also means that p_mqueue_cnt will never wrap below 0.

Discovered by the Rust nix crate test suite.  It opens the same mq twice
(once for writes, once for reads), and then proceeds to close each of
them, which resulted in p_mqueue_cnt wrapping to (u_int)-1, preventing
the process from opening any more mqueues, and all subsequent
mq(3)-related tests to fail.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jul 4 17:50:18 2018 UTC (4 years, 11 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.41: +1 -1 lines
Diff to previous 1.41 (colored)

Avoid undefined behavior in mq_send1()

Do not shift a signed integer causing change of the signed bit.

sys/kern/sys_mqueue.c:881:23, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 4 17:39:12 2018 UTC (4 years, 11 months ago) by kamil
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Avoid undefined behavior in mq_recv1()

Do not shift a signed integer causing change of the signed bit.

sys/kern/sys_mqueue.c:712:24, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.34.2.2: +55 -37 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

update from HEAD

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 30 20:25:55 2017 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

add fo_name so we can identify the fileops in a simple way.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.37: +51 -34 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jun 29 15:44:45 2015 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

CID 1308958: Fix reversed arguments in copyin(9)

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jun 20 14:41:54 2015 UTC (7 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.37: +51 -34 lines
Diff to previous 1.37 (colored)

Make mqueue_get public, rearrange mq_open into a helper function that can
be called from compat code, adapt mqueue_create accordingly.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Sep 5 09:20:59 2014 UTC (8 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.34.2.1: +0 -5 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.33.4.1: +6 -9 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.35: +2 -7 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

sync with head

Revision 1.36 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (9 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.35: +2 -7 lines
Diff to previous 1.35 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:58 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

resync from head

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 29 01:08:17 2013 UTC (10 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

Centralize the computation of struct timespec to the int timo.
Make lwp_park take the regular arguments for specifying what kind
of timeout we supply like clock_nanosleep(), namely clockid_t and flags.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:29 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.33: +30 -4 lines
Diff to previous 1.33 (colored)

sync with head

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:39 2012 UTC (11 years, 2 months 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 (11 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
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 (12 years 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 (12 years 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 (12 years, 1 month 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-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, 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 (12 years, 1 month 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 (12 years, 3 months 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 (12 years, 4 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 (12 years, 9 months 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 (12 years, 10 months 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 (12 years, 10 months 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 (13 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 (13 years, 3 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 (13 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 (13 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 (13 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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 (13 years, 6 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 (13 years, 6 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 (13 years, 7 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 (13 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 (13 years, 8 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 (13 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 (13 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 (13 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 (13 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 (13 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 (13 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 (13 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 (13 years, 11 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 (13 years, 11 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 (13 years, 11 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 (13 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 (13 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 (14 years 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 (14 years 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 (14 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 (14 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 (14 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 (14 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 (14 years, 1 month 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 (14 years, 1 month 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 (14 years, 1 month 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 (14 years, 2 months 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 (14 years, 2 months 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 (14 years, 2 months 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 (14 years, 2 months 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 (14 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 (14 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 (14 years, 5 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 (14 years, 7 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 (14 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 (14 years, 8 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 (14 years, 8 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 (14 years, 8 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 (14 years, 8 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 (14 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 (14 years, 11 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 (14 years, 11 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 (15 years 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 (15 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 (15 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 (15 years, 2 months 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 (15 years, 2 months 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 (15 years, 2 months 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 (15 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 (15 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 (15 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 (15 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 (15 years, 5 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 (15 years, 5 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 (15 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 (15 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 (15 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 (15 years, 6 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 (15 years, 6 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 (15 years, 6 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 (15 years, 6 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 (15 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 (15 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 (15 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 (15 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 (15 years, 7 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 (15 years, 7 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 (15 years, 7 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 (15 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 (15 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 (15 years, 8 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 (15 years, 8 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 (15 years, 8 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 (15 years, 8 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 (15 years, 8 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 (15 years, 8 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 (15 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 (15 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 (15 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 (15 years, 9 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 (15 years, 9 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 (15 years, 9 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>

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>