CVS log for src/sys/kern/sys_mqueue.c
Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.48.26.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:42 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +7 -7
lines
Sync with HEAD
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Jul 1 01:35:53 2024 UTC (2 years, 4 months ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
HEAD
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +7 -7
lines
Add linux POSIX message queue support (Ricardo Branco)
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat May 23 23:42:43 2020 UTC (6 years, 5 months ago) by ad
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
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,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
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
Branch point for: perseant-exfatfs
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat May 16 18:31:50 2020 UTC (6 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +7 -7
lines
Add ACL support for FFS. From FreeBSD.
Revision 1.40.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:04 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.40.4.2: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.2: +3 -0
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:52 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.4.1: +12 -28
lines
Merge changes from current as of 20200406
Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:10 2020 UTC (6 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +12 -28
lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 15 20:51:03 2019 UTC (7 years, 2 months ago) by christos
Branches: 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
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -2
lines
Prevent O_EXEC for mq_open(2), and O_EXEC with a writable fd for open(2).
Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:03 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +14 -17
lines
Sync with HEAD
Revision 1.36.10.1: download - view: text, markup, annotated - select for diffs
Tue Apr 16 03:53:46 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: netbsd-7-1
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 16 03:53:25 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: netbsd-7-0
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 16 03:52:34 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: netbsd-7
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 16 03:47:14 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 16 01:02:41 2019 UTC (7 years, 7 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
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
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -2
lines
mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.
Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:42 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.1: +10 -15
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Aug 19 15:10:23 2018 UTC (8 years, 2 months ago) by jakllsch
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -15
lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:08 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4
lines
Sync with HEAD
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jul 4 17:50:18 2018 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-0728
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -1
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 4 17:39:12 2018 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.34.2.2: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.2: +55 -37
lines
update from HEAD
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (8 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -2
lines
add fo_name so we can identify the fileops in a simple way.
Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +51 -34
lines
Sync with HEAD
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jun 29 15:44:45 2015 UTC (11 years, 4 months ago) by christos
Branches: 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
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
CID 1308958: Fix reversed arguments in copyin(9)
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jun 20 14:41:54 2015 UTC (11 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +51 -34
lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 5 09:20:59 2014 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -7
lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.1: +0 -5
lines
Rebase to HEAD as of a few days ago.
Revision 1.33.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.33.4.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.4.1: +6 -9
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +2 -7
lines
sync with head
Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:11 2014 UTC (12 years, 8 months ago) by pooka
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -7
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:58 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -4
lines
resync from head
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Mar 29 01:08:17 2013 UTC (13 years, 7 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:29 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +30 -4
lines
sync with head
Revision 1.33.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:39 2012 UTC (14 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +30 -4
lines
sync to latest -current.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:40:53 2012 UTC (14 years, 8 months ago) by elad
Branches: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +30 -4
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:36 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +234 -262
lines
Sync with HEAD.
Revision 1.29.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:02 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.1: +228 -256
lines
sync with head
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Apr 25 11:39:42 2011 UTC (15 years, 6 months ago) by martin
Branches: 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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
Add missing <sys/atomic.h> include.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Apr 24 20:17:53 2011 UTC (15 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +229 -258
lines
- Move some checks into mqueue_get() and avoid some duplication.
- Simplify message queue descriptor unlinking and closure operations.
- Update proc_t::p_mqueue_cnt atomically. Inherit it on fork().
- Use separate allocation for the name of message queue.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:22 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +32 -17
lines
sync with head
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jan 18 20:32:53 2011 UTC (15 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -6
lines
mq_poll_fop: return only those events which are polled.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:31 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +28 -13
lines
Sync with HEAD.
Revision 1.10.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:42 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.2.5: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.5: +28 -13
lines
sync with head.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Jul 28 20:49:12 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +28 -13
lines
Get rid of SYSCTL_SETUP.
We want the sysctl variables also when mqueue(3) is loaded as a module.
Revision 1.12.4.1.2.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:18 2010 UTC (16 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.12.4.1.2.3: preferred, colored; next MAIN 1.12.4.1.2.4: preferred, colored
Changes since revision 1.12.4.1.2.3: +75 -47
lines
sync to netbsd-5
Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:19 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.4: +59 -61
lines
sync with head
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:05 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567
Revision 1.12.4.1.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 18 05:27:56 2009 UTC (16 years, 11 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to: previous 1.12.4.1.2.3: preferred, colored; branchpoint 1.12.4.1: preferred, colored; next MAIN 1.12.4.2: preferred, colored
Changes since revision 1.12.4.1.2.3: +17 -4
lines
Pull up following revision(s) (requested by tron in ticket #1188):
sys/kern/sys_mqueue.c: revision 1.28 via patch
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
on delivery -- add a boundary check
-a user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel
memory by mq_send(2) -- add a sysctl'able limit which defaults
to 16*mq_def_maxmsg
(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)
Revision 1.12.4.6: download - view: text, markup, annotated - select for diffs
Thu Dec 10 23:08:43 2009 UTC (16 years, 11 months ago) by snj
Branches: 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
Diff to: previous 1.12.4.5: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.4.5: +29 -12
lines
Pull up following revision(s) (requested by drochner in ticket #1188):
sys/kern/sys_mqueue.c: revision 1.28 via patch
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
on delivery -- add a boundary check
-mq_receive(2) from an empty queue crashed the kernel by NULL dereference
in timeout calculation -- handle the NULL case
-likewise for mq_send(2) to a full queue
-a user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel
memory by mq_send(2) -- add a sysctl'able limit which defaults
to 16*mq_def_maxmsg
(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Dec 10 12:22:48 2009 UTC (16 years, 11 months ago) by drochner
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +29 -12
lines
fix some security critical bugs:
-an invalid signal number passed to mq_notify(2) could crash the kernel
on delivery -- add a boundary check
-mq_receive(2) from an empty queue crashed the kernel by NULL dereference
in timeout calculation -- handle the NULL case
-likewise for mq_send(2) to a full queue
-a user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel
memory by mq_send(2) -- add a sysctl'able limit which defaults
to 16*mq_def_maxmsg
(mq_notify(2) should get some more checks, and SIGEV_* values other
than SIGEV_SIGNAL should be handled somehow, but this doesn't look
security critical)
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Dec 9 21:32:59 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Nov 1 21:46:09 2009 UTC (17 years ago) by rmind
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -27
lines
- Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export. Use it in lwp_park().
Revision 1.12.4.5: download - view: text, markup, annotated - select for diffs
Fri Oct 16 06:37:51 2009 UTC (17 years, 1 month ago) by snj
Branches: netbsd-5
Diff to: previous 1.12.4.4: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.4: +52 -41
lines
Pull up following revision(s) (requested by rmind in ticket #1071):
sys/kern/sys_mqueue.c: revision 1.25 via patch
sys/sys/mqueue.h: revision 1.11 via patch
mq_timedsend/mq_timedreceive: timeout value is absolute, not relative.
While here, drop unecessary (since fdesc API changes) lwp_t arguments.
Bug reported by Stathis Kamperis, thanks!
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Oct 5 23:49:46 2009 UTC (17 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +48 -42
lines
mq_timedsend/mq_timedreceive: timeout value is absolute, not relative.
While here, drop unecessary (since fdesc API changes) lwp_t arguments.
Bug reported by Stathis Kamperis, thanks!
Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:17 2009 UTC (17 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +114 -30
lines
sync with head.
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:35 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +257 -113
lines
Sync with HEAD.
Revision 1.12.4.4: download - view: text, markup, annotated - select for diffs
Tue Jul 21 00:23:01 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.12.4.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.3: +12 -3
lines
Pull up following revision(s) (requested by rmind in ticket #857):
sys/kern/sys_mqueue.c: revision 1.21 via patch
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.
From Stathis Kamperis, thanks!
Revision 1.12.4.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 21 00:21:21 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-1-RELEASE,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.12.4.1.2.2: preferred, colored; branchpoint 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1.2.2: +12 -3
lines
Pull up following revision(s) (requested by rmind in ticket #857):
sys/kern/sys_mqueue.c: revision 1.21 via patch
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.
From Stathis Kamperis, thanks!
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jul 19 02:50:44 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
jymxensuspend-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +80 -5
lines
Make POSIX message queues a kernel module.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jul 19 02:26:49 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +36 -27
lines
Fix previous, so that it actually works, correctly.
Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:23 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +128 -57
lines
sync with head.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 13 02:37:12 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base6
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +102 -51
lines
- Make insertion to message queue O(1) by using bitmap and array. However,
mq_prio_max is dynamic, and sorted list is used for custom setup, when
user manually sets higher priority range.
- Cache mq->mq_attrib in some places. Change msg_ptr type to uint8_t.
- Update copyright, misc.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jul 13 00:41:08 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +14 -6
lines
mq_send/mq_receive: while permission may allow that, return EBADF if sending
to read-only queue, or receiving from write-only queue.
From Stathis Kamperis, thanks!
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jul 3 21:32:09 2009 UTC (17 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +14 -4
lines
Message queues also use genfs_can_access() to control access. Since the
latter might lose its KAUTH_GENERIC_ISSUSER check soon, add an internal
function, mqueue_access(), and call genfs_can_access() from it instead
so we don't pollute the main code path once we need to add a special
kauth(9) check for message queues.
No functional change, error codes preserved.
Related mailing list thread:
http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jun 23 19:36:38 2009 UTC (17 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -4
lines
Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.
Adjust file-system code to use it.
Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).
No objections on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:31 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +46 -57
lines
sync with head
Revision 1.12.4.1.2.2: download - view: text, markup, annotated - select for diffs
Wed May 27 21:33:50 2009 UTC (17 years, 5 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.12.4.1.2.1: preferred, colored; branchpoint 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1.2.1: +46 -54
lines
Pull up following revision(s) (requested by rmind in ticket #779):
sys/kern/sys_mqueue.c: revision 1.18
- Slightly rework the way permissions are checked. Neither mq_receive() not
mq_send() should fail due to permissions. Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
mq_unlink(), clean up.
Revision 1.12.4.3: download - view: text, markup, annotated - select for diffs
Wed May 27 21:32:05 2009 UTC (17 years, 5 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.12.4.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.2: +46 -54
lines
Pull up following revision(s) (requested by rmind in ticket #779):
sys/kern/sys_mqueue.c: revision 1.18
- Slightly rework the way permissions are checked. Neither mq_receive() not
mq_send() should fail due to permissions. Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
mq_unlink(), clean up.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 26 00:39:14 2009 UTC (17 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base5
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +46 -54
lines
- Slightly rework the way permissions are checked. Neither mq_receive() not
mq_send() should fail due to permissions. Noted by Stathis Kamperis!
- Check for empty message queue name (POSIX does not allow this for regular
files, and it's weird), check for DTYPE_MQUEUE, fix permission check in
mq_unlink(), clean up.
Revision 1.12.4.1.2.1: download - view: text, markup, annotated - select for diffs
Mon May 18 19:50:13 2009 UTC (17 years, 6 months ago) by bouyer
Branches: netbsd-5-0
Diff to: previous 1.12.4.1: preferred, colored
Changes since revision 1.12.4.1: +2 -5
lines
Pull up following revision(s) (requested by rmind in ticket #762):
sys/kern/sys_mqueue.c: revision 1.17
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.
Revision 1.12.4.2: download - view: text, markup, annotated - select for diffs
Mon May 18 19:47:32 2009 UTC (17 years, 6 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.12.4.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.1: +2 -5
lines
Pull up following revision(s) (requested by rmind in ticket #762):
sys/kern/sys_mqueue.c: revision 1.17
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat May 16 23:58:09 2009 UTC (17 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -5
lines
sys_mq_open: remove broken access flag check.
Noted by Stathis Kamperis.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:57 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +38 -4
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +98 -43
lines
sync with head.
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:00 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +38 -4
lines
Sync with HEAD.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 11 23:05:26 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -4
lines
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Apr 11 15:47:33 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +26 -3
lines
Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.
Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:36:27 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4
Branch point for: netbsd-5-0
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +11 -4
lines
Pull up following revision(s) (requested by ad in ticket #661):
sys/arch/xen/xen/xenevt.c: revision 1.32
sys/compat/svr4/svr4_net.c: revision 1.56
sys/compat/svr4_32/svr4_32_net.c: revision 1.19
sys/dev/dmover/dmover_io.c: revision 1.32
sys/dev/putter/putter.c: revision 1.21
sys/kern/kern_descrip.c: revision 1.190
sys/kern/kern_drvctl.c: revision 1.23
sys/kern/kern_event.c: revision 1.64
sys/kern/sys_mqueue.c: revision 1.14
sys/kern/sys_pipe.c: revision 1.109
sys/kern/sys_socket.c: revision 1.59
sys/kern/uipc_syscalls.c: revision 1.136
sys/kern/vfs_vnops.c: revision 1.164
sys/kern/uipc_socket.c: revision 1.188
sys/net/bpf.c: revision 1.144
sys/net/if_tap.c: revision 1.55
sys/opencrypto/cryptodev.c: revision 1.47
sys/sys/file.h: revision 1.67
sys/sys/param.h: patch
sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Apr 4 10:12:51 2009 UTC (17 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -4
lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:39 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +23 -18
lines
Sync with HEAD.
Revision 1.6.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:20 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.6.4: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.6.4: +21 -16
lines
Sync with HEAD.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:52 2009 UTC (17 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +23 -18
lines
merge christos-time_t
Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:27 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +43 -27
lines
Sync with head.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:28 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +41 -27
lines
Sync with HEAD.
Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:34:14 2008 UTC (18 years, 1 month ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.1: +41 -27
lines
Sync with HEAD.
Revision 1.6.6.4: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:32 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.6.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.3: +39 -25
lines
Sync with HEAD.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 29 10:27:53 2008 UTC (18 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
christos-time_t-nbase,
christos-time_t-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +41 -27
lines
- Fix message queue permissions problems.
- Rake into account umask when creating mqueue.
- Restore DDB command, which was accidentally lost (hi martin).
- Misc.
Revision 1.6.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:53 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.6.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.2: +5 -3
lines
Sync with HEAD.
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:43 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:12 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +7 -5
lines
Sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jul 2 20:06:09 2008 UTC (18 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5
lines
mq_open: fix confusion of FREAD/FWRITE and VREAD/VWRITE.
Revision 1.6.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.6.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.1: +2 -2
lines
Sync with HEAD.
Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:10 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +4 -4
lines
sync with head.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:30 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4
lines
Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:
- Inspecting process state requires thread context, so signals can no longer
be sent from a hardware interrupt handler. Signal activity must be
deferred to a soft interrupt or kthread.
- As the proc state locking is simplified, it's now safe to take exit()
and wait() out from under kernel_lock.
- The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:04 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +106 -64
lines
Sync with HEAD.
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:01 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +23 -18
lines
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 27 18:30:15 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42,
christos-time_t
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
Replace use of CACHE_LINE_SIZE in some obvious places.
Revision 1.3.4.6: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:02 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.5: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.5: +106 -64
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:44:15 2008 UTC (18 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +82 -34
lines
- Support for select/poll.
- Convert pool to pool-cache.
- Wrap long lines, adjust the license.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +26 -32
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:23 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +31 -31
lines
sync with head
Revision 1.3.8.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:21 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.3.8.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.8.2: +34 -33
lines
sync with HEAD
Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:56:13 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +31 -31
lines
Sync with HEAD
Revision 1.3.6.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:46:10 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.3.6.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.2: +31 -31
lines
Sync with HEAD.
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:14 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +31 -31
lines
Sync with head.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:03:10 2007 UTC (18 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +31 -31
lines
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:39 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.6.1: +3 -2
lines
Sync with HEAD.
Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:33:11 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +3 -2
lines
sync with head
Revision 1.2.4.5: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:58 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.2.4.4: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.4: +3 -2
lines
Sync with HEAD.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 28 19:30:56 2007 UTC (18 years, 11 months ago) by rmind
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: vmlocking2,
bouyer-xeni386
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2
lines
Unify the license: All rights reserved.
No functional change.
Revision 1.3.6.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:53 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
Sync with HEAD.
Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:51 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +4 -4
lines
sync with head.
Revision 1.2.4.4: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:45 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.2.4.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.3: +4 -4
lines
Sync with HEAD.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:26 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +4 -4
lines
Sync with HEAD
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Nov 11 23:22:24 2007 UTC (19 years ago) by matt
Branches: MAIN
CVS tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER). Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto. Init some static/global
cpu_simple_locks at compile time.
Revision 1.3.8.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:32:30 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.3.8.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.8.1: +966 -0
lines
sync with HEAD
Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:35 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +966 -0
lines
sync with head.
Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:42 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.2: +3 -4
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:47 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +3 -4
lines
sync with head.
Revision 1.2.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 12 17:03:20 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.2.6.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.6.2: +3 -4
lines
Sync with head.
Revision 1.3.8.1
Tue Oct 9 18:27:00 2007 UTC (19 years, 1 month ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.3: +0 -966
lines
file sys_mqueue.c was added on branch matt-armv6 on 2007-11-06 23:32:30 +0000
Revision 1.3.4.1
Tue Oct 9 18:27:00 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.3: +0 -966
lines
file sys_mqueue.c was added on branch yamt-lazymbuf on 2007-10-27 11:35:35 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 18:27:00 2007 UTC (19 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base
Branch point for: yamt-lazymbuf,
mjf-devfs,
matt-armv6,
bouyer-xenamd64
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -4
lines
mq_receive1: Handle the possible dereference, when cv_timedwait_sig() awakes
normally (without the error) and MQ_UNLINK is set.
From CID: 4565.
Revision 1.2.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:30 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.2.6.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.1: +967 -0
lines
Sync with head.
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:04 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +967 -0
lines
Sync with HEAD.
Revision 1.2.6.1
Fri Sep 21 01:40:10 2007 UTC (19 years, 2 months ago) by ad
Branches: vmlocking
FILE REMOVED
Changes since revision 1.2: +0 -967
lines
file sys_mqueue.c was added on branch vmlocking on 2007-10-09 13:44:30 +0000
Revision 1.2.4.1
Fri Sep 21 01:40:10 2007 UTC (19 years, 2 months ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.2: +0 -967
lines
file sys_mqueue.c was added on branch jmcneill-pm on 2007-10-02 18:29:04 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Sep 21 01:40:10 2007 UTC (19 years, 2 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base2,
yamt-x86pmap-base
Branch point for: yamt-x86pmap,
vmlocking,
jmcneill-pm
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -7
lines
- mq_receive1, mq_send1: deal with spurious wakeup. XXX should adjust the
timeout but this is a wider problem.
- MQ_SEND is unused, remove it.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:56:02 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +970 -0
lines
Sync with HEAD.
Revision 1.1.2.1
Fri Sep 7 18:56:09 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
FILE REMOVED
Changes since revision 1.1: +0 -970
lines
file sys_mqueue.c was added on branch nick-csl-alignment on 2007-09-10 10:56:02 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 18:56:09 2007 UTC (19 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: nick-csl-alignment-base5
Branch point for: nick-csl-alignment
Implementation of POSIX message queues.
Reviewed by: <ad>, <tech-kern>
CVSweb <webmaster@jp.NetBSD.org>