Up to [cvs.netbsd.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.185.2.4 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:04 2012 UTC (3 weeks, 5 days ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.185.2.3: +2 -5
lines
Diff to previous 1.185.2.3 (colored) to branchpoint 1.185 (colored) next main 1.186 (colored)
sync to latest -current.
Revision 1.183.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:22 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.183: +26 -46
lines
Diff to previous 1.183 (colored) next main 1.184 (colored)
sync with head
Revision 1.189 / (download) - annotate - [select for diffs], Sat Apr 7 05:38:49 2012 UTC (7 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
HEAD
Changes since 1.188: +2 -5
lines
Diff to previous 1.188 (colored)
remove bogus check.
Revision 1.185.2.3 / (download) - annotate - [select for diffs], Sun Mar 11 01:52:29 2012 UTC (2 months, 2 weeks ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.185.2.2: +3 -10
lines
Diff to previous 1.185.2.2 (colored) to branchpoint 1.185 (colored)
sync to latest -current
Revision 1.188 / (download) - annotate - [select for diffs], Sat Mar 10 21:51:59 2012 UTC (2 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7
Changes since 1.187: +5 -12
lines
Diff to previous 1.187 (colored)
P1003_1B_SEMAPHORE is no longer optional.
Revision 1.185.2.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:44 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.185.2.1: +4 -18
lines
Diff to previous 1.185.2.1 (colored) to branchpoint 1.185 (colored)
sync to -current.
Revision 1.187 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:49 2012 UTC (3 months ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Changes since 1.186: +4 -18
lines
Diff to previous 1.186 (colored)
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
Revision 1.185.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:26 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.185: +3 -3
lines
Diff to previous 1.185 (colored)
merge to -current.
Revision 1.186 / (download) - annotate - [select for diffs], Sat Dec 17 20:05:39 2011 UTC (5 months, 1 week ago) by tls
Branch: MAIN
CVS Tags: netbsd-6-base,
netbsd-6,
jmcneill-usbmp-base2
Changes since 1.185: +3 -3
lines
Diff to previous 1.185 (colored)
Separate /dev/random pseudodevice implemenation from kernel entropy pool implementation. Rewrite pseudodevice code to use cprng_strong(9). The new pseudodevice is cloning, so each caller gets bits from a stream generated with its own key. Users of /dev/urandom get their generators keyed on a "best effort" basis -- the kernel will rekey generators whenever the entropy pool hits the high water mark -- while users of /dev/random get their generators rekeyed every time key-length bits are output. The underlying cprng_strong API can use AES-256 or AES-128, but we use AES-128 because of concerns about related-key attacks on AES-256. This improves performance (and reduces entropy pool depletion) significantly for users of /dev/urandom but does cause users of /dev/random to rekey twice as often. Also fixes various bugs (including some missing locking and a reseed-counter overflow in the CTR_DRBG code) found while testing this. For long reads, this generator is approximately 20 times as fast as the old generator (dd with bs=64K yields 53MB/sec on 2Ghz Core2 instead of 2.5MB/sec) and also uses a separate mutex per instance so concurrency is greatly improved. For reads of typical key sizes for modern cryptosystems (16-32 bytes) performance is about the same as the old code: a little better for 32 bytes, a little worse for 16 bytes.
Revision 1.185 / (download) - annotate - [select for diffs], Sun Nov 20 01:09:14 2011 UTC (6 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.184: +18 -3
lines
Diff to previous 1.184 (colored)
An undocumented behavior of the sysctl kern.arandom node used to allow sucking up to 8192 bytes out of the kernel arc4random() generator at a time. Supposedly some very old application code uses this to rekey other instances of RC4 in userspace (a truly great idea). Reduce the limit to 256 bytes -- and note that it will probably be reduced to sizeof(int) in the future, since this node is so documented.
Revision 1.184 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:25 2011 UTC (6 months ago) by tls
Branch: MAIN
Changes since 1.183: +5 -16
lines
Diff to previous 1.183 (colored)
First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following: An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time. A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available. The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time. An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm. A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream. An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice. In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve. The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component. The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run. A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl. The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet. Manual pages for the new kernel interfaces are forthcoming.
Revision 1.183 / (download) - annotate - [select for diffs], Tue Aug 30 12:39:59 2011 UTC (8 months, 3 weeks ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.182: +8 -2
lines
Diff to previous 1.182 (colored)
Add getlabelusesmbr(), as proposed in http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html This is used by disk tools such as disklabel(8) to dynamically decide is the undelyling platform uses a disklabel-in-mbr-partition or not (instead of using a compile-time list of ports). getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the machdep #define LABELUSESMBR. For evbmips, make LABELUSESMBR 1 if the platform uses pmon as bootloader, and 0 (the previous value) otherwise.
Revision 1.182 / (download) - annotate - [select for diffs], Sat Jul 23 11:38:28 2011 UTC (10 months ago) by jym
Branch: MAIN
Changes since 1.181: +8 -5
lines
Diff to previous 1.181 (colored)
When KERN_SA is not defined, kern.no_sa_support is a constant (1). So add CTLFLAG_IMMEDIATE to flags. Make the macro block logically reversed so it looks more natural when reading. Reported by Peter Tworek on tech-kern@.
Revision 1.175.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:26 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.175: +14 -1250
lines
Diff to previous 1.175 (colored) next main 1.176 (colored)
Sync with HEAD.
Revision 1.173.2.4 / (download) - annotate - [select for diffs], Tue May 31 03:05:00 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.173.2.3: +3 -3
lines
Diff to previous 1.173.2.3 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored)
sync with head
Revision 1.181 / (download) - annotate - [select for diffs], Tue May 24 16:39:56 2011 UTC (12 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.180: +5 -5
lines
Diff to previous 1.180 (colored)
Add some needed __UNCONST
Revision 1.173.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:07 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.173.2.2: +1 -1
lines
Diff to previous 1.173.2.2 (colored) to branchpoint 1.173 (colored)
sync with head
Revision 1.180 / (download) - annotate - [select for diffs], Sat Apr 2 05:07:57 2011 UTC (13 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.179: +3 -3
lines
Diff to previous 1.179 (colored)
vfs_drainvnodes: drop lwp argument, remove variable name in prototype.
Revision 1.149.4.8 / (download) - annotate - [select for diffs], Mon Mar 7 17:08:28 2011 UTC (14 months, 2 weeks ago) by snj
Branch: netbsd-5
Changes since 1.149.4.7: +7 -2
lines
Diff to previous 1.149.4.7 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored)
Apply patch (requested by joerg in ticket 1575): Sanitize arguments before memory allocation.
Revision 1.149.4.7.2.1 / (download) - annotate - [select for diffs], Mon Mar 7 17:08:18 2011 UTC (14 months, 2 weeks ago) by snj
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE
Changes since 1.149.4.7: +7 -2
lines
Diff to previous 1.149.4.7 (colored) next main 1.149.4.8 (colored)
Apply patch (requested by joerg in ticket 1575): Sanitize arguments before memory allocation.
Revision 1.149.4.4.2.4 / (download) - annotate - [select for diffs], Mon Mar 7 17:07:56 2011 UTC (14 months, 2 weeks ago) by snj
Branch: netbsd-5-0
Changes since 1.149.4.4.2.3: +7 -2
lines
Diff to previous 1.149.4.4.2.3 (colored) to branchpoint 1.149.4.4 (colored) next main 1.149.4.5 (colored)
Apply patch (requested by joerg in ticket 1575): Sanitize arguments before memory allocation.
Revision 1.93.2.1.6.2 / (download) - annotate - [select for diffs], Mon Mar 7 17:07:26 2011 UTC (14 months, 2 weeks ago) by snj
Branch: netbsd-4-0
Changes since 1.93.2.1.6.1: +7 -2
lines
Diff to previous 1.93.2.1.6.1 (colored) to branchpoint 1.93.2.1 (colored) next main 1.93.2.2 (colored)
Apply patch (requested by joerg in ticket 1419): Sanitize arguments before memory allocation.
Revision 1.93.2.3 / (download) - annotate - [select for diffs], Mon Mar 7 17:07:17 2011 UTC (14 months, 2 weeks ago) by snj
Branch: netbsd-4
Changes since 1.93.2.2: +7 -2
lines
Diff to previous 1.93.2.2 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)
Apply patch (requested by joerg in ticket 1419): Sanitize arguments before memory allocation.
Revision 1.173.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:12 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.173.2.1: +10 -1246
lines
Diff to previous 1.173.2.1 (colored) to branchpoint 1.173 (colored)
sync with head
Revision 1.175.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:58 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.175: +10 -1246
lines
Diff to previous 1.175 (colored) next main 1.176 (colored)
Sync with HEAD
Revision 1.179 / (download) - annotate - [select for diffs], Sat Feb 5 01:22:12 2011 UTC (15 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base
Changes since 1.178: +10 -13
lines
Diff to previous 1.178 (colored)
avoid code duplication.
Revision 1.178 / (download) - annotate - [select for diffs], Fri Jan 28 20:31:10 2011 UTC (15 months, 3 weeks ago) by pooka
Branch: MAIN
Changes since 1.177: +2 -6
lines
Diff to previous 1.177 (colored)
migrate compat32 handling with previous pointed out by Lars Heidieker
Revision 1.177 / (download) - annotate - [select for diffs], Fri Jan 28 18:44:44 2011 UTC (15 months, 3 weeks ago) by pooka
Branch: MAIN
Changes since 1.176: +2 -1231
lines
Diff to previous 1.176 (colored)
Move sysctl routines from init_sysctl.c to kern_descrip.c (for descriptors) and kern_proc.c (for processes). This makes them usable in a rump kernel, in case somebody was wondering.
Revision 1.176 / (download) - annotate - [select for diffs], Sat Jan 22 20:54:43 2011 UTC (16 months ago) by christos
Branch: MAIN
Changes since 1.175: +5 -5
lines
Diff to previous 1.175 (colored)
Use the L_ flags instead of the P_ flags for lwps.
Revision 1.172.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:25 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.172.2.1: +4 -2
lines
Diff to previous 1.172.2.1 (colored) to branchpoint 1.172 (colored) next main 1.173 (colored)
Sync with HEAD.
Revision 1.133.2.8 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:38 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.7: +6 -4
lines
Diff to previous 1.133.2.7 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)
sync with head.
Revision 1.173.2.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:52 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.173: +6 -4
lines
Diff to previous 1.173 (colored)
sync with head
Revision 1.175 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:30 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.174: +4 -4
lines
Diff to previous 1.174 (colored)
Remove pfind() and pgfind(), fix locking in various broken uses of these. Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags and have consistent behaviour. Provide proc_find_raw() for special cases. Fix memory leak in sysctl_proc_corename(). COMPAT_LINUX: rework ptrace() locking, minimise differences between different versions per-arch. Note: while this change adds some formal cosmetics for COMPAT_DARWIN and COMPAT_IRIX - locking there is utterly broken (for ages). Fixes PR/43176.
Revision 1.174 / (download) - annotate - [select for diffs], Wed Jun 16 18:49:22 2010 UTC (23 months, 1 week ago) by pooka
Branch: MAIN
Changes since 1.173: +4 -2
lines
Diff to previous 1.173 (colored)
Set kinfo_lwp to 0 before filling it so that if someone removes variable assignments from here, kernel memory does not leak to userspace. Bug found, a little bit suprisingly, by the atf ps test which failed due to the column width between the -o holdcnt column being too wide due to the contents displayed being garbage.
Revision 1.172.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:08 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.172: +3 -2
lines
Diff to previous 1.172 (colored)
Sync with HEAD.
Revision 1.149.4.4.2.3.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:15 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Changes since 1.149.4.4.2.3: +2 -2
lines
Diff to previous 1.149.4.4.2.3 (colored) next main 1.149.4.4.2.4 (colored)
sync to netbsd-5
Revision 1.133.2.7 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:15 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.6: +167 -198
lines
Diff to previous 1.133.2.6 (colored) to branchpoint 1.133 (colored)
sync with head
Revision 1.173 / (download) - annotate - [select for diffs], Sat Feb 13 11:22:21 2010 UTC (2 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.172: +3 -2
lines
Diff to previous 1.172 (colored)
sysctl_doeproc: don't follow a possibly stale pointer.
Revision 1.172 / (download) - annotate - [select for diffs], Wed Jan 13 01:53:38 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.171: +3 -3
lines
Diff to previous 1.171 (colored)
Minimize unnecessary differences in rump.
Revision 1.171 / (download) - annotate - [select for diffs], Thu Dec 24 19:01:12 2009 UTC (2 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.170: +162 -103
lines
Diff to previous 1.170 (colored)
When reporting open files using sysctl, don't use 'filehead' to fetch files, as we don't have a process context to authorize on. Instead, traverse the file descriptor table of each process -- as we already do in one case. Introduce a "marker" we can use to mark files we've seen in an iteration, as the same file can be referenced more than once. Hopefully this availability of filtering by process also makes life easier for those who are interested in implementing process "containers" etc.
Revision 1.170 / (download) - annotate - [select for diffs], Sat Dec 12 17:29:34 2009 UTC (2 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.169: +4 -3
lines
Diff to previous 1.169 (colored)
Report L_INMEM in the lwp info as well.
Revision 1.169 / (download) - annotate - [select for diffs], Sat Dec 12 17:03:19 2009 UTC (2 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.168: +4 -3
lines
Diff to previous 1.168 (colored)
Always set L_INMEM to maintain binary compatibility.
Revision 1.168 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.167: +2 -5
lines
Diff to previous 1.167 (colored)
Remove uarea swap-out functionality: - Addresses the issue described in PR/38828. - Some simplification in threading and sleepq subsystems. - Eliminates pmap_collect() and, as a side note, allows pmap optimisations. - Eliminates XS_CTL_DATA_ONSTACK in scsipi code. - Avoids few scans on LWP list and thus potentially long holds of proc_lock. - Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k. - Removes __SWAP_BROKEN cases. Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on acorn26 (thanks to <bjh21>). Discussed on <tech-kern>, reviewed by <ad>.
Revision 1.167 / (download) - annotate - [select for diffs], Wed Sep 16 15:03:56 2009 UTC (2 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.166: +2 -92
lines
Diff to previous 1.166 (colored)
Chop init_sysctl into base nodes (init_sysctl_base.c) and the kitchen sink (init_sysctl.c). Further surgery may be needed down the line.
Revision 1.133.2.6 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:00 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.5: +8 -2
lines
Diff to previous 1.133.2.5 (colored) to branchpoint 1.133 (colored)
sync with head
Revision 1.166 / (download) - annotate - [select for diffs], Fri Sep 11 18:14:58 2009 UTC (2 years, 8 months ago) by apb
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.165: +8 -2
lines
Diff to previous 1.165 (colored)
Expose the kernel's boothowto(9) variable through the sysctl kern.boothowto variable. Part of the /etc/rc silent changes requested in PR 41946 and proposed in tech-userlevel.
Revision 1.133.2.5 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:15 2009 UTC (2 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.4: +16 -4
lines
Diff to previous 1.133.2.4 (colored) to branchpoint 1.133 (colored)
sync with head.
Revision 1.165 / (download) - annotate - [select for diffs], Sun Aug 16 20:28:19 2009 UTC (2 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.164: +16 -4
lines
Diff to previous 1.164 (colored)
provide compatibility for the older variant of kern.consdev, which used a 32 bit dev_t. Reported by mrg.
Revision 1.155.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:34 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.155.2.1: +45 -78
lines
Diff to previous 1.155.2.1 (colored) to branchpoint 1.155 (colored) next main 1.156 (colored)
Sync with HEAD.
Revision 1.149.4.4.2.3 / (download) - annotate - [select for diffs], Wed Jul 1 22:42:38 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.149.4.4.2.2: +40 -70
lines
Diff to previous 1.149.4.4.2.2 (colored) to branchpoint 1.149.4.4 (colored)
Pull up following revision(s) (requested by rmind in ticket #839):
sys/kern/init_sysctl.c: revision 1.163
sysctl_doeproc:
- simplify.
- KERN_PROC: fix possible stale proc pointer dereference.
- KERN_PROC: don't do copyout with proc_lock held.
Revision 1.149.4.7 / (download) - annotate - [select for diffs], Wed Jul 1 22:42:28 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
matt-nb5-pq3-base,
matt-nb5-pq3
Branch point for: netbsd-5-1
Changes since 1.149.4.6: +40 -70
lines
Diff to previous 1.149.4.6 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by rmind in ticket #839):
sys/kern/init_sysctl.c: revision 1.163
sysctl_doeproc:
- simplify.
- KERN_PROC: fix possible stale proc pointer dereference.
- KERN_PROC: don't do copyout with proc_lock held.
Revision 1.149.4.4.2.2 / (download) - annotate - [select for diffs], Wed Jul 1 22:39:28 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5-0
Changes since 1.149.4.4.2.1: +6 -4
lines
Diff to previous 1.149.4.4.2.1 (colored) to branchpoint 1.149.4.4 (colored)
Pull up following revision(s) (requested by rmind in ticket #838): sys/kern/init_sysctl.c: revision 1.162 sys/kern/vfs_trans.c: revision 1.25 don't forget to skip marker processes.
Revision 1.149.4.6 / (download) - annotate - [select for diffs], Wed Jul 1 22:39:20 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.149.4.5: +6 -4
lines
Diff to previous 1.149.4.5 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by rmind in ticket #838): sys/kern/init_sysctl.c: revision 1.162 sys/kern/vfs_trans.c: revision 1.25 don't forget to skip marker processes.
Revision 1.149.4.4.2.1 / (download) - annotate - [select for diffs], Wed Jul 1 22:27:55 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5-0
Changes since 1.149.4.4: +3 -2
lines
Diff to previous 1.149.4.4 (colored)
Pull up following revision(s) (requested by rmind in ticket #835): sys/kern/init_sysctl.c: revision 1.161 sysctl_doeproc: fix a bug in rev.1.135. don't forget to mark our marker process PK_MARKER. this fixes crashes in sched_pstats, etc.
Revision 1.149.4.5 / (download) - annotate - [select for diffs], Wed Jul 1 22:27:23 2009 UTC (2 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.149.4.4: +3 -2
lines
Diff to previous 1.149.4.4 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by rmind in ticket #835): sys/kern/init_sysctl.c: revision 1.161 sysctl_doeproc: fix a bug in rev.1.135. don't forget to mark our marker process PK_MARKER. this fixes crashes in sched_pstats, etc.
Revision 1.133.2.4 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.3: +45 -78
lines
Diff to previous 1.133.2.3 (colored) to branchpoint 1.133 (colored)
sync with head
Revision 1.164 / (download) - annotate - [select for diffs], Sun May 24 21:41:26 2009 UTC (3 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Changes since 1.163: +7 -10
lines
Diff to previous 1.163 (colored)
More changes to improve kern_descrip.c. - Avoid atomics in more places. - Remove the per-descriptor mutex, and just use filedesc_t::fd_lock. It was only being used to synchronize close, and in any case we needed to take fd_lock to free the descriptor slot. - Optimize certain paths for the <NDFDFILE case. - Sprinkle more comments and assertions. - Cache more stuff in filedesc_t. - Fix numerous minor bugs spotted along the way. - Restructure how the open files array is maintained, for clarity and so that we can eliminate the membar_consumer() call in fd_getfile(). This is mostly syntactic sugar; the main functional change is that fd_nfiles now lives alongside the open file array. Some measurements with libmicro: - simple file syscalls are like close() are between 1 to 10% faster. - some nice improvements, e.g. poll(1000) which is ~50% faster.
Revision 1.163 / (download) - annotate - [select for diffs], Sat May 16 12:02:00 2009 UTC (3 years ago) by yamt
Branch: MAIN
Changes since 1.162: +40 -70
lines
Diff to previous 1.162 (colored)
sysctl_doeproc: - simplify. - KERN_PROC: fix possible stale proc pointer dereference. - KERN_PROC: don't do copyout with proc_lock held.
Revision 1.133.2.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.2: +7 -4
lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored)
sync with head
Revision 1.155.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.155: +24 -15
lines
Diff to previous 1.155 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.162 / (download) - annotate - [select for diffs], Tue May 12 11:42:12 2009 UTC (3 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
jym-xensuspend-base
Changes since 1.161: +6 -4
lines
Diff to previous 1.161 (colored)
don't forget to skip marker processes.
Revision 1.161 / (download) - annotate - [select for diffs], Mon May 4 14:52:33 2009 UTC (3 years ago) by yamt
Branch: MAIN
Changes since 1.160: +3 -2
lines
Diff to previous 1.160 (colored)
sysctl_doeproc: fix a bug in rev.1.135. don't forget to mark our marker process PK_MARKER. this fixes crashes in sched_pstats, etc.
Revision 1.133.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133.2.1: +136 -39
lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored)
sync with head.
Revision 1.149.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:59 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.149.2.2: +18 -13
lines
Diff to previous 1.149.2.2 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored)
Sync with HEAD.
Revision 1.149.4.4 / (download) - annotate - [select for diffs], Wed Apr 1 00:25:22 2009 UTC (3 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4
Branch point for: netbsd-5-0
Changes since 1.149.4.3: +11 -2
lines
Diff to previous 1.149.4.3 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by mrg in ticket #622):
bin/csh/csh.1: revision 1.46
bin/csh/func.c: revision 1.37
bin/ps/print.c: revision 1.111
bin/ps/ps.c: revision 1.74
bin/sh/miscbltin.c: revision 1.38
bin/sh/sh.1: revision 1.92 via patch
external/bsd/top/dist/machine/m_netbsd.c: revision 1.7
lib/libkvm/kvm_proc.c: revision 1.82
sys/arch/mips/mips/cpu_exec.c: revision 1.55
sys/compat/darwin/darwin_exec.c: revision 1.57
sys/compat/ibcs2/ibcs2_exec.c: revision 1.73
sys/compat/irix/irix_resource.c: revision 1.15
sys/compat/linux/arch/amd64/linux_exec_machdep.c: revision 1.16
sys/compat/linux/arch/i386/linux_exec_machdep.c: revision 1.12
sys/compat/linux/common/linux_limit.h: revision 1.5
sys/compat/osf1/osf1_resource.c: revision 1.14
sys/compat/svr4/svr4_resource.c: revision 1.18
sys/compat/svr4_32/svr4_32_resource.c: revision 1.17
sys/kern/exec_subr.c: revision 1.62
sys/kern/init_sysctl.c: revision 1.160
sys/kern/kern_exec.c: revision 1.288
sys/kern/kern_resource.c: revision 1.151
sys/sys/param.h: patch
sys/sys/resource.h: revision 1.31
sys/sys/sysctl.h: revision 1.184
sys/uvm/uvm_extern.h: revision 1.153
sys/uvm/uvm_glue.c: revision 1.136
sys/uvm/uvm_mmap.c: revision 1.128
usr.bin/systat/ps.c: revision 1.32
- - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- - adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- - add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- - patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- - patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- - update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
Revision 1.160 / (download) - annotate - [select for diffs], Sun Mar 29 01:02:50 2009 UTC (3 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Changes since 1.159: +11 -2
lines
Diff to previous 1.159 (colored)
- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
Revision 1.36.2.6.2.1 / (download) - annotate - [select for diffs], Fri Mar 27 10:43:35 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-3-0
Changes since 1.36.2.6: +4 -4
lines
Diff to previous 1.36.2.6 (colored) next main 1.36.2.7 (colored)
Pull up following revision(s) (requested by mrg in ticket #1999): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.36.2.7.2.1 / (download) - annotate - [select for diffs], Fri Mar 27 06:04:21 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-3-1
Changes since 1.36.2.7: +4 -4
lines
Diff to previous 1.36.2.7 (colored) next main 1.36.2.8 (colored)
Pull up following revision(s) (requested by mrg in ticket #1999): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.93.2.1.6.1 / (download) - annotate - [select for diffs], Fri Mar 27 03:43:59 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-4-0
Changes since 1.93.2.1: +4 -4
lines
Diff to previous 1.93.2.1 (colored)
Pull up following revision(s) (requested by mrg in ticket #1287): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.36.2.8 / (download) - annotate - [select for diffs], Fri Mar 20 15:08:55 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-3
Changes since 1.36.2.7: +4 -4
lines
Diff to previous 1.36.2.7 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)
Pull up following revision(s) (requested by mrg in ticket #1999): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.93.2.2 / (download) - annotate - [select for diffs], Fri Mar 20 15:06:17 2009 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-4
Changes since 1.93.2.1: +2 -2
lines
Diff to previous 1.93.2.1 (colored) to branchpoint 1.93 (colored)
Pull up following revision(s) (requested by mrg in ticket #1287): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.149.4.3 / (download) - annotate - [select for diffs], Sun Mar 15 20:23:26 2009 UTC (3 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3
Changes since 1.149.4.2: +3 -3
lines
Diff to previous 1.149.4.2 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by mrg in ticket #566): sys/kern/init_sysctl.c: revision 1.157 sys/kern/kern_descrip.c: revision 1.187 usr.sbin/pstat/pstat.c: revision 1.112 Don't bother with file_t::f_iflags any more, as it's not used. Noted by mrg@.
Revision 1.149.4.2 / (download) - annotate - [select for diffs], Sun Mar 15 20:20:02 2009 UTC (3 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.149.4.1: +4 -4
lines
Diff to previous 1.149.4.1 (colored) to branchpoint 1.149 (colored)
Pull up following revision(s) (requested by mrg in ticket #565): sys/kern/init_sysctl.c: revision 1.158 always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.159 / (download) - annotate - [select for diffs], Wed Mar 11 05:55:22 2009 UTC (3 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.158: +6 -10
lines
Diff to previous 1.158 (colored)
like KERN_FILE2: *do* update "needed" when there is no count. we want userland to know what sort of size to provide.. while here, slightly normalise the previous to init_sysctl.c.
Revision 1.158 / (download) - annotate - [select for diffs], Wed Mar 11 01:30:27 2009 UTC (3 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.157: +4 -4
lines
Diff to previous 1.157 (colored)
always calculate "needed" for KERN_FILE2 calls. this allows a caller to get an estimate of the needed space, like the intention is.
Revision 1.157 / (download) - annotate - [select for diffs], Sun Mar 8 12:52:08 2009 UTC (3 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.156: +3 -3
lines
Diff to previous 1.156 (colored)
Don't bother with file_t::f_iflags any more, as it's not used. Noted by mrg@.
Revision 1.149.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:55 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.149.2.1: +3 -2
lines
Diff to previous 1.149.2.1 (colored) to branchpoint 1.149 (colored)
Sync with HEAD.
Revision 1.156 / (download) - annotate - [select for diffs], Fri Feb 13 22:41:04 2009 UTC (3 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.155: +3 -2
lines
Diff to previous 1.155 (colored)
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" in all kernel sources that use the MODULAR option. Proposed in tech-kern on 18 Jan 2009.
Revision 1.149.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.149: +50 -12
lines
Diff to previous 1.149 (colored)
Sync with HEAD.
Revision 1.122.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.6.4: +103 -21
lines
Diff to previous 1.122.6.4 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)
Sync with HEAD.
Revision 1.155 / (download) - annotate - [select for diffs], Sat Jan 17 09:00:24 2009 UTC (3 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.154: +3 -3
lines
Diff to previous 1.154 (colored)
whitespace nit
Revision 1.154 / (download) - annotate - [select for diffs], Sat Jan 17 07:02:35 2009 UTC (3 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.153: +3 -3
lines
Diff to previous 1.153 (colored)
malloc -> kmem_alloc.
Revision 1.153 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:51 2009 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.152: +19 -4
lines
Diff to previous 1.152 (colored)
merge christos-time_t
Revision 1.125.2.7 / (download) - annotate - [select for diffs], Tue Dec 30 18:50:25 2008 UTC (3 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.6: +6 -8
lines
Diff to previous 1.125.2.6 (colored) next main 1.126 (colored)
sync with head.
Revision 1.152 / (download) - annotate - [select for diffs], Mon Dec 29 17:41:18 2008 UTC (3 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: christos-time_t-nbase,
christos-time_t-base
Changes since 1.151: +6 -8
lines
Diff to previous 1.151 (colored)
Rename specfs_lock as device_lock and move it from specfs to devsw. Relaxes kernel dependency on vfs.
Revision 1.125.2.6 / (download) - annotate - [select for diffs], Mon Dec 29 00:01:28 2008 UTC (3 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.5: +3 -3
lines
Diff to previous 1.125.2.5 (colored)
adjust for tdev.
Revision 1.125.2.5 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:24 2008 UTC (3 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.4: +7 -2
lines
Diff to previous 1.125.2.4 (colored)
merge with head.
Revision 1.143.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.143.2.1: +32 -11
lines
Diff to previous 1.143.2.1 (colored) next main 1.144 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.149.4.1 / (download) - annotate - [select for diffs], Sat Nov 29 20:51:06 2008 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2,
netbsd-5-0-RC1
Changes since 1.149: +7 -2
lines
Diff to previous 1.149 (colored)
Pull up following revision(s) (requested by elad in ticket #140):
sys/kern/init_sysctl.c: revision 1.151
PR/40002: Daniel Horecki: sockstat doesn't work for user with sysctl
security.curtain=1
If the kauth call failed, we'd silently continue the loop, but the error
code would remain and eventually "leak" to userspace. Reset the error to
zero when continuing.
Tested by snj@ and myself. Okay snj@.
Revision 1.151 / (download) - annotate - [select for diffs], Fri Nov 28 18:58:59 2008 UTC (3 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.150: +7 -2
lines
Diff to previous 1.150 (colored)
PR/40002: Daniel Horecki: sockstat doesn't work for user with sysctl
security.curtain=1
If the kauth call failed, we'd silently continue the loop, but the error
code would remain and eventually "leak" to userspace. Reset the error to
zero when continuing.
Tested by snj@ and myself. Okay snj@.
Revision 1.125.2.4 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:38 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.3: +22 -2
lines
Diff to previous 1.125.2.3 (colored)
merge with head.
Revision 1.150 / (download) - annotate - [select for diffs], Wed Nov 12 14:32:34 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.149: +22 -2
lines
Diff to previous 1.149 (colored)
Allow the POSIX semaphore code to be loaded as a module.
Revision 1.125.2.3 / (download) - annotate - [select for diffs], Sat Nov 1 23:22:23 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.2: +3 -3
lines
Diff to previous 1.125.2.2 (colored)
catch up with changes in head.
Revision 1.125.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:26 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.125.2.1: +247 -202
lines
Diff to previous 1.125.2.1 (colored)
Sync with head.
Revision 1.149 / (download) - annotate - [select for diffs], Wed Oct 22 11:25:19 2008 UTC (3 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base,
matt-mips64-base2
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.148: +3 -3
lines
Diff to previous 1.148 (colored)
Set kern.posix_semaphores are runtime so it can be a module. (Picked wrong header the last time.)
Revision 1.148 / (download) - annotate - [select for diffs], Wed Oct 22 11:17:08 2008 UTC (3 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.147: +7 -11
lines
Diff to previous 1.147 (colored)
Set kern.posix_semaphores are runtime so it can be a module.
Revision 1.143.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.143: +53 -4
lines
Diff to previous 1.143 (colored)
Sync with HEAD.
Revision 1.147 / (download) - annotate - [select for diffs], Sun Oct 19 03:10:09 2008 UTC (3 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.146: +9 -5
lines
Diff to previous 1.146 (colored)
rename proc_representative_lwp to proc_active_lwp and clarify it is for ps display purposes. suggested by rmind.
Revision 1.146 / (download) - annotate - [select for diffs], Sun Oct 19 01:43:25 2008 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.145: +33 -4
lines
Diff to previous 1.145 (colored)
Select a "representative" lwp instead of the first lwp in the list. The first lwp in the list is the last created and in the firefox and gtk-gnash case this is usually a zombie, so the status in ps was ZLl. This now picks the lwp in order ONPROC > RUN > SLEEP > STOP > SUSPENDED > IDL > DEAD > ZOMB and breaks ties using cpticks.
Revision 1.145 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:20 2008 UTC (3 years, 7 months ago) by wrstuden
Branch: MAIN
Changes since 1.144: +17 -2
lines
Diff to previous 1.144 (colored)
Merge wrstuden-revivesa into HEAD.
Revision 1.137.2.5 / (download) - annotate - [select for diffs], Tue Oct 14 20:36:21 2008 UTC (3 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.137.2.4: +16 -2
lines
Diff to previous 1.137.2.4 (colored) next main 1.138 (colored)
Adapt kern.no_sa_support so that it changes sa_system_disabled and thus actually controls SA.
Revision 1.122.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:51 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.6.3: +8 -6
lines
Diff to previous 1.122.6.3 (colored) to branchpoint 1.122 (colored)
Sync with HEAD.
Revision 1.137.2.4 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:41 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.137.2.3: +10 -8
lines
Diff to previous 1.137.2.3 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.140.2.3 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:48 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.140.2.2: +3 -2
lines
Diff to previous 1.140.2.2 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored)
Sync with head.
Revision 1.144 / (download) - annotate - [select for diffs], Tue Jul 15 22:25:30 2008 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Changes since 1.143: +3 -2
lines
Diff to previous 1.143 (colored)
make l_flags contain more stuff. Fixes top thread display where system processes were always displayed.
Revision 1.140.2.2 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:11 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.140.2.1: +9 -8
lines
Diff to previous 1.140.2.1 (colored) to branchpoint 1.140 (colored)
Sync with head.
Revision 1.143 / (download) - annotate - [select for diffs], Wed Jul 2 19:49:58 2008 UTC (3 years, 10 months ago) by rmind
Branch: MAIN
Branch point for: haad-dm
Changes since 1.142: +9 -8
lines
Diff to previous 1.142 (colored)
Remove proc_representative_lwp(), use a simple LIST_FIRST() instead. OK by <ad>.
Revision 1.122.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.6.2: +7 -2
lines
Diff to previous 1.122.6.2 (colored) to branchpoint 1.122 (colored)
Sync with HEAD.
Revision 1.137.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.137.2.2: +19 -12
lines
Diff to previous 1.137.2.2 (colored)
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.140.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:34 2008 UTC (3 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.140: +9 -4
lines
Diff to previous 1.140 (colored)
Sync with head.
Revision 1.131.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:02 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.131.2.2: +9 -4
lines
Diff to previous 1.131.2.2 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)
sync with head.
Revision 1.142 / (download) - annotate - [select for diffs], Mon Jun 16 11:26:28 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Changes since 1.141: +8 -3
lines
Diff to previous 1.141 (colored)
PR kern/38927: processes getting stuck in uvm_map (cv_timedwait), hanging machine Assume that a vnode (and associated data structures) costs 2kB in the worst imaginable case. Don't allow sysctl to set desiredvnodes to a value that would use more than 75% of KVA or 75% of physical memory.
Revision 1.141 / (download) - annotate - [select for diffs], Mon Jun 16 09:51:14 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.140: +3 -3
lines
Diff to previous 1.140 (colored)
- PPWAIT is need only be locked by proc_lock, so move it to proc::p_lflag. - Remove a few needless lock acquires from exec/fork/exit. - Sprinkle branch hints. No functional change.
Revision 1.131.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:38 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.131.2.1: +9 -7
lines
Diff to previous 1.131.2.1 (colored) to branchpoint 1.131 (colored)
sync with head
Revision 1.122.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:07 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.6.1: +178 -184
lines
Diff to previous 1.122.6.1 (colored) to branchpoint 1.122 (colored)
Sync with HEAD.
Revision 1.140 / (download) - annotate - [select for diffs], Sat May 31 21:34:42 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.139: +8 -7
lines
Diff to previous 1.139 (colored)
Kill devsw_lock and just use specfs_lock. The two would need merging in order to prevent unload of modules when a device that they provide is still open.
Revision 1.139 / (download) - annotate - [select for diffs], Sun May 25 20:18:33 2008 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.138: +3 -2
lines
Diff to previous 1.138 (colored)
don't forget to fill in the emulation.
Revision 1.131.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:06 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.131: +167 -177
lines
Diff to previous 1.131 (colored)
sync with head.
Revision 1.133.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:24 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.133: +117 -121
lines
Diff to previous 1.133 (colored)
sync with head.
Revision 1.137.2.2 / (download) - annotate - [select for diffs], Wed May 14 19:54:12 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.137.2.1: +3 -3
lines
Diff to previous 1.137.2.1 (colored)
Per discussion with ad at n dot o, revert signal mask handling changes. The l_sigstk changes are most likely totally un-needed as SA will never use a signal stack - we send an upcall (or will as other diffs are brought in). The l_sigmask changes were too controvertial. In all honesty, I think it's probably best to revert them. The main reason they were there is the fact that in an SA process, we don't mask signals per kernel thread, we mask them per user thread. In the kernel, we want them all to get turned into upcalls. Thus the normal state of l_sigmask in an SA process is for it to always be empty. While we are in the process of delivering a signal, we want to temporarily mask a signal (so we don't recursively exhaust our upcall stacks). However signal delivery is rare (important, but rare), and delivering back-to-back signals is even rarer. So rather than cause every user of a signal mask to be prepared for this very rare case, we will just add a second check later in the signal delivery code. Said change is not in this diff. This also un-compensates all of our compatability code for dealing with SA. SA is a NetBSD-specific thing, so there's no need for Irix, Linux, Solaris, SVR4 and so on to cope with it. As previously, everything other than kern_sa.c compiles in i386 GENERIC as of this checkin. I will switch to ALL soon for compile testing.
Revision 1.138 / (download) - annotate - [select for diffs], Mon May 12 14:28:22 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Changes since 1.137: +5 -5
lines
Diff to previous 1.137 (colored)
Use cpu_index(), not ci_cpuid.
Revision 1.137.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:03 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.137: +4 -3
lines
Diff to previous 1.137 (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.137 / (download) - annotate - [select for diffs], Wed Apr 30 17:18:53 2008 UTC (4 years ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.136: +3 -3
lines
Diff to previous 1.136 (colored)
KERN_FILE_BYPID: fix locking botch.
Revision 1.136 / (download) - annotate - [select for diffs], Tue Apr 29 18:13:24 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.135: +11 -6
lines
Diff to previous 1.135 (colored)
Don't try grabbing a zombie's p_reflock.
Revision 1.135 / (download) - annotate - [select for diffs], Tue Apr 29 16:21:27 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.134: +109 -111
lines
Diff to previous 1.134 (colored)
PR kern/37917 /bin/ps no longer shows zombies
Revision 1.134 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (4 years ago) by martin
Branch: MAIN
Changes since 1.133: +2 -9
lines
Diff to previous 1.133 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.133 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:23 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.132: +30 -36
lines
Diff to previous 1.132 (colored)
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers. Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
Revision 1.132 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:28 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.131: +25 -25
lines
Diff to previous 1.131 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.131 / (download) - annotate - [select for diffs], Sat Apr 5 14:03:16 2008 UTC (4 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.130: +7 -5
lines
Diff to previous 1.130 (colored)
- l_wmesg is not always valid. check l_wchan when using l_wmesg. should fix a crash reported by Juan RP on current-users@. - ttyinfo: lock lwp when accessing l_wmesg. - fill_lwp: add an assertion.
Revision 1.130 / (download) - annotate - [select for diffs], Fri Apr 4 20:13:18 2008 UTC (4 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.129: +3 -3
lines
Diff to previous 1.129 (colored)
use device_xname() where appropriate OK martin
Revision 1.122.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:00 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.122: +39 -40
lines
Diff to previous 1.122 (colored)
Sync with HEAD.
Revision 1.129 / (download) - annotate - [select for diffs], Wed Apr 2 10:53:23 2008 UTC (4 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.128: +5 -5
lines
Diff to previous 1.128 (colored)
Revert rev 1.126-1.128. The original code was correct and rmind and I didn't look correctly at them.
Revision 1.128 / (download) - annotate - [select for diffs], Tue Apr 1 21:05:37 2008 UTC (4 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.127: +7 -11
lines
Diff to previous 1.127 (colored)
When copying l_name and l_wmesg use KI_LNAMELEN and KI_WMESGLEN respectively, so that we don't care if l_name/wmesg is longer than kl_name/wmesg and the KASSERTs added in previous can go away.
Revision 1.127 / (download) - annotate - [select for diffs], Tue Apr 1 18:06:06 2008 UTC (4 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.126: +10 -6
lines
Diff to previous 1.126 (colored)
Fix previous: use the length of l->l_foo not kl->l_foo and add two KASSERTs to check for max lenght limits before copying. As suggested by rmind@.
Revision 1.126 / (download) - annotate - [select for diffs], Tue Apr 1 17:39:58 2008 UTC (4 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.125: +4 -4
lines
Diff to previous 1.125 (colored)
fill_lwp: when copying l_wmesg and l_name, use the size of the string not of the variable. Found and ok by rmind@.
Revision 1.125.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (4 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.125: +18 -3
lines
Diff to previous 1.125 (colored)
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.125 / (download) - annotate - [select for diffs], Thu Mar 27 19:06:52 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Branch point for: christos-time_t
Changes since 1.124: +17 -15
lines
Diff to previous 1.124 (colored)
Make rusage collection per-LWP and collate in the appropriate places. cloned threads need a little bit more work but the locking needs to be fixed first.
Revision 1.46.2.11 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:01 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.10: +23 -22
lines
Diff to previous 1.46.2.10 (colored) next main 1.47 (colored)
sync with head.
Revision 1.122.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.122: +3 -7
lines
Diff to previous 1.122 (colored) next main 1.123 (colored)
sync with head.
Revision 1.105.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:58 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.105.2.2: +72 -46
lines
Diff to previous 1.105.2.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)
sync with HEAD
Revision 1.124 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Changes since 1.123: +23 -22
lines
Diff to previous 1.123 (colored)
Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
Revision 1.46.2.10 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.9: +3 -7
lines
Diff to previous 1.46.2.9 (colored)
sync with head.
Revision 1.123 / (download) - annotate - [select for diffs], Wed Feb 27 19:57:18 2008 UTC (4 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Changes since 1.122: +3 -7
lines
Diff to previous 1.122 (colored)
Convert to ansi definitions from old-style definitons.
Revision 1.112.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.112.2.2: +362 -197
lines
Diff to previous 1.112.2.2 (colored) next main 1.113 (colored)
Sync with HEAD.
Revision 1.46.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:07 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.8: +68 -37
lines
Diff to previous 1.46.2.8 (colored)
sync with head.
Revision 1.122 / (download) - annotate - [select for diffs], Wed Jan 30 00:43:47 2008 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.121: +3 -4
lines
Diff to previous 1.121 (colored)
Another locking botch.
Revision 1.121 / (download) - annotate - [select for diffs], Mon Jan 28 20:05:21 2008 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.120: +45 -19
lines
Diff to previous 1.120 (colored)
More file/proc locking fixes.
Revision 1.113.6.5 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:38 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.113.6.4: +25 -19
lines
Diff to previous 1.113.6.4 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored)
Sync with HEAD.
Revision 1.120 / (download) - annotate - [select for diffs], Wed Jan 23 15:04:39 2008 UTC (4 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.119: +27 -21
lines
Diff to previous 1.119 (colored)
Tons of process scope changes.
- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
requests, and add specific requests for set/get scheduler policy and
set/get scheduler parameters.
- Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
requests.
- Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.
- Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
process information is being looked at (entry itself, args, env,
open files).
- Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.
- Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.
- Make bsd44 secmodel code handle the newly added rqeuests appropriately.
All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.
- Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.
Discussed with christos@ and yamt@.
Revision 1.46.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:59 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.7: +316 -182
lines
Diff to previous 1.46.2.7 (colored)
sync with head
Revision 1.113.6.4 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:19 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.113.6.3: +3 -4
lines
Diff to previous 1.113.6.3 (colored) to branchpoint 1.113 (colored)
Sync with HEAD
Revision 1.119 / (download) - annotate - [select for diffs], Sat Jan 12 19:25:25 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-base
Changes since 1.118: +5 -6
lines
Diff to previous 1.118 (colored)
sysctl_kern_proc_args: avoid zero length allocation.
Revision 1.105.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:57 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.105.2.1: +315 -180
lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored)
sync with HEAD
Revision 1.113.6.3 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:30 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.113.6.2: +307 -169
lines
Diff to previous 1.113.6.2 (colored) to branchpoint 1.113 (colored)
Sync with HEAD
Revision 1.118 / (download) - annotate - [select for diffs], Mon Jan 7 16:12:53 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.117: +309 -171
lines
Diff to previous 1.117 (colored)
Patch up sysctl locking: - Lock processes, credentials, filehead etc correctly. - Acquire a read hold on sysctl_treelock if only doing a query. - Don't wire down the output buffer. It doesn't work correctly and the code regularly does long term sleeps with it held - it's not worth it. - Don't hold locks other than sysctl_lock while doing copyout(). - Drop sysctl_lock while doing copyout / allocating memory in a few places. - Don't take kernel_lock for sysctl. - Fix a number of bugs spotted along the way
Revision 1.113.6.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:44 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.113.6.1: +4 -5
lines
Diff to previous 1.113.6.1 (colored) to branchpoint 1.113 (colored)
Sync with HEAD
Revision 1.117 / (download) - annotate - [select for diffs], Mon Dec 31 15:32:10 2007 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.116: +2 -3
lines
Diff to previous 1.116 (colored)
Remove systrace. Ok core@.
Revision 1.112.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:54 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.112.2.1: +8 -8
lines
Diff to previous 1.112.2.1 (colored)
Sync with HEAD.
Revision 1.116 / (download) - annotate - [select for diffs], Wed Dec 26 22:11:48 2007 UTC (4 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.115: +2 -4
lines
Diff to previous 1.115 (colored)
Add PaX ASLR (Address Space Layout Randomization) [from elad and myself]
For regular (non PIE) executables randomization is enabled for:
1. The data segment
2. The stack
For PIE executables(*) randomization is enabled for:
1. The program itself
2. All shared libraries
3. The data segment
4. The stack
(*) To generate a PIE executable:
- compile everything with -fPIC
- link with -shared-libgcc -Wl,-pie
This feature is experimental, and might change. To use selectively add
options PAX_ASLR=0
in your kernel.
Currently we are using 12 bits for the stack, program, and data segment and
16 or 24 bits for mmap, depending on __LP64__.
Revision 1.113.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:06 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.113: +8 -8
lines
Diff to previous 1.113 (colored) next main 1.114 (colored)
Sync with head.
Revision 1.115 / (download) - annotate - [select for diffs], Sat Dec 22 01:14:54 2007 UTC (4 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.114: +6 -4
lines
Diff to previous 1.114 (colored)
use binuptime for l_stime/l_rtime.
Revision 1.113.6.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:56:52 2007 UTC (4 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.113: +4 -6
lines
Diff to previous 1.113 (colored)
Sync with HEAD
Revision 1.113.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:44:11 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.113: +4 -6
lines
Diff to previous 1.113 (colored) next main 1.114 (colored)
sync with head.
Revision 1.114 / (download) - annotate - [select for diffs], Mon Dec 10 18:58:02 2007 UTC (4 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Changes since 1.113: +4 -6
lines
Diff to previous 1.113 (colored)
- Use KAUTH_ARG() instead of casts, - Don't ignore return value of settime() in sysctl_kern_rtc_offset(), as suggested by yamt@. Note: the kauth(9) call in sysctl_kern_rtc_offset() is bogus, but this will be addressed separately.
Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:33 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.112: +8 -7
lines
Diff to previous 1.112 (colored)
Sync with HEAD.
Revision 1.46.2.7 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:37 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.6: +8 -7
lines
Diff to previous 1.46.2.6 (colored)
sync with head.
Revision 1.111.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:53 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.111.2.1: +6 -5
lines
Diff to previous 1.111.2.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored)
Sync with HEAD
Revision 1.105.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:27 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.105: +81 -64
lines
Diff to previous 1.105 (colored)
sync with HEAD
Revision 1.103.6.5 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:24 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.6.4: +8 -7
lines
Diff to previous 1.103.6.4 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)
Sync with HEAD.
Revision 1.113 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:40 2007 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: yamt-kmem,
vmlocking2,
bouyer-xeni386
Changes since 1.112: +8 -7
lines
Diff to previous 1.112 (colored)
Merge scheduler changes from the vmlocking branch. All discussed on tech-kern: - Invert priority space so that zero is the lowest priority. Rearrange number and type of priority levels into bands. Add new bands like 'kernel real time'. - Ignore the priority level passed to tsleep. Compute priority for sleep dynamically. - For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
Revision 1.98.2.10 / (download) - annotate - [select for diffs], Thu Nov 1 21:58:15 2007 UTC (4 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.9: +8 -7
lines
Diff to previous 1.98.2.9 (colored) next main 1.99 (colored)
- Fix interactivity problems under high load. Beacuse soft interrupts
are being stacked on top of regular LWPs, more often than not aston()
was being called on a soft interrupt thread instead of a user thread,
meaning that preemption was not happening on EOI.
- Don't use bool in a couple of data structures. Sub-word writes are not
always atomic and may clobber other fields in the containing word.
- For SCHED_4BSD, make p_estcpu per thread (l_estcpu). Rework how the
dynamic priority level is calculated - it's much better behaved now.
- Kill the l_usrpri/l_priority split now that priorities are no longer
directly assigned by tsleep(). There are three fields describing LWP
priority:
l_priority: Dynamic priority calculated by the scheduler.
This does not change for kernel/realtime threads,
and always stays within the correct band. Eg for
timeshared LWPs it never moves out of the user
priority range. This is basically what l_usrpri
was before.
l_inheritedprio: Lent to the LWP due to priority inheritance
(turnstiles).
l_kpriority: A boolean value set true the first time an LWP
sleeps within the kernel. This indicates that the LWP
should get a priority boost as compensation for blocking.
lwp_eprio() now does the equivalent of sched_kpri() if
the flag is set. The flag is cleared in userret().
- Keep track of scheduling class (OTHER, FIFO, RR) in struct lwp, and use
this to make decisions in a few places where we previously tested for a
kernel thread.
- Partially fix itimers and usr/sys/intr time accounting in the presence
of software interrupts.
- Use kthread_create() to create idle LWPs. Move priority definitions
from the various modules into sys/param.h.
- newlwp -> lwp_create
Revision 1.46.2.6 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:18 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.5: +75 -59
lines
Diff to previous 1.46.2.5 (colored)
sync with head.
Revision 1.103.6.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:27 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.6.3: +69 -59
lines
Diff to previous 1.103.6.3 (colored) to branchpoint 1.103 (colored)
Sync with HEAD. Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
Revision 1.111.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:59 2007 UTC (4 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
Sync with HEAD.
Revision 1.98.2.9 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:08 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.8: +54 -52
lines
Diff to previous 1.98.2.8 (colored)
Sync with head.
Revision 1.112 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:42 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.105.4.3 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:10 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.105.4.2: +52 -50
lines
Diff to previous 1.105.4.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)
sync with head.
Revision 1.111 / (download) - annotate - [select for diffs], Tue Oct 16 16:10:59 2007 UTC (4 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Changes since 1.110: +11 -2
lines
Diff to previous 1.110 (colored)
Don't fail to produce the argument vector if the program has modified it by deleting arguments. This is a popular practice, and failing means that ps(1) prints (programname). For example this is what XtOpenDisplay() with -geometry. This used to work before 2.0H, and the behavior is allowed and hinted by POSIX. Found out by Anon Ymous.
Revision 1.110 / (download) - annotate - [select for diffs], Tue Oct 16 16:05:50 2007 UTC (4 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.109: +35 -35
lines
Diff to previous 1.109 (colored)
- fix comment sentence capitalization. - whitespace cleanup. No functional changes.
Revision 1.109 / (download) - annotate - [select for diffs], Mon Oct 15 14:12:55 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.108: +10 -17
lines
Diff to previous 1.108 (colored)
Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These are extensions but are provided by many Unix systems.
Revision 1.105.4.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:38 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.105.4.1: +18 -10
lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored)
sync with head.
Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 13 10:04:08 2007 UTC (4 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base3
Changes since 1.107: +3 -3
lines
Diff to previous 1.107 (colored)
sysctl_kern_lwp: Use a correct variable when rechecking if LWP still exists after relocking. Found via CID: 4689. OK by <dsl>.
Revision 1.98.2.8 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:22 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.7: +8 -2
lines
Diff to previous 1.98.2.7 (colored)
Sync with head.
Revision 1.107 / (download) - annotate - [select for diffs], Mon Oct 8 18:09:37 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking-base
Changes since 1.106: +18 -10
lines
Diff to previous 1.106 (colored)
Merge from vmlocking: don't hold scheduler locks across copyout().
Revision 1.105.4.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:40 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.105: +8 -2
lines
Diff to previous 1.105 (colored)
sync with head.
Revision 1.103.6.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:56 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.6.2: +8 -2
lines
Diff to previous 1.103.6.2 (colored) to branchpoint 1.103 (colored)
Sync with HEAD.
Revision 1.106 / (download) - annotate - [select for diffs], Fri Sep 28 21:25:21 2007 UTC (4 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.105: +8 -2
lines
Diff to previous 1.105 (colored)
Add kern.no_sa_support to easily detect whether a kernel supports Scheduler Activation or not. This is a negative name as ld.so.conf conditionals threat undefined sysctls like 0.
Revision 1.46.2.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:41 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.4: +94 -121
lines
Diff to previous 1.46.2.4 (colored)
sync with head.
Revision 1.103.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:22:57 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.103.2.1: +5 -17
lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)
Sync with HEAD.
Revision 1.98.2.7 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:27 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.6: +6 -22
lines
Diff to previous 1.98.2.6 (colored)
Sync with HEAD.
Revision 1.98.2.6 / (download) - annotate - [select for diffs], Sat Aug 18 05:38:35 2007 UTC (4 years, 9 months ago) by yamt
Branch: vmlocking
Changes since 1.98.2.5: +18 -10
lines
Diff to previous 1.98.2.5 (colored)
sysctl_kern_lwp: - don't copyout with p_smutex held. on i386, copyout can involve pmap_load, which can block. - don't forget to release mutexes on error. ok'ed by Andrew Doran.
Revision 1.103.6.2 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:27 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.6.1: +5 -17
lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored)
Sync with HEAD.
Revision 1.103.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:05 2007 UTC (4 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.103: +3 -7
lines
Diff to previous 1.103 (colored)
Sync with HEAD.
Revision 1.105 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:32 2007 UTC (4 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Changes since 1.104: +5 -17
lines
Diff to previous 1.104 (colored)
Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed on tech-kern.
Revision 1.103.6.1 / (download) - annotate - [select for diffs], Thu Aug 9 02:37:18 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103: +3 -7
lines
Diff to previous 1.103 (colored)
Sync with HEAD.
Revision 1.104.2.2 / (download) - annotate - [select for diffs], Mon Aug 6 11:51:47 2007 UTC (4 years, 9 months ago) by yamt
Branch: matt-mips64
Changes since 1.104.2.1: +2996 -0
lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)
remove a homegrown definition of CPU_INFO_FOREACH.
Revision 1.104.2.1, Mon Aug 6 11:51:46 2007 UTC (4 years, 9 months ago) by yamt
Branch: matt-mips64
Changes since 1.104: +0 -2996
lines
FILE REMOVED
file init_sysctl.c was added on branch matt-mips64 on 2007-08-06 11:51:47 +0000
Revision 1.104 / (download) - annotate - [select for diffs], Mon Aug 6 11:51:46 2007 UTC (4 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: matt-mips64-base
Branch point for: matt-mips64
Changes since 1.103: +3 -7
lines
Diff to previous 1.103 (colored)
remove a homegrown definition of CPU_INFO_FOREACH.
Revision 1.98.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:36 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.4: +4 -3
lines
Diff to previous 1.98.2.4 (colored)
Sync with head.
Revision 1.99.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:40 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.99: +78 -91
lines
Diff to previous 1.99 (colored) next main 1.100 (colored)
Sync with head.
Revision 1.103 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:50 2007 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Changes since 1.102: +2 -3
lines
Diff to previous 1.102 (colored)
Merge some of the less invasive changes from the vmlocking branch: - kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
Revision 1.98.2.4 / (download) - annotate - [select for diffs], Sun Jul 1 19:25:01 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.3: +2 -3
lines
Diff to previous 1.98.2.3 (colored)
- LW_SELECT is gone - struct callout -> callout_t
Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 30 13:32:14 2007 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.101: +4 -3
lines
Diff to previous 1.101 (colored)
Add a flags parameter to kauth_cred_get/setgroups() so that sys_set/setgroups can copy directly to/from userspace. Avoids exposing the implementation of the group list as an array to code outside kern_auth.c. compat code and man page need updating.
Revision 1.98.2.3 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:15 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.98.2.2: +75 -88
lines
Diff to previous 1.98.2.2 (colored)
Sync with head.
Revision 1.101 / (download) - annotate - [select for diffs], Thu May 17 14:51:38 2007 UTC (5 years ago) by yamt
Branch: MAIN
Changes since 1.100: +75 -88
lines
Diff to previous 1.100 (colored)
merge yamt-idlelwp branch. asked by core@. some ports still needs work. from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
Revision 1.96.2.7 / (download) - annotate - [select for diffs], Mon May 7 10:55:44 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.96.2.6: +3 -3
lines
Diff to previous 1.96.2.6 (colored) next main 1.97 (colored)
sync with head.
Revision 1.100 / (download) - annotate - [select for diffs], Mon Apr 30 20:11:41 2007 UTC (5 years ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.99: +3 -3
lines
Diff to previous 1.99 (colored)
Remove proc->p_ru and the 'rusage' pool. I think it existed to cache the numbers in kernel memory of a zombie when proc->p_stats was part of the 'u' area - so got freed earlier and wouldn't (easily) be accessible from a separate process. However since both the p_ru and p_stats fields are freed at the same time it is no longer needed. Ride the recent 4.99.19 version change.
Revision 1.96.2.6 / (download) - annotate - [select for diffs], Sat Apr 21 15:50:14 2007 UTC (5 years, 1 month ago) by ad
Branch: yamt-idlelwp
Changes since 1.96.2.5: +71 -35
lines
Diff to previous 1.96.2.5 (colored)
Some changes mainly for top/ps: - Add an optional name field to struct lwp. - Count the total number of context switches + involuntary, not voluntary + involuntary. - Mark the idle threads as LSIDL when not running, otherwise they show up funny in a top(1) that shows threads. - Make pctcpu and cpticks per-LWP attributes. - Add to kinfo_lwp: cpticks, pctcpu, pid, name.
Revision 1.98.2.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:38:35 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.98.2.1: +3 -3
lines
Diff to previous 1.98.2.1 (colored)
- Make context switch counters 64-bit, and count the total number of context switches + voluntary, instead of involuntary + voluntary. - Add lwp::l_swaplock for uvm. - PHOLD/PRELE are replaced.
Revision 1.96.2.5 / (download) - annotate - [select for diffs], Mon Apr 2 00:28:08 2007 UTC (5 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.96.2.4: +9 -51
lines
Diff to previous 1.96.2.4 (colored)
- Move the ccpu sysctl back to the scheduler-independent part. - Move the scheduler-independent parts of 4BSD's schedcpu() to kern_synch.c. - Add scheduler-specific hook to satisfy individual scheduler's needs. - Remove autonice, which is archaic and not useful. Patch provided by Daniel Sieger.
Revision 1.96.2.4 / (download) - annotate - [select for diffs], Fri Mar 23 15:56:07 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.96.2.3: +6 -6
lines
Diff to previous 1.96.2.3 (colored)
don't bother to show l_forw and l_back to userland.
Revision 1.98.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:50 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.98: +4 -2
lines
Diff to previous 1.98 (colored)
Sync with head.
Revision 1.96.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:32 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.96.2.2: +15 -13
lines
Diff to previous 1.96.2.2 (colored)
Sync with HEAD.
Revision 1.99 / (download) - annotate - [select for diffs], Sun Mar 11 21:38:38 2007 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.98: +4 -2
lines
Diff to previous 1.98 (colored)
Add the LWP's runtime to kinfo_lwp.
Revision 1.96.2.2 / (download) - annotate - [select for diffs], Fri Mar 9 15:16:23 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.96.2.1: +2 -9
lines
Diff to previous 1.96.2.1 (colored)
Checkpoint: - Addition of scheduler-specific pointers in the struct proc, lwp and schedstate_percpu. - Addition of sched_lwp_fork(), sched_lwp_exit() and sched_slept() hooks. - mi_switch() now has only one argument. - sched_nextlwp(void) becomes sched_switch(struct lwp *) and does an enqueueing of LWP. - Addition of general kern.sched sysctl node. - Remove twice called uvmexp.swtch++, other cleanups. Discussed on tech-kern@
Revision 1.98 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:23 2007 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Branch point for: vmlocking
Changes since 1.97: +13 -13
lines
Diff to previous 1.97 (colored)
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
Revision 1.96.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:16 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.96: +32 -32
lines
Diff to previous 1.96 (colored)
- sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.46.2.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:03 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.3: +166 -71
lines
Diff to previous 1.46.2.3 (colored)
sync with head.
Revision 1.97 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:42 2007 UTC (5 years, 3 months ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.96: +32 -32
lines
Diff to previous 1.96 (colored)
Change the process/lwp flags seen by userland via sysctl back to the P_*/L_* naming convention, and rename the in-kernel flags to avoid conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD constant. Restores source compatibility with pre-newlock2 tools like ps or top. Reviewed by Andrew Doran.
Revision 1.96 / (download) - annotate - [select for diffs], Thu Feb 15 20:32:48 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.95: +5 -21
lines
Diff to previous 1.95 (colored)
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should have each CPU register at attach, so we can figure out the topology for the scheduler.
Revision 1.95 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.94: +153 -47
lines
Diff to previous 1.94 (colored)
Merge newlock2 to head.
Revision 1.81.4.11 / (download) - annotate - [select for diffs], Mon Feb 5 13:20:19 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.81.4.10: +7 -4
lines
Diff to previous 1.81.4.10 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)
- When clearing signals dequeue siginfo first and free later, once outside the lock permiter. - Push kernel_lock back in a a couple of places. - Adjust limcopy() to be MP safe (this needs redoing). - Fix a couple of bugs noticed along the way. - Catch up with condvar changes.
Revision 1.81.4.10 / (download) - annotate - [select for diffs], Sun Feb 4 14:42:36 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.81.4.9: +8 -3
lines
Diff to previous 1.81.4.9 (colored) to branchpoint 1.81 (colored)
Add a compat flag to match LPR_DETACHED.
Revision 1.81.4.9 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:37 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.81.4.8: +9 -4
lines
Diff to previous 1.81.4.8 (colored) to branchpoint 1.81 (colored)
Sync with head.
Revision 1.81.4.8 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:40 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.81.4.7: +3 -4
lines
Diff to previous 1.81.4.7 (colored) to branchpoint 1.81 (colored)
Remove support for SA. Ok core@.
Revision 1.93.2.1 / (download) - annotate - [select for diffs], Sun Jan 28 19:57:05 2007 UTC (5 years, 3 months ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
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,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: netbsd-4-0
Changes since 1.93: +9 -4
lines
Diff to previous 1.93 (colored)
Pull up following revision(s) (requested by elad in ticket #383): sys/kern/init_sysctl.c: revision 1.94 Don't rely on KAUTH_PROCESS_CANSEE for environment just yet. From yamt@.
Revision 1.94 / (download) - annotate - [select for diffs], Mon Jan 22 15:11:52 2007 UTC (5 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.93: +9 -4
lines
Diff to previous 1.93 (colored)
Don't rely on KAUTH_PROCESS_CANSEE for environment just yet, otherwise we're allowing anyone to read the environment unless curtain is enabled. From yamt@.
Revision 1.81.4.7 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.81.4.6: +11 -303
lines
Diff to previous 1.81.4.6 (colored) to branchpoint 1.81 (colored)
Sync with head.
Revision 1.46.2.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:04 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.2: +234 -438
lines
Diff to previous 1.46.2.2 (colored)
sync with head.
Revision 1.81.4.6 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:43 2006 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.81.4.5: +90 -24
lines
Diff to previous 1.81.4.5 (colored) to branchpoint 1.81 (colored)
Checkpoint work in progress.
Revision 1.85.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.85.2.1: +47 -303
lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)
sync with head.
Revision 1.93 / (download) - annotate - [select for diffs], Mon Nov 27 17:45:36 2006 UTC (5 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: netbsd-4
Changes since 1.92: +2 -88
lines
Diff to previous 1.92 (colored)
Move Veriexec's sysctl(9) setup routine and helper to kern_verifiedexec.c.
Revision 1.92 / (download) - annotate - [select for diffs], Sat Nov 25 21:40:05 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.91: +11 -217
lines
Diff to previous 1.91 (colored)
PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the physical memory
Revision 1.81.4.5 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.81.4.4: +170 -87
lines
Diff to previous 1.81.4.4 (colored) to branchpoint 1.81 (colored)
Sync with head.
Revision 1.81.4.4 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:35 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.81.4.3: +19 -8
lines
Diff to previous 1.81.4.3 (colored) to branchpoint 1.81 (colored)
Checkpoint work in progress.
Revision 1.91 / (download) - annotate - [select for diffs], Wed Nov 1 22:27:43 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.90: +36 -3
lines
Diff to previous 1.90 (colored)
implement kern.arandom properly, instead of lying about it and only filling the first 4 bytes of the array with random data.
Revision 1.90 / (download) - annotate - [select for diffs], Sun Oct 29 22:34:07 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.89: +5 -2
lines
Diff to previous 1.89 (colored)
add the emulation in kinfo_proc2
Revision 1.81.4.3 / (download) - annotate - [select for diffs], Tue Oct 24 21:10:21 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.81.4.2: +6 -10
lines
Diff to previous 1.81.4.2 (colored) to branchpoint 1.81 (colored)
- Redo LWP locking slightly and fix some races. - Fix some locking botches. - Make signal mask / stack per-proc for SA processes. - Add _lwp_kill().
Revision 1.85.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.85: +46 -17
lines
Diff to previous 1.85 (colored)
sync with head
Revision 1.81.4.2 / (download) - annotate - [select for diffs], Sat Oct 21 15:20:46 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.81.4.1: +45 -19
lines
Diff to previous 1.81.4.1 (colored) to branchpoint 1.81 (colored)
Checkpoint work in progress on locking and per-LWP signals. Very much a a work in progress and there is still a lot to do.
Revision 1.89 / (download) - annotate - [select for diffs], Tue Oct 3 16:07:12 2006 UTC (5 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.88: +2 -3
lines
Diff to previous 1.88 (colored)
Back out previous (p_flag2). In 30 minutes from now Jason Thorpe will come up with an implementation of a proplib dictionary in struct proc, so adding an int doesn't really make any sense.
Revision 1.88 / (download) - annotate - [select for diffs], Tue Oct 3 11:23:32 2006 UTC (5 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.87: +3 -2
lines
Diff to previous 1.87 (colored)
Until we figure out the Perfect Way of adding flags to processes, add a p_flag2. No objections on tech-kern@. Input from simonb@, thanks!
Revision 1.87 / (download) - annotate - [select for diffs], Sun Sep 24 05:46:14 2006 UTC (5 years, 8 months ago) by dogcow
Branch: MAIN
Changes since 1.86: +4 -4
lines
Diff to previous 1.86 (colored)
correct dcopyout #define for !KTRACE case.
Revision 1.86 / (download) - annotate - [select for diffs], Sat Sep 23 22:01:04 2006 UTC (5 years, 8 months ago) by manu
Branch: MAIN
Changes since 1.85: +46 -17
lines
Diff to previous 1.85 (colored)
Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB names will be displayed, with data readen and written as well.
Revision 1.63.2.5 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63.2.4: +91 -73
lines
Diff to previous 1.63.2.4 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)
sync with head.
Revision 1.85 / (download) - annotate - [select for diffs], Wed Sep 13 10:07:42 2006 UTC (5 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.84: +6 -6
lines
Diff to previous 1.84 (colored)
Don't use KAUTH_RESULT_* where it's not applicable. Prompted by yamt@.
Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon Sep 11 18:07:25 2006 UTC (5 years, 8 months ago) by ad
Branch: newlock2
Changes since 1.81: +10 -10
lines
Diff to previous 1.81 (colored)
- Convert some lockmgr() locks to mutexes and RW locks. - Acquire proclist_lock and p_crmutex in some obvious places.
Revision 1.84 / (download) - annotate - [select for diffs], Sun Sep 10 05:46:02 2006 UTC (5 years, 8 months ago) by manu
Branch: MAIN
Changes since 1.83: +74 -50
lines
Diff to previous 1.83 (colored)
When getting the program argument or environement string, we previously assumed that all the strings were stored in a row, separated by NUL chars, at the address pointed bu argv[0] (or envp[0]). This was wrong: if the program changed argvs[0], we still read the first string correctly, but the next strings did contain unexpected data. The fix: read the whole argv (or envp) array, then copy the string one by one, using their addresses in argv (or agrp)
Revision 1.60.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.60: +251 -114
lines
Diff to previous 1.60 (colored) next main 1.61 (colored)
sync with head
Revision 1.83 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:57 2006 UTC (5 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.82: +11 -31
lines
Diff to previous 1.82 (colored)
First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.
- Add a few more actions/sub-actions (requests), and start using them as
opposed to the KAUTH_GENERIC_ISSUSER place-holders.
- Introduce a basic set of listeners that implement our "traditional"
security model, called "bsd44". This is the default (and only) model we
have at the moment.
- Update all relevant documentation.
- Add some code and docs to help folks who want to actually use this stuff:
* There's a sample overlay model, sitting on-top of "bsd44", for
fast experimenting with tweaking just a subset of an existing model.
This is pretty cool because it's *really* straightforward to do stuff
you had to use ugly hacks for until now...
* And of course, documentation describing how to do the above for quick
reference, including code samples.
All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:
http://kauth.linbsd.org/kauthwiki
NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:
- Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
- Checks 'securelevel' directly,
- Checks a uid/gid directly.
(or if you feel you have to, contact me first)
This is still work in progress; It's far from being done, but now it'll
be a lot easier.
Relevant mailing list threads:
http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html
Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).
Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.
Happy birthday Randi! :)
Revision 1.82 / (download) - annotate - [select for diffs], Fri Sep 8 11:59:52 2006 UTC (5 years, 8 months ago) by manu
Branch: MAIN
CVS Tags: rpaulo-netinet-merge-pcb-base
Changes since 1.81: +17 -3
lines
Diff to previous 1.81 (colored)
When colecting a 32 bit process' argument or environement vector, we need to convert 32 bits pointers to the 64 bit environement
Revision 1.63.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63.2.3: +76 -71
lines
Diff to previous 1.63.2.3 (colored) to branchpoint 1.63 (colored)
sync with head
Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 26 09:33:57 2006 UTC (5 years, 10 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.80: +1 -1
lines
Diff to previous 1.80 (colored)
at the request of elad, as veriexec.h has returned, revert the changes from 2006-07-25.
Revision 1.80 / (download) - annotate - [select for diffs], Tue Jul 25 00:23:06 2006 UTC (5 years, 10 months ago) by dogcow
Branch: MAIN
Changes since 1.79: +3 -3
lines
Diff to previous 1.79 (colored)
mechanically go through and s,include "veriexec.h",include <sys/verified_exec.h>, as the former has apparently gone away.
Revision 1.79 / (download) - annotate - [select for diffs], Mon Jul 24 16:37:28 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.78: +11 -11
lines
Diff to previous 1.78 (colored)
some fixes:
- adapt to NVERIEXEC in init_sysctl.c.
- we now need "veriexec.h" for NVERIEXEC.
- "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where
it is needed.
Revision 1.78 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.77: +13 -11
lines
Diff to previous 1.77 (colored)
Use the LWP cached credentials where sane.
Revision 1.77 / (download) - annotate - [select for diffs], Mon Jul 17 14:47:02 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.76: +4 -8
lines
Diff to previous 1.76 (colored)
- Don't cast kauth_cred_t to (struct ucred *), just set pc_ucred = NULL. - Fill ucred::cr_ref.
Revision 1.76 / (download) - annotate - [select for diffs], Sun Jul 16 20:21:42 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.75: +6 -6
lines
Diff to previous 1.75 (colored)
CURTAIN() -> KAUTH_GENERIC_CANSEE.
Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 14 21:55:19 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.74: +52 -45
lines
Diff to previous 1.74 (colored)
move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@.
Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:50 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.71: +49 -27
lines
Diff to previous 1.71 (colored) next main 1.72 (colored)
Merge from HEAD.
Revision 1.63.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63.2.2: +59 -41
lines
Diff to previous 1.63.2.2 (colored) to branchpoint 1.63 (colored)
sync with head.
Revision 1.46.2.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:23:20 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.1: +19 -8
lines
Diff to previous 1.46.2.1 (colored)
pull init_sysctl.c rev.1.74.
Revision 1.46.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46: +320 -135
lines
Diff to previous 1.46 (colored)
sync with head.
Revision 1.74 / (download) - annotate - [select for diffs], Wed Jun 21 13:46:17 2006 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.73: +19 -8
lines
Diff to previous 1.73 (colored)
Don't leak memory on success. Allocate only the type of struct that we'll need for efficiency.
Revision 1.73 / (download) - annotate - [select for diffs], Tue Jun 20 03:21:03 2006 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.72: +19 -12
lines
Diff to previous 1.72 (colored)
don't allocate too much stuff on the stack.
Revision 1.68.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (5 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.68: +29 -29
lines
Diff to previous 1.68 (colored) next main 1.69 (colored)
Sync with head.
Revision 1.72 / (download) - annotate - [select for diffs], Sat Jun 17 06:54:58 2006 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: chap-midi-nbase,
chap-midi-base
Changes since 1.71: +17 -13
lines
Diff to previous 1.71 (colored)
sysctl_security_setidcorename: don't allocate MAXPATHLEN bytes on stack.
Revision 1.71 / (download) - annotate - [select for diffs], Tue Jun 13 13:56:50 2006 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: gdamore-uart-base
Branch point for: gdamore-uart
Changes since 1.70: +5 -7
lines
Diff to previous 1.70 (colored)
remove unnecessary arguments from kauth_authorize_process. ie. make it similar to the one found in apple TN.
Revision 1.70 / (download) - annotate - [select for diffs], Tue Jun 13 13:52:06 2006 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.69: +4 -6
lines
Diff to previous 1.69 (colored)
sysctl_kern_file, sysctl_kern_file2: don't abuse kauth_authorize_process for non-process objects.
Revision 1.69 / (download) - annotate - [select for diffs], Tue Jun 13 13:23:03 2006 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.68: +1 -1
lines
Diff to previous 1.68 (colored)
sysctl_kern_file2: fix an indent.
Revision 1.61.2.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:06 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.61.2.1: +42 -30
lines
Diff to previous 1.61.2.1 (colored) next main 1.62 (colored)
Sync with head.
Revision 1.63.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.63.6.1: +43 -74
lines
Diff to previous 1.63.6.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.63.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63.2.1: +42 -73
lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored)
sync with head.
Revision 1.68 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (6 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.67: +42 -30
lines
Diff to previous 1.67 (colored)
integrate kauth.
Revision 1.63.4.8 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (6 years ago) by christos
Branch: elad-kernelauth
Changes since 1.63.4.7: +3 -2
lines
Diff to previous 1.63.4.7 (colored) to branchpoint 1.63 (colored) next main 1.64 (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.61.2.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.61: +52 -61
lines
Diff to previous 1.61 (colored)
Sync with head.
Revision 1.63.4.7 / (download) - annotate - [select for diffs], Fri Apr 21 23:01:40 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.63.4.6: +3 -3
lines
Diff to previous 1.63.4.6 (colored) to branchpoint 1.63 (colored)
fix typo.
Revision 1.63.4.6 / (download) - annotate - [select for diffs], Fri Apr 21 19:49:06 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.63.4.5: +4 -3
lines
Diff to previous 1.63.4.5 (colored) to branchpoint 1.63 (colored)
adjust number of groups to kauth_cred_getgroups() with min() as in the original code. okay christos@
Revision 1.63.4.5 / (download) - annotate - [select for diffs], Thu Apr 20 00:54:33 2006 UTC (6 years, 1 month ago) by christos
Branch: elad-kernelauth
Changes since 1.63.4.4: +3 -4
lines
Diff to previous 1.63.4.4 (colored) to branchpoint 1.63 (colored)
Pass the correct number of groups instead of the size of the groups array to avoid a KASSERT panic.
Revision 1.63.4.4 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.63.4.3: +35 -46
lines
Diff to previous 1.63.4.3 (colored) to branchpoint 1.63 (colored)
sync with head.
Revision 1.67 / (download) - annotate - [select for diffs], Mon Apr 17 03:39:39 2006 UTC (6 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.66: +2 -33
lines
Diff to previous 1.66 (colored)
Move securelevel-specific stuff to its own file.
Revision 1.66 / (download) - annotate - [select for diffs], Fri Apr 14 13:09:06 2006 UTC (6 years, 1 month ago) by blymn
Branch: MAIN
Changes since 1.65: +2 -14
lines
Diff to previous 1.65 (colored)
Make i/o statistics collection more generic, include tape drives and nfs mounts in the set of devices that statistics will be reported on.
Revision 1.63.4.3 / (download) - annotate - [select for diffs], Thu Apr 13 20:04:40 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.63.4.2: +16 -12
lines
Diff to previous 1.63.4.2 (colored) to branchpoint 1.63 (colored)
Deprecate use of CURTAIN() where it's easy -- now it's done via kauth(9), process scope, CANSEE.
Revision 1.36.2.7 / (download) - annotate - [select for diffs], Fri Apr 7 12:31:52 2006 UTC (6 years, 1 month ago) by tron
Branch: netbsd-3
CVS Tags: 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
Branch point for: netbsd-3-1
Changes since 1.36.2.6: +3 -3
lines
Diff to previous 1.36.2.6 (colored) to branchpoint 1.36 (colored)
Pull up following revision(s) (requested by pavel in ticket #1244): sys/sys/lwp.h: revision 1.36 via patch sys/sys/proc.h: revision 1.219 via patch sys/kern/init_sysctl.c: revision 1.65 via patch PR/32809: Pavel Cahyna: Conflicting flags in l_flag and p_flag are causing ps(1) to print incorrect information. Annotate the flags in the header files to make sure that flags are not being re-used and move flags so that there are no conflicts.
Revision 1.63.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:39 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63: +35 -3
lines
Diff to previous 1.63 (colored)
sync with head.
Revision 1.65 / (download) - annotate - [select for diffs], Sat Apr 1 00:57:34 2006 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.64: +3 -3
lines
Diff to previous 1.64 (colored)
PR/32809: Pavel Cahyna: Conflicting flags in l_flag and p_flag are causing ps(1) to print incorrect information. Annotate the flags in the header files to make sure that flags are not being re-used and move flags so that there are no conflicts.
Revision 1.63.6.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:26 2006 UTC (6 years, 2 months ago) by tron
Branch: peter-altq
Changes since 1.63: +34 -2
lines
Diff to previous 1.63 (colored)
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 26 20:07:21 2006 UTC (6 years, 2 months ago) by erh
Branch: MAIN
Changes since 1.63: +34 -2
lines
Diff to previous 1.63 (colored)
When DIAGNOSTIC is defined, provide a kern.panic_now sysctl to conviniently and reliably panic the system
Revision 1.63.4.2 / (download) - annotate - [select for diffs], Tue Mar 14 02:52:47 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.63.4.1: +5 -7
lines
Diff to previous 1.63.4.1 (colored) to branchpoint 1.63 (colored)
Use kauth_cred_[sg]etgroups() where appropriate.
Revision 1.63.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.63: +39 -30
lines
Diff to previous 1.63 (colored)
Adapt to kernel authorization KPI.
Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Changes since 1.62: +5 -8
lines
Diff to previous 1.62 (colored)
merge yamt-uio_vmspace branch. - use vmspace rather than proc or lwp where appropriate. the latter is more natural to specify an address space. (and less likely to be abused for random purposes.) - fix a swdmover race.
Revision 1.59.2.3 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (6 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.59.2.2: +113 -11
lines
Diff to previous 1.59.2.2 (colored) next main 1.60 (colored)
sync with head.
Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 4 12:09:50 2006 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.61: +16 -11
lines
Diff to previous 1.61 (colored)
for some random places, use PNBUF_GET/PUT rather than - on-stack buffer - malloc(MAXPATHLEN)
Revision 1.61 / (download) - annotate - [select for diffs], Thu Feb 2 17:48:51 2006 UTC (6 years, 3 months ago) by elad
Branch: MAIN
Branch point for: simonb-timecounters
Changes since 1.60: +99 -2
lines
Diff to previous 1.60 (colored)
implement a security.setid_core node as discussed on tech-kern@ and tech-security@.
Revision 1.59.2.2 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:20 2006 UTC (6 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.59.2.1: +12 -4
lines
Diff to previous 1.59.2.1 (colored)
sync with head.
Revision 1.60 / (download) - annotate - [select for diffs], Fri Jan 27 03:14:56 2006 UTC (6 years, 3 months ago) by elad
Branch: MAIN
Branch point for: rpaulo-netinet-merge-pcb
Changes since 1.59: +12 -4
lines
Diff to previous 1.59 (colored)
remove security node sysctl objects; they are now created using CTL_CREATE.
Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (6 years, 4 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.59: +5 -8
lines
Diff to previous 1.59 (colored)
uio_segflg/uio_lwp -> uio_vmspace.
Revision 1.59 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (6 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.58: +11 -11
lines
Diff to previous 1.58 (colored)
u_intN_t -> uintN_t
Revision 1.58 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.57: +6 -6
lines
Diff to previous 1.57 (colored)
merge ktrace-lwp.
Revision 1.31.2.9 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:11 2005 UTC (6 years, 5 months ago) by christos
Branch: ktrace-lwp
Changes since 1.31.2.8: +9 -11
lines
Diff to previous 1.31.2.8 (colored) next main 1.32 (colored)
Sync with head.
Revision 1.57 / (download) - annotate - [select for diffs], Mon Dec 5 00:16:34 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.56: +9 -11
lines
Diff to previous 1.56 (colored)
- make settime take timespec. - avoid wrapping of time in settime. - pass struct proc down so that we can log a detailed message.
Revision 1.31.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.7: +294 -40
lines
Diff to previous 1.31.2.7 (colored)
Sync with HEAD. Here we go again...
Revision 1.56 / (download) - annotate - [select for diffs], Sat Oct 8 06:35:56 2005 UTC (6 years, 7 months ago) by yamt
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,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Changes since 1.55: +55 -27
lines
Diff to previous 1.55 (colored)
sysctl_kern_proc_args: don't assume that the process is resident while we are sleeping.
Revision 1.36.2.6 / (download) - annotate - [select for diffs], Thu Sep 8 21:06:30 2005 UTC (6 years, 8 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Branch point for: netbsd-3-0
Changes since 1.36.2.5: +3 -2
lines
Diff to previous 1.36.2.5 (colored) to branchpoint 1.36 (colored)
Apply patch (requested by elad in ticket #740): Defopt VERIFIED_EXEC.
Revision 1.55 / (download) - annotate - [select for diffs], Wed Sep 7 17:30:07 2005 UTC (6 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.54: +18 -3
lines
Diff to previous 1.54 (colored)
Implement curtain in KERN_{PROC,PROC2,FILE,FILE2,PROC_ARGS}.
While I'm here, disable curtain by default.
Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 7 16:26:15 2005 UTC (6 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.53: +22 -2
lines
Diff to previous 1.53 (colored)
Introduce ``security.curtain'', new node for security features and settings, and new variable for controlling access to objects based on user-id.
Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 6 02:36:17 2005 UTC (6 years, 8 months ago) by rpaulo
Branch: MAIN
Changes since 1.52: +8 -2
lines
Diff to previous 1.52 (colored)
Implement kern.hardclock_ticks.
Revision 1.52 / (download) - annotate - [select for diffs], Wed Aug 24 16:00:54 2005 UTC (6 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.51: +3 -3
lines
Diff to previous 1.51 (colored)
Fix a tyop in a comment.
Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Aug 23 14:45:20 2005 UTC (6 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.36.2.4: +2 -3
lines
Diff to previous 1.36.2.4 (colored) to branchpoint 1.36 (colored)
Backout ticket 685. It causes build failures.
Revision 1.36.2.4 / (download) - annotate - [select for diffs], Tue Aug 23 13:43:39 2005 UTC (6 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.36.2.3: +1 -0
lines
Diff to previous 1.36.2.3 (colored) to branchpoint 1.36 (colored)
Pull up revision 1.47 (requested by elad in ticket #685): defopt verified_exec.
Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 13 10:48:27 2005 UTC (6 years, 9 months ago) by blymn
Branch: MAIN
Changes since 1.50: +2 -17
lines
Diff to previous 1.50 (colored)
Remove the tape stats from here, they caused issues on non-scsipi architectures.
Revision 1.50 / (download) - annotate - [select for diffs], Mon Aug 8 12:12:30 2005 UTC (6 years, 9 months ago) by blymn
Branch: MAIN
Changes since 1.49: +5 -2
lines
Diff to previous 1.49 (colored)
Don't include tape stats functions if no devices configured.
Revision 1.49 / (download) - annotate - [select for diffs], Sun Aug 7 12:28:34 2005 UTC (6 years, 9 months ago) by blymn
Branch: MAIN
Changes since 1.48: +14 -2
lines
Diff to previous 1.48 (colored)
Add tape statistics gathering functions.
Revision 1.48 / (download) - annotate - [select for diffs], Fri Jul 29 14:49:00 2005 UTC (6 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.47: +4 -2
lines
Diff to previous 1.47 (colored)
#ifdef VERIFIED_EXEC
Revision 1.47 / (download) - annotate - [select for diffs], Sat Jul 16 22:47:18 2005 UTC (6 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.46: +3 -2
lines
Diff to previous 1.46 (colored)
defopt verified_exec.
Revision 1.36.2.3 / (download) - annotate - [select for diffs], Sat Jul 2 15:48:42 2005 UTC (6 years, 10 months ago) by tron
Branch: netbsd-3
Changes since 1.36.2.2: +5 -5
lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored)
Pull up revision 1.44 (requested by elad in ticket #487): Fix sysctl handling for raise-only variables. This affected the veriexec node entirely. Reported by Nino Dehne.
Revision 1.46 / (download) - annotate - [select for diffs], Fri Jun 17 23:53:21 2005 UTC (6 years, 11 months ago) by atatat
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.45: +5 -8
lines
Diff to previous 1.45 (colored)
Comment in new cp_id implementation was wrong since I abandoned rewriting it in favor of some testing and then never got back to it. It's better now.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 16 14:55:58 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.44: +104 -2
lines
Diff to previous 1.44 (colored)
Add a new sysctl 'cp_id' that returns the array of cpu id values. Requested by me, implemented by atatat.
Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 15 16:58:31 2005 UTC (6 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.43: +5 -5
lines
Diff to previous 1.43 (colored)
Fix sysctl handling for raise-only variables. This affected the veriexec node entirely. Reported by Nino Dehne.
Revision 1.36.2.2 / (download) - annotate - [select for diffs], Fri Jun 10 15:16:11 2005 UTC (6 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.36.2.1: +9 -2
lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored)
Pull up revision 1.39 (requested by elad in ticket #389): Add indication for number of fingerprinted files on each device. When a table is created for a new device, a new variable is created under the kern.veriexec.count node named "dev_<id>". For example, dev_0, dev_3, etc.
Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Jun 10 15:10:17 2005 UTC (6 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.36: +77 -2
lines
Diff to previous 1.36 (colored)
Pull up revision 1.38 (requested by elad in ticket #389): Some changes in veriexec. New features: - Add a veriexec_report() routine to make most reporting consistent and remove some common code. - Add 'strict' mode that controls how veriexec behaves. - Add sysctl knobs: o kern.veriexec.verbose controls verbosity levels. Value: 0, 1. o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See documentation in sysctl(3) for details. o kern.veriexec.algorithms returns a string with a space separated list of supported hashing algorithms in veriexec. - Updated documentation in man pages for sysctl(3) and sysctl(8). Bug fixes: - veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL correctly. - exec_script(): Don't pass 0 as flag when executing a script; use the defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution enforcement work. - Fix some printing formats and types..
Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 9 02:19:59 2005 UTC (6 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.42: +7 -12
lines
Diff to previous 1.42 (colored)
Properly fix the constipated lossage wrt -Wcast-qual and the sysctl code. I know it's not the prettiest code, but it seems to work rather well in spite of itself.
Revision 1.42 / (download) - annotate - [select for diffs], Mon Jun 6 19:56:46 2005 UTC (6 years, 11 months ago) by jdc
Branch: MAIN
Changes since 1.41: +5 -5
lines
Diff to previous 1.41 (colored)
Revert previous ('_ncpus' is now 'ncpus' again).
MI variable names have precedence.
Revision 1.41 / (download) - annotate - [select for diffs], Sun Jun 5 09:04:49 2005 UTC (6 years, 11 months ago) by jdc
Branch: MAIN
Changes since 1.40: +5 -5
lines
Diff to previous 1.40 (colored)
Rename 'ncpus' to '_ncpus', otherwise we shadow sparc/sparc64's 'ncpus' when MULTIPROCESSOR is defined.
Revision 1.40 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.39: +27 -21
lines
Diff to previous 1.39 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.39 / (download) - annotate - [select for diffs], Sun May 22 22:34:01 2005 UTC (7 years ago) by elad
Branch: MAIN
Changes since 1.38: +9 -2
lines
Diff to previous 1.38 (colored)
Add indication for number of fingerprinted files on each device. When a table is created for a new device, a new variable is created under the kern.veriexec.count node named "dev_<id>". For example, dev_0, dev_3, etc.
Revision 1.38 / (download) - annotate - [select for diffs], Thu May 19 20:16:19 2005 UTC (7 years ago) by elad
Branch: MAIN
Changes since 1.37: +77 -2
lines
Diff to previous 1.37 (colored)
Some changes in veriexec.
New features:
- Add a veriexec_report() routine to make most reporting consistent and
remove some common code.
- Add 'strict' mode that controls how veriexec behaves.
- Add sysctl knobs:
o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
documentation in sysctl(3) for details.
o kern.veriexec.algorithms returns a string with a space separated
list of supported hashing algorithms in veriexec.
- Updated documentation in man pages for sysctl(3) and sysctl(8).
Bug fixes:
- veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
correctly.
- exec_script(): Don't pass 0 as flag when executing a script; use the
defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
enforcement work.
- Fix some printing formats and types..
Revision 1.32.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.32: +159 -6
lines
Diff to previous 1.32 (colored) next main 1.33 (colored)
sync with -current
Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 18 10:46:39 2005 UTC (7 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.36: +3 -3
lines
Diff to previous 1.36 (colored)
be explicit in the description for POSIX saved set-id that this is for POSIX-style, not sane-style. (ie, add "POSIX " to the description.)
Revision 1.31.2.7 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:56 2005 UTC (7 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.6: +155 -2
lines
Diff to previous 1.31.2.6 (colored)
Sync with HEAD.
Revision 1.32.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.32: +158 -5
lines
Diff to previous 1.32 (colored) next main 1.33 (colored)
sync with head. xen and whitespace. xen part is not finished.
Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 11 06:16:15 2005 UTC (7 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Changes since 1.35: +3 -3
lines
Diff to previous 1.35 (colored)
Revert the change that made kern.file2 and net.*.*.pcblist into nodes instead of structs. It had other deleterious side-effects that are rather nasty. Another solution must be found.
Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 10 05:43:31 2005 UTC (7 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.34: +3 -3
lines
Diff to previous 1.34 (colored)
Change types of kern.file2 and net.*.*.pcblist to NODE
Revision 1.34 / (download) - annotate - [select for diffs], Wed Mar 9 05:02:17 2005 UTC (7 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.33: +155 -2
lines
Diff to previous 1.33 (colored)
Add kern.file2. As kern.proc2 is to kern.proc, so is kern.file2 to kern.file, namely a 32/64 bit clean sysctl interface to the same data. It also borrows a few things from struct vnode (if applicable) and from struct proc, just to tie things together a bit more. You can walk this list "by file" or "by pid". The former method is similar to kern.file but omits the filehead, and the latter can give you duplicates if multiple processes have the same struct file open, but tells you which process it is.
Revision 1.31.2.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:58 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.5: +5 -5
lines
Diff to previous 1.31.2.5 (colored)
Sync with HEAD. Hi Perry!
Revision 1.33 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.32: +5 -5
lines
Diff to previous 1.32 (colored)
nuke trailing whitespace
Revision 1.31.2.5 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:02 2004 UTC (7 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.4: +3 -3
lines
Diff to previous 1.31.2.4 (colored)
Sync with HEAD
Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:52 2004 UTC (7 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base,
matt-timespec,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Changes since 1.31: +3 -3
lines
Diff to previous 1.31 (colored)
introduce a function, proclist_foreach_call, to iterate all procs on a proclist and call the specified function for each of them. primarily to fix a procfs locking problem, but i think that it's useful for others as well. while i'm here, introduce PROCLIST_FOREACH macro, which is similar to LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
Revision 1.31.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.3: +6 -6
lines
Diff to previous 1.31.2.3 (colored)
Fix the sync with head I botched.
Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.2: +6 -6
lines
Diff to previous 1.31.2.2 (colored)
Sync with HEAD.
Revision 1.31.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:43 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.1: +2589 -0
lines
Diff to previous 1.31.2.1 (colored)
Sync with HEAD
Revision 1.24.2.5 / (download) - annotate - [select for diffs], Wed Jul 28 11:03:51 2004 UTC (7 years, 9 months ago) by tron
Branch: netbsd-2-0
CVS Tags: 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-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
Changes since 1.24.2.4: +9 -5
lines
Diff to previous 1.24.2.4 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)
Pull up revision 1.31 (requested by atatat in ticket #720): The message buffer datum instrumented by KERN_MSGBUFSIZE is actually a long, not an int, and this causes "problems" on LP64be machines (sparc64, etc). Assign the value to a temporary int and instrument that instead. Should be fine until someone wants a message buffer larger than two gigabytes.
Revision 1.31.2.1, Tue Jul 27 12:46:18 2004 UTC (7 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31: +0 -2589
lines
FILE REMOVED
file init_sysctl.c was added on branch ktrace-lwp on 2004-08-03 10:52:43 +0000
Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 27 12:46:18 2004 UTC (7 years, 10 months ago) by atatat
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.30: +9 -5
lines
Diff to previous 1.30 (colored)
The message buffer datum instrumented by KERN_MSGBUFSIZE is actually a long, not an int, and this causes "problems" on LP64be machines (sparc64, etc). Assign the value to a temporary int and instrument that instead. Should be fine until someone wants a message buffer larger than two gigabytes.
Revision 1.30 / (download) - annotate - [select for diffs], Wed May 26 16:28:05 2004 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.29: +3 -3
lines
Diff to previous 1.29 (colored)
(off_t)(long) is wrong when it comes to kernel addresses [because on a 32 bit machine if the high bit is set they turn negative]. Make an intermediate cast to unsigned long.
Revision 1.24.2.4 / (download) - annotate - [select for diffs], Thu May 6 05:36:49 2004 UTC (8 years ago) by jmc
Branch: netbsd-2-0
Changes since 1.24.2.3: +3 -3
lines
Diff to previous 1.24.2.3 (colored) to branchpoint 1.24 (colored)
Pullup rev 1.29 (requested by martin in ticket #257) Fix a comment.
Revision 1.29 / (download) - annotate - [select for diffs], Mon May 3 13:39:50 2004 UTC (8 years ago) by martin
Branch: MAIN
Changes since 1.28: +3 -3
lines
Diff to previous 1.28 (colored)
Fix a comment. Approved by Andrew Brown.
Revision 1.28 / (download) - annotate - [select for diffs], Fri Apr 23 02:58:29 2004 UTC (8 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.27: +4 -4
lines
Diff to previous 1.27 (colored)
s/the the/the/ (only in sources that aren't regularly imported from elsewhere).
Revision 1.24.2.3 / (download) - annotate - [select for diffs], Wed Apr 21 04:32:08 2004 UTC (8 years, 1 month ago) by jmc
Branch: netbsd-2-0
Changes since 1.24.2.2: +4 -4
lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored)
Pullup rev 1.27 (requested by atatat in ticket #150) Prefer that kern.hostid is printed in hex, not as a signed decimal, and avoid accidental sign-extension when setting it.
Revision 1.24.2.2 / (download) - annotate - [select for diffs], Wed Apr 21 04:27:49 2004 UTC (8 years, 1 month ago) by jmc
Branch: netbsd-2-0
Changes since 1.24.2.1: +229 -96
lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored)
Pullup rev 1.26 (requested by atatat in ticket #93) Lots of sysctl descriptions mostly copied from sysctl(3).
Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 16 13:25:40 2004 UTC (8 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.26: +4 -4
lines
Diff to previous 1.26 (colored)
Prefer that kern.hostid is printed in hex, not as a signed decimal, and avoid accidental sign-extension when setting it.
Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 8 06:20:29 2004 UTC (8 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.25: +229 -96
lines
Diff to previous 1.25 (colored)
Lots of sysctl descriptions (if someone wants to help out here, that would be good) mostly copied from sysctl(3). This takes care of the top-level, most of kern.* and hw.* (modulo the ath and bge stuff), and all of proc.*. If you don't want the added rodata in your kernel, use "options SYSCTL_NO_DESCR" in your kernel config.
Revision 1.24.2.1 / (download) - annotate - [select for diffs], Thu Apr 8 03:49:45 2004 UTC (8 years, 1 month ago) by jmc
Branch: netbsd-2-0
Changes since 1.24: +3 -2
lines
Diff to previous 1.24 (colored)
Pullup rev 1.25 (requested by atatat in ticket #85) Clear out the struct kinfo_drivers before stuffing things into it. Avoids leaking garbage from the stack (left over from the earlier call to sysctl_locate()).
Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 8 03:35:10 2004 UTC (8 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.24: +3 -2
lines
Diff to previous 1.24 (colored)
Clear out the struct kinfo_drivers before stuffing things into it. Avoids leaking garbage from the stack (left over from the earlier call to sysctl_locate()).
Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:52 2004 UTC (8 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.23: +208 -105
lines
Diff to previous 1.23 (colored)
Tango on sysctl_createv() and flags. The flags have all been renamed, and sysctl_createv() now uses more arguments.
Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 17 10:21:59 2004 UTC (8 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.22: +2 -32
lines
Diff to previous 1.22 (colored)
- move kern.somaxkva sysctl stuff from init_sysctl.c to uipc_socket.c. - when changing its value, wakeup sokva waiters.
Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 21 03:27:57 2004 UTC (8 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.21: +4 -4
lines
Diff to previous 1.21 (colored)
Use KERN_PROCSLOP for struct kinfo_proc and KERN_LWPSLOP for struct kinfo_lwp, and not vice versa. Should solve the issue with top dying because it's unable to "allocate memory".
Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 19 03:57:56 2004 UTC (8 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.20: +22 -27
lines
Diff to previous 1.20 (colored)
Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Jan 17 03:33:24 2004 UTC (8 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.19: +3 -3
lines
Diff to previous 1.19 (colored)
Avoid dereferencing l...it might be NULL
Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 28 22:36:37 2003 UTC (8 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.18: +11 -2
lines
Diff to previous 1.18 (colored)
Sysctl functions called for "generic" nodes should forward "query" requests (where possible), rather than returning errors.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 28 22:24:12 2003 UTC (8 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.17: +6 -4
lines
Diff to previous 1.17 (colored)
Adjust error returns in kern.cp_time when a specific processor is being requested so that (1) the uniprocessor case and the multiprocessor case are more similar and (2) so that we return ENOENT when a non-existent processor is requested (which is both more sensible and follows the general order of things anyway).
Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 28 22:19:59 2003 UTC (8 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.16: +19 -12
lines
Diff to previous 1.16 (colored)
Rename sysctl_kern_hostname() to sysctl_setlen() and use it also for domainname. Note that there's no need to copy rnode since we're not changing any of it, nor protecting anything from change. Thanks to martin for initial work.
Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 28 22:12:00 2003 UTC (8 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.15: +4 -1
lines
Diff to previous 1.15 (colored)
RCSid police
Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 28 14:39:36 2003 UTC (8 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.14: +22 -2
lines
Diff to previous 1.14 (colored)
After changing hostname, adjust hostnamelen. This closes PR kern/23907.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 26 23:49:39 2003 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.13: +39 -3
lines
Diff to previous 1.13 (colored)
Make kern.rtc_offset writable at securelevel <= 0. This allows boot-time adjustment when a machine runs other OSes with RTC == localtime.
Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 20 07:33:03 2003 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.12: +3 -3
lines
Diff to previous 1.12 (colored)
update a comment to match with the previous change (rev.1.12).
Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 20 07:26:27 2003 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.11: +10 -4
lines
Diff to previous 1.11 (colored)
restore functionality to decrease kern.maxvnodes which has been backed out during sysctl rework.
Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 12 23:21:44 2003 UTC (8 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.10: +6 -6
lines
Diff to previous 1.10 (colored)
In sysctl_kern_lwp adjust offsets into the mib entries so that they are now correct. Fixes problems with "ps -s" not working. Also use KERN_LWPSLOP instead of KERN_PROCSLOP. Both changes from Andrew Brown.
Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 10 14:16:12 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
Make kern.dump_on_panic writeable again, too
Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 9 01:52:07 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
Make kern.sbmax writeable again as well. From a follow-on to PR kern/23695 by a Mr. Davis, which I missed at a quick glance.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 9 01:25:33 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
Make kern.logsigexit writeable again. Fixes PR kern/23695.
Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 7 10:33:03 2003 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.6: +2 -1
lines
Diff to previous 1.6 (colored)
Add missing break.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 7 10:31:32 2003 UTC (8 years, 5 months ago) by he
Branch: MAIN
Changes since 1.5: +3 -1
lines
Diff to previous 1.5 (colored)
Also make declaration of sysctl_kern_maxptys() depend on NPTY > 0. Makes the mvme68k RAMDISK kernel compile again.
Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 6 21:33:51 2003 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.4: +27 -31
lines
Diff to previous 1.4 (colored)
Fix kern.cp_time for MULTIPROCESSOR kernels: calculate size of result correctly, free original instead of incremented pointer, copy results for n = -2 case too, so top shows correct stats. Additionaly, rearange code for better readability (from Andrew).
Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 6 20:06:11 2003 UTC (8 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.3: +4 -1
lines
Diff to previous 1.3 (colored)
Include opt_posix.h for the P1003_1B_SEMAPHORE define. Include <machine/cpu.h> just to be sure.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 6 09:36:34 2003 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.2: +19 -4
lines
Diff to previous 1.2 (colored)
We can not count CPUs at sysctl initialization time - so don't make hw.ncpu an immediate value.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 6 02:52:29 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.1: +2 -1
lines
Diff to previous 1.1 (colored)
#include "opt_multiprocessor.h" This makes hw.ncpu and kern.cp_time work better on those platforms.
Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Dynamic sysctl. Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.