The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55.4.3 / (download) - annotate - [select for diffs], Wed Aug 17 16:43:01 2022 UTC (19 months, 1 week ago) by martin
Branch: netbsd-9
Changes since 1.55.4.2: +7 -8 lines
Diff to previous 1.55.4.2 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.15.4.1 (colored)

Pull up following revision(s) (requested by chs in ticket #1501):

	sys/kern/uipc_sem.c: revision 1.60

when updating the per-uid "semcnt", decrement the counter for the uid
that created the ksem, not the uid of the process freeing the ksem.
fixes PR 55509.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:04 2021 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.59: +7 -8 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.15.4.1 (colored)

Sync w/ HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Dec 14 23:12:12 2020 UTC (3 years, 3 months ago) by chs
Branch: 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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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, HEAD
Changes since 1.59: +7 -8 lines
Diff to previous 1.59 (colored) to selected 1.15.4.1 (colored)

when updating the per-uid "semcnt", decrement the counter for the uid
that created the ksem, not the uid of the process freeing the ksem.
fixes PR 55509.

Reported-by: syzbot+9d04b3ef2ca180ef9b06@syzkaller.appspotmail.com

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Tue May 5 20:12:37 2020 UTC (3 years, 10 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.55.4.1: +6 -3 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) to selected 1.15.4.1 (colored)

Pull up following revision(s) (requested by maya in ticket #888):

	sys/kern/uipc_sem.c: revision 1.59

Release the collision if we find one.

Candidate fix for:
panic: lock error: Mutex: mutex_vector_enter,542: locking against myself: lock 0xffff8f611abd37e0 cpu 8 lwp 0xffff8f60a3c6a040
cpu8: Begin traceback...
vpanic() at netbsd:vpanic+0x178
snprintf() at netbsd:snprintf
lockdebug_abort() at netbsd:lockdebug_abort+0xe6
mutex_vector_enter() at netbsd:mutex_vector_enter+0x3c1
ksem_close_fop() at netbsd:ksem_close_fop+0x17
closef() at netbsd:closef+0x69
fd_free() at netbsd:fd_free+0x101
exit1() at netbsd:exit1+0x118
sys_exit() at netbsd:sys_exit+0x3d
syscall() at netbsd:syscall+0x299

Would be nice to have an automatic test for this.  Since semids are
only 24 bits, we only need to create a few thousand of them to have a
high probability of collision.  Maybe we should bump default semmax
while here...

Revision 1.59 / (download) - annotate - [select for diffs], Mon May 4 13:58:48 2020 UTC (3 years, 10 months ago) by riastradh
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.58: +6 -3 lines
Diff to previous 1.58 (colored) to selected 1.15.4.1 (colored)

Release the collision if we find one.

Candidate fix for:

panic: lock error: Mutex: mutex_vector_enter,542: locking against myself: lock 0xffff8f611abd37e0 cpu 8 lwp 0xffff8f60a3c6a040
cpu8: Begin traceback...
vpanic() at netbsd:vpanic+0x178
snprintf() at netbsd:snprintf
lockdebug_abort() at netbsd:lockdebug_abort+0xe6
mutex_vector_enter() at netbsd:mutex_vector_enter+0x3c1
ksem_close_fop() at netbsd:ksem_close_fop+0x17
closef() at netbsd:closef+0x69
fd_free() at netbsd:fd_free+0x101
exit1() at netbsd:exit1+0x118
sys_exit() at netbsd:sys_exit+0x3d
syscall() at netbsd:syscall+0x299

Would be nice to have an automatic test for this.  Since semids are
only 24 bits, we only need to create a few thousand of them to have a
high probability of collision.  Maybe we should bump default semmax
while here...

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.51.2.1: +9 -18 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.15.4.1 (colored)

Merge changes from current as of 20200406

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Dec 18 20:20:17 2019 UTC (4 years, 3 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.55: +3 -11 lines
Diff to previous 1.55 (colored) to selected 1.15.4.1 (colored)

Pull up following revision(s) (requested by joerg in ticket #572):

	sys/kern/uipc_sem.c: revision 1.56
	lib/libc/gen/sysconf.c: revision 1.43

PR 54619: Remove semaphore limit introduce as part of GSoC 2016 with
_SC_SEM_NSEMS_MAX. Report no limit for getconf(3). The ressource is
naturally limited by the backing file descriptor, so no separate limit
is necessary. Keep the accounting for debugging as it is part of the
sysctl ABI exposed by the kernel.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Dec 17 18:16:05 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.57: +7 -7 lines
Diff to previous 1.57 (colored) to selected 1.15.4.1 (colored)

ksem_sysinit(): more lossage.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 17 18:10:36 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.56: +3 -4 lines
Diff to previous 1.56 (colored) to selected 1.15.4.1 (colored)

Set ksem_max before installing the syscall package.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 15 20:25:25 2019 UTC (4 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.55: +3 -11 lines
Diff to previous 1.55 (colored) to selected 1.15.4.1 (colored)

PR 54619: Remove semaphore limit introduce as part of GSoC 2016 with
_SC_SEM_NSEMS_MAX. Report no limit for getconf(3). The ressource is
naturally limited by the backing file descriptor, so no separate limit
is necessary. Keep the accounting for debugging as it is part of the
sysctl ABI exposed by the kernel.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:04 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.51: +275 -56 lines
Diff to previous 1.51 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Fri Mar 1 03:03:19 2019 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.54: +8 -5 lines
Diff to previous 1.54 (colored) to selected 1.15.4.1 (colored)

PR/53998: Joel Bertrand:  Limit the number of semaphores on a
per-user basis not a per-process.  We cannot really keep track on
a per-process basis because a parent process can create the semaphore
and a child can free it taking credit for it.  There is also a
similar issue about resource exhaustion if we limited the number
of lwps per process as opposed to per user (which we don't).

Revision 1.54 / (download) - annotate - [select for diffs], Thu Feb 21 21:49:23 2019 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.15.4.1 (colored)

PR/53998: Joel Bertrand: Return ENOSPC when SEM_NSEMS_MAX is exceeded
instead of -1.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Feb 5 07:14:32 2019 UTC (5 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.52: +12 -6 lines
Diff to previous 1.52 (colored) to selected 1.15.4.1 (colored)

In ksem_close_fop(), if we get a pshared semaphore that's not already
been marked dead, make sure we mark it so if the owner proc is the proc
closing it.  (This case can happen if a process sem_init()'s a pshared
semaphore and then exits without destroying it.)

Fixes kern/53942.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 3 03:20:23 2019 UTC (5 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.51: +263 -53 lines
Diff to previous 1.51 (colored) to selected 1.15.4.1 (colored)

Implement support for "pshared" POSIX semaphores.

Fixes lib/53273 (and Firefox's multi-process tab feature).

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:15 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.48: +33 -7 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Sun May 6 00:46:09 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.50: +32 -17 lines
Diff to previous 1.50 (colored) to selected 1.15.4.1 (colored)

don't use pathbuf here; it is intertwined with vfs and gives rump heartburn.

Revision 1.50 / (download) - annotate - [select for diffs], Sat May 5 22:14:45 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.49: +17 -6 lines
Diff to previous 1.49 (colored) to selected 1.15.4.1 (colored)

don't use stack for name (requested by joerg)

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 4 19:56:58 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.15.4.1 (colored)

bump the pathname size to NAME_MAX as POSIX wants.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.38.2.2: +50 -10 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.15.4.1 (colored)

update from HEAD

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

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

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:26 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.42.2.3: +6 -4 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:17 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.46: +6 -4 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 31 15:08:45 2016 UTC (7 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.46: +6 -4 lines
Diff to previous 1.46 (colored) to selected 1.15.4.1 (colored)

Memory leak, found by Mootja. By the way, we probably shouldn't be
returning -1 here.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:20 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.42.2.2: +9 -2 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jun 10 23:24:33 2016 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.45: +9 -2 lines
Diff to previous 1.45 (colored) to selected 1.15.4.1 (colored)

GSoC 2016: Charles Cui: add SEM_NSEMS_MAX

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Sun May 29 08:44:37 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.42.2.1: +3 -3 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Sun Apr 24 19:48:29 2016 UTC (7 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.15.4.1 (colored)

Define SEM_VALUE_MAX in only one place.

Adding a whole extra header file just for this is not the optimal
solution... but stuffing it in with anything else exposes things that
otherwise wouldn't be.

Nothing in userland should use <sys/semaphore.h> directly, and if some
foolish third-party software should decide to do so anyway in spite of
the instructions to the contrary I will ruthlessly break it later when
the big kernel includes cleanup finally happens.

Reported by Kamil Rytarowski, and, as it turns out, also by Klaus
Heinz in 2008.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.42: +32 -2 lines
Diff to previous 1.42 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 9 01:55:03 2015 UTC (8 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.15.4.1 (colored)

Mark kern.posix.semcnt as READONLY - we don't want users changing the
internal value!

Revision 1.43 / (download) - annotate - [select for diffs], Mon Nov 9 01:21:18 2015 UTC (8 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.42: +32 -2 lines
Diff to previous 1.42 (colored) to selected 1.15.4.1 (colored)

Whether or not the semaphore code is loaded as a module or built-in, its
sysctl data belongs with the module code.  Move it from kern/init_sysctl.c
to kern/uipc_sem.c

While here, add a new sysctl variable kern.posix.semcnt (current count of
semaphores) to complement the existing kern.posix.semmax (maximum number
of semaphores).

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

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

Revision 1.41 / (download) - annotate - [select for diffs], Fri Sep 5 05:57:21 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored) to selected 1.15.4.1 (colored)

Don't next structure and enum definitions.
Don't use C++ keywords new, try, class, private, etc.

Revision 1.35.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35.4.2: +4 -3 lines
Diff to previous 1.35.4.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.15.4.1 (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.38.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:58 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.38.2.1: +4 -3 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) to selected 1.15.4.1 (colored)

resync from head

Revision 1.40 / (download) - annotate - [select for diffs], Fri Mar 29 01:08:17 2013 UTC (11 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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-1, 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, netbsd-7-0, netbsd-7, khorben-n900
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored) to selected 1.15.4.1 (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.38.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:55 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.38: +54 -19 lines
Diff to previous 1.38 (colored) to selected 1.15.4.1 (colored)

resync with head

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:44 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.35.4.1: +54 -19 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) to selected 1.15.4.1 (colored)

sync with (a bit old) head

Revision 1.39 / (download) - annotate - [select for diffs], Sun Nov 25 01:05:04 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, agc-symver-base, agc-symver
Changes since 1.38: +54 -19 lines
Diff to previous 1.38 (colored) to selected 1.15.4.1 (colored)

expose ksem_t for fstat(8), and implement stat for future reference.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:30 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35: +76 -19 lines
Diff to previous 1.35 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.35.8.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:40 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.35.8.1: +32 -7 lines
Diff to previous 1.35.8.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.15.4.1 (colored)

sync to latest -current.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:55 2012 UTC (12 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.37: +34 -9 lines
Diff to previous 1.37 (colored) to selected 1.15.4.1 (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.35.8.1 / (download) - annotate - [select for diffs], Sun Mar 11 01:52:30 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.35: +44 -12 lines
Diff to previous 1.35 (colored) to selected 1.15.4.1 (colored)

sync to latest -current

Revision 1.37 / (download) - annotate - [select for diffs], Fri Mar 9 21:03:46 2012 UTC (12 years ago) by joerg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7
Changes since 1.36: +5 -6 lines
Diff to previous 1.36 (colored) to selected 1.15.4.1 (colored)

sem_open and friends should return EINVAL if the semaphore is not valid.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 8 21:59:30 2012 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.35: +41 -8 lines
Diff to previous 1.35 (colored) to selected 1.15.4.1 (colored)

Implement sem_timedwait.

Revision 1.29.10.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:39 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.29: +424 -598 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:10 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29: +424 -598 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 17 20:37:43 2011 UTC (12 years, 11 months ago) by rmind
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-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.34: +2 -3 lines
Diff to previous 1.34 (colored) to selected 1.15.4.1 (colored)

ksem_free: remove wrong assert.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Apr 16 20:39:18 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.33: +18 -5 lines
Diff to previous 1.33 (colored) to selected 1.15.4.1 (colored)

- Add nsems_total and track the use of all semaphores (not only named ones).
  Prevents ksem module from unloading while anonymous semaphore(s) are in use.
- ksem_free: add few asserts.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 15 00:01:48 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.32: +8 -5 lines
Diff to previous 1.32 (colored) to selected 1.15.4.1 (colored)

sys__ksem_close: use fd_close().

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 14 00:32:23 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.31: +5 -7 lines
Diff to previous 1.31 (colored) to selected 1.15.4.1 (colored)

Minor comment fix.  Use fd_close() in sys__ksem_destroy(), it is cleaner.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Apr 12 20:37:25 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.30: +6 -5 lines
Diff to previous 1.30 (colored) to selected 1.15.4.1 (colored)

do_ksem_open: do not leak the file descriptor on error path.
sys__ksem_unlink: fix comment, release one lock ealier.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 11 22:31:43 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.29: +412 -600 lines
Diff to previous 1.29 (colored) to selected 1.15.4.1 (colored)

Highly rewrite POSIX semaphore.  Use file descriptor subsystem, greatly
simplify reference counting, and fix various bugs which existed before,
e.g. some incorrect locking or sem_unlink() not checking for permissions.

Revision 1.24.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:49 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24.10.1: +91 -66 lines
Diff to previous 1.24.10.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:40 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.26: +91 -67 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.24.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.24.6.1: +89 -64 lines
Diff to previous 1.24.6.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.25: +91 -66 lines
Diff to previous 1.25 (colored) next main 1.26 (colored) to selected 1.15.4.1 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 14 15:49:21 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, haad-nbase2, haad-dm-base2, haad-dm-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.28: +20 -20 lines
Diff to previous 1.28 (colored) to selected 1.15.4.1 (colored)

Replace semid_t with intptr_t. No function change. This is a libc/kernel
private interface and so the name change should not affect any third
party code.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 14 13:35:25 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) to selected 1.15.4.1 (colored)

Update a couple of comments.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Nov 12 14:32:34 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.26: +70 -46 lines
Diff to previous 1.26 (colored) to selected 1.15.4.1 (colored)

Allow the POSIX semaphore code to be loaded as a module.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 22 11:17:08 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base, 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, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: nick-hppapmap
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored) to selected 1.15.4.1 (colored)

Set kern.posix_semaphores are runtime so it can be a module.

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:13 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:11 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.24.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:28 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:14 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.25.2.1: +2 -3 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.15.4.1 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:05 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored) to selected 1.15.4.1 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: wrstuden-revivesa, haad-dm
Changes since 1.24: +2 -9 lines
Diff to previous 1.24 (colored) to selected 1.15.4.1 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.21.14.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:48 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.21.14.2: +2 -3 lines
Diff to previous 1.21.14.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.10.4.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:29 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.4.5: +29 -30 lines
Diff to previous 1.10.4.5 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.21.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:28 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.21: +64 -35 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.15.4.1 (colored)

sync with HEAD

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:45 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.22.4.1: +0 -1 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:14 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored) to selected 1.15.4.1 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:20 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.22: +29 -29 lines
Diff to previous 1.22 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.21.14.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:16 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.21.14.1: +29 -29 lines
Diff to previous 1.21.14.1 (colored) to branchpoint 1.21 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.21.16.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:47 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.21.16.1: +29 -29 lines
Diff to previous 1.21.16.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:13 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.22: +29 -29 lines
Diff to previous 1.22 (colored) to selected 1.15.4.1 (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.21.6.1 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:27 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.21: +37 -7 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.21.14.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:42 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.21: +37 -7 lines
Diff to previous 1.21 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.21.16.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:49 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.21: +37 -7 lines
Diff to previous 1.21 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.10.4.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:17 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.4.4: +37 -7 lines
Diff to previous 1.10.4.4 (colored) to branchpoint 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 6 01:27:21 2007 UTC (16 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.21: +37 -7 lines
Diff to previous 1.21 (colored) to selected 1.15.4.1 (colored)

Increase the default limit of SEM_MAX, allow changing of limit
dynamically via sysctl.  Closes PR/36979.

Revision 1.10.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:18 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.4.3: +43 -41 lines
Diff to previous 1.10.4.3 (colored) to branchpoint 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.20.6.3 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:57 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.20.6.2: +7 -6 lines
Diff to previous 1.20.6.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.20.6.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:46 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.20.6.1: +24 -23 lines
Diff to previous 1.20.6.1 (colored) to branchpoint 1.20 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:18 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.20: +43 -41 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 15 18:27:13 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking2-base1, vmlocking-nbase, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.20: +43 -41 lines
Diff to previous 1.20 (colored) to selected 1.15.4.1 (colored)

- ksem_proc_dtor: fix a use-after-free
- LOCK_ASSERT -> KASSERT
- Use kmem(9)

Revision 1.20.6.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:10:22 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.20: +17 -17 lines
Diff to previous 1.20 (colored) to selected 1.15.4.1 (colored)

GC the simplelock/spinlock debugging stuff.

Revision 1.10.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:20 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.4.2: +93 -85 lines
Diff to previous 1.10.4.2 (colored) to branchpoint 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.19: +92 -84 lines
Diff to previous 1.19 (colored) to selected 1.15.4.1 (colored)

Merge newlock2 to head.

Revision 1.15.4.5 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.15.4.4: +2 -3 lines
Diff to previous 1.15.4.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.15.4.1 (colored)

Remove support for SA. Ok core@.

Revision 1.15.4.4 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:07 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.15.4.3: +3 -3 lines
Diff to previous 1.15.4.3 (colored) to branchpoint 1.15 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 4 17:38:26 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.15.4.1 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:07 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.4.1: +59 -38 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.15.4.3 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.15.4.2: +12 -5 lines
Diff to previous 1.15.4.2 (colored) to branchpoint 1.15 (colored) to selected 1.15.4.1 (colored)

Checkpoint work in progress.

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:46 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.15.6.1: +12 -12 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.15.4.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:23 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.15.4.1: +52 -30 lines
Diff to previous 1.15.4.1 (colored) to branchpoint 1.15 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.17: +12 -12 lines
Diff to previous 1.17 (colored) to selected 1.15.4.1 (colored)

remove some __unused from function parameters.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.15: +60 -39 lines
Diff to previous 1.15 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:19 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.16: +12 -12 lines
Diff to previous 1.16 (colored) to selected 1.15.4.1 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 8 04:28:44 2006 UTC (17 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +51 -30 lines
Diff to previous 1.15 (colored) to selected 1.15.4.1 (colored)

Add specificdata support to procs and lwps, each providing their own
wrappers around the speicificdata subroutines.  Also:
- Call the new lwpinit() function from main() after calling procinit().
- Move some pool initialization out of kern_proc.c and into files that
  are directly related to the pools in question (kern_lwp.c and kern_ras.c).
- Convert uipc_sem.c to proc_{get,set}specific(), and eliminate the p_ksems
  member from struct proc.

Revision 1.15.4.1 / (download) - annotate - [selected], Mon Sep 11 00:20:01 2006 UTC (17 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.15: +80 -79 lines
Diff to previous 1.15 (colored)

- Convert some locks to mutexes and RW locks.
- Use the proclist_lock to protect pgrps and sessions in some places.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.12: +87 -28 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.2: +10 -10 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.15.4.1 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.14: +10 -10 lines
Diff to previous 1.14 (colored) to selected 1.15.4.1 (colored)

Use the LWP cached credentials where sane.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:39 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10: +86 -27 lines
Diff to previous 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.12.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:09 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.12.6.1: +13 -11 lines
Diff to previous 1.12.6.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.13: +13 -11 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.15.4.1 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:42 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.1: +815 -0 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) to selected 1.15.4.1 (colored)

sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 14 21:15:12 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.13: +13 -11 lines
Diff to previous 1.13 (colored) to selected 1.15.4.1 (colored)

integrate kauth.

Revision 1.13.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:31 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.13.4.2: +3 -2 lines
Diff to previous 1.13.4.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.15.4.1 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.12: +73 -16 lines
Diff to previous 1.12 (colored) to selected 1.15.4.1 (colored)

Sync with head.

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 13:53:24 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.13.4.1: +3 -3 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored) to selected 1.15.4.1 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:41 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.13: +12 -11 lines
Diff to previous 1.13 (colored) to selected 1.15.4.1 (colored)

Adapt to kernel authorization KPI.

Revision 1.13.2.1, Sun Mar 5 00:49:19 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13: +0 -813 lines
FILE REMOVED

file uipc_sem.c was added on branch yamt-pdpolicy on 2006-05-24 10:58:42 +0000

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 5 00:49:19 2006 UTC (18 years ago) by cube
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.12: +73 -16 lines
Diff to previous 1.12 (colored) to selected 1.15.4.1 (colored)

Change the way semid_t values are chosen.  Instead of using kernel
addresses, use a uint32_t counter and the machinery to properly use it.
That makes the ksem_* system calls friendly for COMPAT_NETBSD32.

OK'd by thorpej@.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored) to selected 1.15.4.1 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.15.4.1 (colored)

merge ktrace-lwp.

Revision 1.9.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.15.4.1 (colored)

sync with -current

Revision 1.9.10.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.15.4.1 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:02 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.5: +5 -5 lines
Diff to previous 1.8.2.5 (colored) next main 1.9 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) to selected 1.15.4.1 (colored)

nuke trailing whitespace

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:17 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.4: +2 -2 lines
Diff to previous 1.8.2.4 (colored) to selected 1.15.4.1 (colored)

Fix the sync with head I botched.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:04 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.3: +2 -2 lines
Diff to previous 1.8.2.3 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Wed Aug 18 10:19:08 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.2: +4 -4 lines
Diff to previous 1.8.2.2 (colored) to selected 1.15.4.1 (colored)

Revert to passing struct proc for {exit,exec}hook.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:57 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.1: +4 -1 lines
Diff to previous 1.8.2.1 (colored) to selected 1.15.4.1 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 14 14:59:03 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored) to selected 1.15.4.1 (colored)

add missing __KERNEL_RCSID()

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:44 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.15.4.1 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:30 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.15.4.1 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:58 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.15.4.1 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 16 14:25:03 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.15.4.1 (colored)

use strlcpy.  [fixed off-by-one in subr_prop.c]

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 23 17:50:51 2003 UTC (20 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) to selected 1.15.4.1 (colored)

Need to include <sys/sa.h> for <sys/syscall.h>

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:44 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored) to selected 1.15.4.1 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 24 01:46:27 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +440 -344 lines
Diff to previous 1.2 (colored) to selected 1.15.4.1 (colored)

Major overhaul of this code, fixing locking protocol issues and handling
of semaphores at fork time.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 20 20:24:22 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.1: +21 -21 lines
Diff to previous 1.1 (colored) to selected 1.15.4.1 (colored)

sys_ksem -> sys__ksem

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 20 20:02:57 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Diff to selected 1.15.4.1 (colored)

add support for p1003.1b semaphores. From FreeBSD

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>