CVS log for src/sys/kern/init_sysctl.c
Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.228.6.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:27:47 2026 UTC (11 days, 11 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.228: preferred, colored; next MAIN 1.229: preferred, colored
Changes since revision 1.228: +3 -9
lines
Sync with HEAD
Revision 1.230: download - view: text, markup, annotated - select for diffs
Sun Feb 15 21:47:18 2026 UTC (8 months, 4 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +3 -3
lines
PR/59984: João Bonifácio: Set _POSIX_SEMAPHORES to 200112L and use it
instead of hardcoding.
Revision 1.229: download - view: text, markup, annotated - select for diffs
Sun Feb 15 21:45:25 2026 UTC (8 months, 4 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +2 -8
lines
PR/59984: João Bonifácio: remove XXX comments after verifying match
to 200112L
Revision 1.228: download - view: text, markup, annotated - select for diffs
Sat Sep 9 16:01:09 2023 UTC (3 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11
Branch point for: perseant-exfatfs
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +4 -2
lines
Move the initialization of the random hash for addresses earlier so that
it does not happen under a spin lock context (when it is first used).
Revision 1.227: download - view: text, markup, annotated - select for diffs
Sun Sep 20 12:51:57 2020 UTC (6 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +21 -22
lines
KNF (sort #includes and remove duplicate sys/cpu.h)
Revision 1.226: download - view: text, markup, annotated - select for diffs
Sat May 23 23:42:43 2020 UTC (6 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +9 -9
lines
Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
Revision 1.214.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:51 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.214.4.1: preferred, colored; branchpoint 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214.4.1: +26 -4
lines
Merge changes from current as of 20200406
Revision 1.225: download - view: text, markup, annotated - select for diffs
Sun Mar 22 14:38:37 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +2 -3
lines
Merge vfs_cache.c from the ad-namecache branch. With this the namecache
index becomes per-directory (initially, a red-black tree). The remaining
changes on the branch to namei()/getcwd() will be merged in the future.
Revision 1.223.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:38:50 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.223.2.1: preferred, colored; branchpoint 1.223: preferred, colored; next MAIN 1.224: preferred, colored
Changes since revision 1.223.2.1: +9 -2
lines
Sync with head.
Revision 1.224: download - view: text, markup, annotated - select for diffs
Sat Jan 18 14:40:03 2020 UTC (6 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +9 -2
lines
Use 4K pages on ARM_MMU_EXTENDED platforms (all armv[67] except RPI) by
creating a new pool l1ttpl for the userland L1 translation table which
needs to be 8KB and 8KB aligned.
Limit the pool to maxproc and add hooks to allow the sysctl changing of
maxproc to adjust the pool.
This comes at a 5% performance penalty for build.sh -j8 kernel on a
Tegra TK1.
Revision 1.223.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 8 11:02:16 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +2 -3
lines
Redo the namecache to focus on per-directory data structures, removing the
huge hashtable and nasty locking scheme.
Initially this uses rbtrees (because that's what's there). The intent is
experiment with other data structures.
Revision 1.223: download - view: text, markup, annotated - select for diffs
Thu Jan 2 15:42:27 2020 UTC (6 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +19 -3
lines
- Eliminate the global "boottime" variable, which was being accessed
without any synchronization against changes by e.g. clock_settime().
- Replace with new getbinboottime() / getnanoboottime() / getmicroboottime()
functions (naming mirrors that of other time access functions in kern_tc.c).
It returns the (maybe-converted) value of timebasebin, which also tracks
our estimate of when the system was booted (i.e. the legacy "boottime" was
redundant).
XXX There needs to be a lockless synchronization mechanism for reading
timebasebin, but this is a problem in kern_tc.c that pre-existed these
"boottime" changes. At least now the problem is centralized in one location.
Revision 1.214.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:03 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +11 -42
lines
Sync with HEAD
Revision 1.214.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:57 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.214.2.5: preferred, colored; branchpoint 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214.2.5: +2 -34
lines
Synch with HEAD
Revision 1.222: download - view: text, markup, annotated - select for diffs
Tue Jan 15 07:11:23 2019 UTC (7 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +2 -34
lines
remove kern.panic_now -- crashme panic node replaces it.
Revision 1.214.2.5: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:03 2018 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.214.2.4: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.4: +2 -42
lines
Sync with HEAD, resolve a few conflicts
Revision 1.221: download - view: text, markup, annotated - select for diffs
Wed Dec 5 18:16:51 2018 UTC (7 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-1226
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +2 -47
lines
As discussed in tech-kern:
- make sysctl kern.expose_address tri-state:
0: no access
1: access to processes with open /dev/kmem
2: access to everyone
defaults:
0: KASLR kernels
1: non-KASLR kernels
- improve efficiency by calling get_expose_address() per sysctl, not per
process.
- don't expose addresses for linux procfs
- welcome to 8.99.27, changes to fill_*proc ABI
Revision 1.220: download - view: text, markup, annotated - select for diffs
Mon Dec 3 00:11:02 2018 UTC (7 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +7 -2
lines
Expose addresses depending on the KASLR setting (from mrg@). Restores the
status quo of exposing kernel addresses if there is no KASLR.
Revision 1.214.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:50 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.214.2.3: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.3: +6 -5
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.219: download - view: text, markup, annotated - select for diffs
Sat Nov 24 17:26:27 2018 UTC (7 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +6 -5
lines
Fix kernel pointer leaks in the kern.lwp sysctl.
Revision 1.214.2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:45 2018 UTC (8 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.214.2.2: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.2: +43 -3
lines
Sync with head
Revision 1.218: download - view: text, markup, annotated - select for diffs
Fri Oct 5 22:12:38 2018 UTC (8 years, 1 month ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +43 -3
lines
Provide a sysctl kern.expose_address to expose kernel addresses in
sysctl structure returns for non-root. Defaults to off. Turning it
on will restore sockstat/fstat and friends for regular users.
Revision 1.214.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:55 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.214.2.1: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.1: +4 -6
lines
Ssync with HEAD
Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Sep 16 20:39:04 2018 UTC (8 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: pgoyette-compat-0930
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +4 -6
lines
CTL_DEBUG_MAXID is only used to size a static array that the compiler
can do just fine itself. use the compiler and remove the define.
Revision 1.214.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:41 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +6 -4
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.216: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:35 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +4 -4
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.215: download - view: text, markup, annotated - select for diffs
Wed Aug 22 01:05:23 2018 UTC (8 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +4 -2
lines
- Cleanup for dynamic sysctl:
- Remove unused *_NAMES macros for sysctl.
- Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
use them on all m68k machines.
Revision 1.214: download - view: text, markup, annotated - select for diffs
Sun Feb 4 17:31:51 2018 UTC (8 years, 9 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +3 -2
lines
Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're
not gonna go very far.
Revision 1.190.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:44 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.190.2.4: preferred, colored; next MAIN 1.191: preferred, colored
Changes since revision 1.190.2.4: +98 -239
lines
update from HEAD
Revision 1.204.4.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204.4.5: preferred, colored; branchpoint 1.204: preferred, colored; next MAIN 1.205: preferred, colored
Changes since revision 1.204.4.5: +2 -6
lines
Sync with HEAD
Revision 1.213: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:13 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +2 -6
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.204.4.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:56 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204.4.4: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.4: +4 -4
lines
Sync with HEAD
Revision 1.211.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:49 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.211: preferred, colored; next MAIN 1.212: preferred, colored
Changes since revision 1.211: +4 -4
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.212: download - view: text, markup, annotated - select for diffs
Wed Dec 14 15:46:57 2016 UTC (9 years, 11 months ago) by hannken
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +4 -4
lines
Remove the "target" argment from vfs_drainvnodes() as it is
always equal to "desiredvnodes" and move its definition
from sys/vnode.h to sys/vnode_impl.h.
Extend vfs_drainvnodes() to also wait for deferred vrele to flush
and replace the call to vrele_flush() with a call to vfs_drainvnodes().
Revision 1.204.4.4: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:20 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204.4.3: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.3: +76 -2
lines
Sync with HEAD
Revision 1.211: download - view: text, markup, annotated - select for diffs
Tue May 31 05:44:19 2016 UTC (10 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +76 -2
lines
Add a new kern.messages sysctl to allow kernel message verbosity to be
altered after boot.
Fixes PR kern/46539 using patch submitted by Nat Sloss.
Revision 1.204.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:05 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204.4.2: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.2: +2 -17
lines
Sync with HEAD (as of 26th Dec)
Revision 1.210: download - view: text, markup, annotated - select for diffs
Mon Nov 9 01:21:18 2015 UTC (11 years ago) by pgoyette
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +2 -17
lines
Whether or not the semaphore code is loaded as a module or built-in, its
sysctl data belongs with the module code. Move it from kern/init_sysctl.c
to kern/uipc_sem.c
While here, add a new sysctl variable kern.posix.semcnt (current count of
semaphores) to complement the existing kern.posix.semmax (maximum number
of semaphores).
Revision 1.204.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204.4.1: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.1: +3 -70
lines
Sync with HEAD
Revision 1.209: download - view: text, markup, annotated - select for diffs
Tue Aug 25 14:52:31 2015 UTC (11 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +3 -58
lines
Move a bunch of sysctl nodes from init_sysctl (kitchen sink sysctl file)
to init_sysctl_base (only base kernel defs). Main motivation was to
fix sysconf(_SC_NPROCESSORS) for Rumprun. As reported by neeraj on irc,
it returned -1 before this fix, so we were doing imaginary computing.
Revision 1.208: download - view: text, markup, annotated - select for diffs
Tue Jul 7 12:38:02 2015 UTC (11 years, 4 months ago) by justin
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +2 -14
lines
Move hw.machine and hw.machine_arch sysctls to base so rump can use them
This allows uname(3) and uname(1) to work on rump kernels.
Revision 1.204.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:21 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +23 -152
lines
Sync with HEAD
Revision 1.207: download - view: text, markup, annotated - select for diffs
Wed May 20 11:17:24 2015 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +2 -93
lines
group msgbuf sysctls with the msgbuf code
(init_sysctl.c -> subr_log.c)
Revision 1.206: download - view: text, markup, annotated - select for diffs
Wed May 13 01:00:16 2015 UTC (11 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +23 -26
lines
More preparation for modularizing the SYSVxxx options. Here we
change the kern.ipc.sysvxxx sysctls into dynamic values, so each
sub-component of SYSVxxx can declare its own availability.
Revision 1.205: download - view: text, markup, annotated - select for diffs
Wed Apr 22 16:42:24 2015 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +2 -37
lines
move clock sysctls from init_sysctl.c to kern_clock.c
Revision 1.190.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:28 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.190.2.3: preferred, colored
Changes since revision 1.190.2.3: +19 -213
lines
Rebase to HEAD as of a few days ago.
Revision 1.202.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202: +19 -14
lines
Rebase.
Revision 1.204: download - view: text, markup, annotated - select for diffs
Sun Aug 3 09:15:21 2014 UTC (12 years, 3 months ago) by apb
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +15 -8
lines
BUILDINFO part 2: expose sysctl kern.buildinfo
Revision 1.183.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.183.2.2: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.2: +17 -224
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.197.6.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.197: preferred, colored; next MAIN 1.198: preferred, colored
Changes since revision 1.197: +8 -209
lines
sync with head
Revision 1.203: download - view: text, markup, annotated - select for diffs
Thu May 8 08:21:53 2014 UTC (12 years, 6 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +6 -8
lines
Add a global vnode cache:
- vcache_get() retrieves a referenced and initialised vnode / fs node pair.
- vcache_remove() removes a vnode / fs node pair from the cache.
On cache miss vcache_get() calls new vfs operation vfs_loadvnode() to
initialise a vnode / fs node pair. This call is guaranteed exclusive,
no other thread will try to load this vnode / fs node pair.
Convert ufs/ext2fs, ufs/ffs and ufs/mfs to use this interface.
Remove now unused ufs/ufs_ihash
Discussed on tech-kern.
Welcome to 6.99.41
Revision 1.202: download - view: text, markup, annotated - select for diffs
Mon Mar 24 20:07:41 2014 UTC (12 years, 7 months ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +4 -3
lines
- create cpu_{g,s}etmodel() and hide cpu_model from direct access.
Revision 1.201: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:11 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +2 -20
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.200: download - view: text, markup, annotated - select for diffs
Tue Feb 25 01:02:42 2014 UTC (12 years, 8 months ago) by justin
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +2 -71
lines
Add kern.{ostype,osrelease,osrevision,version} kern.domainname,
kern.rawpartition sysctl support to rump kernel.
Moved the sysctl support that is shared between rump and normal
kernels to init_sysctl_base.c as rump cannot use init_sysctl.c
in order to avoid code duplication. Agreed with pooka@.
Revision 1.199: download - view: text, markup, annotated - select for diffs
Fri Jan 17 02:12:48 2014 UTC (12 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +2 -76
lines
Put cprng sysctls into subr_cprng.c. Also, make sysctl_prng static
in subr_cprng and get rid of SYSCTL_PRIVATE namespace leak macro.
Fixes ping(8) when run against a standalone rump kernel due to appearance
of the kern.urandom sysctl node (in case someone was wondering ...)
Revision 1.198: download - view: text, markup, annotated - select for diffs
Sat Sep 14 13:18:02 2013 UTC (13 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +2 -41
lines
GC various arrays defined and used in kern_proc.c
Revision 1.190.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:57 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.190.2.2: preferred, colored
Changes since revision 1.190.2.2: +11 -4
lines
resync from head
Revision 1.197: download - view: text, markup, annotated - select for diffs
Mon Mar 18 13:36:22 2013 UTC (13 years, 8 months ago) by para
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +5 -4
lines
calculate vnode cache size based on the resource it gets allocated from
this stops setting kern.maxvnodes to high so it exhausts available space in kmem
http://mail-index.netbsd.org/tech-kern/2013/03/08/msg015095.html
Revision 1.186.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 14 16:33:09 2013 UTC (13 years, 8 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1
Diff to: previous 1.186: preferred, colored; next MAIN 1.187: preferred, colored
Changes since revision 1.186: +2 -17
lines
Pull up following revision(s) (requested by pgoyette in ticket #837):
sys/compat/common/kern_time_50.c: revision 1.25
sys/kern/init_sysctl.c: revision 1.195
sys/kern/init_main.c: revision 1.447
sys/compat/common/compat_util.h: revision 1.23
sys/compat/common/compat_mod.h: revision 1.1
sys/compat/common/compat_mod.c: revision 1.16
sys/compat/common/compat_mod.c: revision 1.17
sys/compat/common/compat_mod.c: revision 1.18
sys/compat/common/vfs_syscalls_43.c: revision 1.55
Move boottime50 and its associated sysctl into the compat module. As
noted on tech-kern. Should fix PR/47579.
OK christos@
Will request pull-up to 6.0 in a few days.
Wrap sysctl_teardown(&compat_clog) with the appropriate #if defined()s
remove empty #if
Revision 1.196: download - view: text, markup, annotated - select for diffs
Thu Mar 7 18:02:54 2013 UTC (13 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +8 -2
lines
Add a kern.configname sysctl object.
Revision 1.190.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:50 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.190.2.1: preferred, colored
Changes since revision 1.190.2.1: +4 -17
lines
resync with head
Revision 1.195: download - view: text, markup, annotated - select for diffs
Thu Feb 21 01:39:55 2013 UTC (13 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +2 -17
lines
Move boottime50 and its associated sysctl into the compat module. As
noted on tech-kern. Should fix PR/47579.
OK christos@
Will request pull-up to 6.0 in a few days.
Revision 1.194: download - view: text, markup, annotated - select for diffs
Sat Feb 2 14:02:09 2013 UTC (13 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +4 -2
lines
Make the inclusion of <sys/cprng.h> a private matter for sysctl. No reason
to expose the rest of the kernel to it.
Revision 1.190.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:41 2012 UTC (13 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +10 -34
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:27 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.1: +13 -37
lines
sync with head
Revision 1.193: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:39 2012 UTC (14 years ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +3 -3
lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
Revision 1.192: download - view: text, markup, annotated - select for diffs
Mon Oct 8 19:20:45 2012 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +2 -33
lines
put all kern socket sysctls in the same place
Revision 1.191: download - view: text, markup, annotated - select for diffs
Wed Oct 3 07:22:59 2012 UTC (14 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +9 -2
lines
Add sanity check to sysctl_kern_maxvnodes.
Revision 1.190: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:46 2012 UTC (14 years, 5 months ago) by dsl
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +5 -5
lines
Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
Revision 1.185.2.4: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:05:04 2012 UTC (14 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.185.2.3: preferred, colored; branchpoint 1.185: preferred, colored; next MAIN 1.186: preferred, colored
Changes since revision 1.185.2.3: +2 -5
lines
sync to latest -current.
Revision 1.183.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:22 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +26 -46
lines
sync with head
Revision 1.189: download - view: text, markup, annotated - select for diffs
Sat Apr 7 05:38:49 2012 UTC (14 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +2 -5
lines
remove bogus check.
Revision 1.185.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 11 01:52:29 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.185.2.2: preferred, colored; branchpoint 1.185: preferred, colored
Changes since revision 1.185.2.2: +3 -10
lines
sync to latest -current
Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Mar 10 21:51:59 2012 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +5 -12
lines
P1003_1B_SEMAPHORE is no longer optional.
Revision 1.185.2.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:44 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.185.2.1: preferred, colored; branchpoint 1.185: preferred, colored
Changes since revision 1.185.2.1: +4 -18
lines
sync to -current.
Revision 1.187: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:49 2012 UTC (14 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -18
lines
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
Revision 1.185.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:26 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +3 -3
lines
merge to -current.
Revision 1.186: download - view: text, markup, annotated - select for diffs
Sat Dec 17 20:05:39 2011 UTC (14 years, 11 months ago) by tls
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RC1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 20 01:09:14 2011 UTC (15 years ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +18 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 19 22:51:25 2011 UTC (15 years ago) by tls
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +5 -16
lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 30 12:39:59 2011 UTC (15 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 23 11:38:28 2011 UTC (15 years, 3 months ago) by jym
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +8 -5
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:26 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +14 -1250
lines
Sync with HEAD.
Revision 1.173.2.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:00 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.173.2.3: preferred, colored; branchpoint 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173.2.3: +3 -3
lines
sync with head
Revision 1.181: download - view: text, markup, annotated - select for diffs
Tue May 24 16:39:56 2011 UTC (15 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +5 -5
lines
Add some needed __UNCONST
Revision 1.173.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:07 2011 UTC (15 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.173.2.2: preferred, colored; branchpoint 1.173: preferred, colored
Changes since revision 1.173.2.2: +1 -1
lines
sync with head
Revision 1.180: download - view: text, markup, annotated - select for diffs
Sat Apr 2 05:07:57 2011 UTC (15 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -3
lines
vfs_drainvnodes: drop lwp argument, remove variable name in prototype.
Revision 1.149.4.8: download - view: text, markup, annotated - select for diffs
Mon Mar 7 17:08:28 2011 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Diff to: previous 1.149.4.7: preferred, colored; branchpoint 1.149: preferred, colored; next MAIN 1.150: preferred, colored
Changes since revision 1.149.4.7: +7 -2
lines
Apply patch (requested by joerg in ticket 1575):
Sanitize arguments before memory allocation.
Revision 1.149.4.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 7 17:08:18 2011 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE
Diff to: previous 1.149.4.7: preferred, colored; next MAIN 1.149.4.8: preferred, colored
Changes since revision 1.149.4.7: +7 -2
lines
Apply patch (requested by joerg in ticket 1575):
Sanitize arguments before memory allocation.
Revision 1.149.4.4.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 7 17:07:56 2011 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.149.4.4.2.3: preferred, colored; branchpoint 1.149.4.4: preferred, colored; next MAIN 1.149.4.5: preferred, colored
Changes since revision 1.149.4.4.2.3: +7 -2
lines
Apply patch (requested by joerg in ticket 1575):
Sanitize arguments before memory allocation.
Revision 1.93.2.1.6.2: download - view: text, markup, annotated - select for diffs
Mon Mar 7 17:07:26 2011 UTC (15 years, 8 months ago) by snj
Branches: netbsd-4-0
Diff to: previous 1.93.2.1.6.1: preferred, colored; branchpoint 1.93.2.1: preferred, colored; next MAIN 1.93.2.2: preferred, colored
Changes since revision 1.93.2.1.6.1: +7 -2
lines
Apply patch (requested by joerg in ticket 1419):
Sanitize arguments before memory allocation.
Revision 1.93.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 7 17:07:17 2011 UTC (15 years, 8 months ago) by snj
Branches: netbsd-4
Diff to: previous 1.93.2.2: preferred, colored; branchpoint 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93.2.2: +7 -2
lines
Apply patch (requested by joerg in ticket 1419):
Sanitize arguments before memory allocation.
Revision 1.173.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:12 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.173.2.1: preferred, colored; branchpoint 1.173: preferred, colored
Changes since revision 1.173.2.1: +10 -1246
lines
sync with head
Revision 1.175.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:58 2011 UTC (15 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +10 -1246
lines
Sync with HEAD
Revision 1.179: download - view: text, markup, annotated - select for diffs
Sat Feb 5 01:22:12 2011 UTC (15 years, 9 months ago) by christos
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +10 -13
lines
avoid code duplication.
Revision 1.178: download - view: text, markup, annotated - select for diffs
Fri Jan 28 20:31:10 2011 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +2 -6
lines
migrate compat32 handling with previous
pointed out by Lars Heidieker
Revision 1.177: download - view: text, markup, annotated - select for diffs
Fri Jan 28 18:44:44 2011 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +2 -1231
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 22 20:54:43 2011 UTC (15 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +5 -5
lines
Use the L_ flags instead of the P_ flags for lwps.
Revision 1.172.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:25 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.172.2.1: preferred, colored; branchpoint 1.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172.2.1: +4 -2
lines
Sync with HEAD.
Revision 1.133.2.8: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:38 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.7: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.2.7: +6 -4
lines
sync with head.
Revision 1.173.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:52 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +6 -4
lines
sync with head
Revision 1.175: download - view: text, markup, annotated - select for diffs
Thu Jul 1 02:38:30 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 16 18:49:22 2010 UTC (16 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:08 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -2
lines
Sync with HEAD.
Revision 1.149.4.4.2.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:15 2010 UTC (16 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.149.4.4.2.3: preferred, colored; next MAIN 1.149.4.4.2.4: preferred, colored
Changes since revision 1.149.4.4.2.3: +2 -2
lines
sync to netbsd-5
Revision 1.133.2.7: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:15 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.6: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.6: +167 -198
lines
sync with head
Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Feb 13 11:22:21 2010 UTC (16 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -2
lines
sysctl_doeproc: don't follow a possibly stale pointer.
Revision 1.172: download - view: text, markup, annotated - select for diffs
Wed Jan 13 01:53:38 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -3
lines
Minimize unnecessary differences in rump.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu Dec 24 19:01:12 2009 UTC (16 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +162 -103
lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 12 17:29:34 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +4 -3
lines
Report L_INMEM in the lwp info as well.
Revision 1.169: download - view: text, markup, annotated - select for diffs
Sat Dec 12 17:03:19 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +4 -3
lines
Always set L_INMEM to maintain binary compatibility.
Revision 1.168: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:12:06 2009 UTC (17 years ago) by rmind
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +2 -5
lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 16 15:03:56 2009 UTC (17 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +2 -92
lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:00 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.5: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.5: +8 -2
lines
sync with head
Revision 1.166: download - view: text, markup, annotated - select for diffs
Fri Sep 11 18:14:58 2009 UTC (17 years, 2 months ago) by apb
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:15 2009 UTC (17 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.4: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.4: +16 -4
lines
sync with head.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Sun Aug 16 20:28:19 2009 UTC (17 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base7
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +16 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:34 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.155.2.1: preferred, colored; branchpoint 1.155: preferred, colored; next MAIN 1.156: preferred, colored
Changes since revision 1.155.2.1: +45 -78
lines
Sync with HEAD.
Revision 1.149.4.4.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 1 22:42:38 2009 UTC (17 years, 4 months ago) by snj
Branches: 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
Diff to: previous 1.149.4.4.2.2: preferred, colored; branchpoint 1.149.4.4: preferred, colored
Changes since revision 1.149.4.4.2.2: +40 -70
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 1 22:42:28 2009 UTC (17 years, 4 months ago) by snj
Branches: 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
Diff to: previous 1.149.4.6: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.6: +40 -70
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 1 22:39:28 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.149.4.4.2.1: preferred, colored; branchpoint 1.149.4.4: preferred, colored
Changes since revision 1.149.4.4.2.1: +6 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 1 22:39:20 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.149.4.5: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.5: +6 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 1 22:27:55 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.149.4.4: preferred, colored
Changes since revision 1.149.4.4: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 1 22:27:23 2009 UTC (17 years, 4 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.149.4.4: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.4: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:31 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.3: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.3: +45 -78
lines
sync with head
Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun May 24 21:41:26 2009 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +7 -10
lines
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 - view: text, markup, annotated - select for diffs
Sat May 16 12:02:00 2009 UTC (17 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +40 -70
lines
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 - view: text, markup, annotated - select for diffs
Sat May 16 10:41:48 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.2: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.2: +7 -4
lines
sync with head
Revision 1.155.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:56 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +24 -15
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Tue May 12 11:42:12 2009 UTC (17 years, 6 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
jym-xensuspend-base
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +6 -4
lines
don't forget to skip marker processes.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon May 4 14:52:33 2009 UTC (17 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon May 4 08:13:46 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.1: +136 -39
lines
sync with head.
Revision 1.149.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:59 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.149.2.2: preferred, colored; branchpoint 1.149: preferred, colored; next MAIN 1.150: preferred, colored
Changes since revision 1.149.2.2: +18 -13
lines
Sync with HEAD.
Revision 1.149.4.4: download - view: text, markup, annotated - select for diffs
Wed Apr 1 00:25:22 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4
Branch point for: netbsd-5-0
Diff to: previous 1.149.4.3: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.3: +11 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 29 01:02:50 2009 UTC (17 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +11 -2
lines
- 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 - view: text, markup, annotated - select for diffs
Fri Mar 27 10:43:35 2009 UTC (17 years, 7 months ago) by msaitoh
Branches: netbsd-3-0
Diff to: previous 1.36.2.6: preferred, colored; next MAIN 1.36.2.7: preferred, colored
Changes since revision 1.36.2.6: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 27 06:04:21 2009 UTC (17 years, 7 months ago) by msaitoh
Branches: netbsd-3-1
Diff to: previous 1.36.2.7: preferred, colored; next MAIN 1.36.2.8: preferred, colored
Changes since revision 1.36.2.7: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 27 03:43:59 2009 UTC (17 years, 7 months ago) by msaitoh
Branches: netbsd-4-0
Diff to: previous 1.93.2.1: preferred, colored
Changes since revision 1.93.2.1: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 20 15:08:55 2009 UTC (17 years, 8 months ago) by msaitoh
Branches: netbsd-3
Diff to: previous 1.36.2.7: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.7: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 20 15:06:17 2009 UTC (17 years, 8 months ago) by msaitoh
Branches: netbsd-4
Diff to: previous 1.93.2.1: preferred, colored; branchpoint 1.93: preferred, colored
Changes since revision 1.93.2.1: +2 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 15 20:23:26 2009 UTC (17 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3
Diff to: previous 1.149.4.2: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.2: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 15 20:20:02 2009 UTC (17 years, 8 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.149.4.1: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.4.1: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 11 05:55:22 2009 UTC (17 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +6 -10
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 11 01:30:27 2009 UTC (17 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 8 12:52:08 2009 UTC (17 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3
lines
Don't bother with file_t::f_iflags any more, as it's not used.
Noted by mrg@.
Revision 1.149.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:55 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.149.2.1: preferred, colored; branchpoint 1.149: preferred, colored
Changes since revision 1.149.2.1: +3 -2
lines
Sync with HEAD.
Revision 1.156: download - view: text, markup, annotated - select for diffs
Fri Feb 13 22:41:04 2009 UTC (17 years, 9 months ago) by apb
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:37 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +50 -12
lines
Sync with HEAD.
Revision 1.122.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:18 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.122.6.4: preferred, colored; branchpoint 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122.6.4: +103 -21
lines
Sync with HEAD.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sat Jan 17 09:00:24 2009 UTC (17 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -3
lines
whitespace nit
Revision 1.154: download - view: text, markup, annotated - select for diffs
Sat Jan 17 07:02:35 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +3 -3
lines
malloc -> kmem_alloc.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:51 2009 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +19 -4
lines
merge christos-time_t
Revision 1.125.2.7: download - view: text, markup, annotated - select for diffs
Tue Dec 30 18:50:25 2008 UTC (17 years, 10 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.6: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.2.6: +6 -8
lines
sync with head.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Mon Dec 29 17:41:18 2008 UTC (17 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: christos-time_t-nbase,
christos-time_t-base
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +6 -8
lines
Rename specfs_lock as device_lock and move it from specfs to devsw.
Relaxes kernel dependency on vfs.
Revision 1.125.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 29 00:01:28 2008 UTC (17 years, 10 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.5: preferred, colored
Changes since revision 1.125.2.5: +3 -3
lines
adjust for tdev.
Revision 1.125.2.5: download - view: text, markup, annotated - select for diffs
Sat Dec 27 23:14:24 2008 UTC (17 years, 10 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.4: preferred, colored
Changes since revision 1.125.2.4: +7 -2
lines
merge with head.
Revision 1.143.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:07 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.143.2.1: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.2.1: +32 -11
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.149.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 29 20:51:06 2008 UTC (17 years, 11 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2,
netbsd-5-0-RC1
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +7 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 28 18:58:59 2008 UTC (17 years, 11 months ago) by elad
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +7 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 20 20:45:38 2008 UTC (17 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.3: preferred, colored
Changes since revision 1.125.2.3: +22 -2
lines
merge with head.
Revision 1.150: download - view: text, markup, annotated - select for diffs
Wed Nov 12 14:32:34 2008 UTC (18 years ago) by ad
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +22 -2
lines
Allow the POSIX semaphore code to be loaded as a module.
Revision 1.125.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 1 23:22:23 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.2: preferred, colored
Changes since revision 1.125.2.2: +3 -3
lines
catch up with changes in head.
Revision 1.125.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:26 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.125.2.1: preferred, colored
Changes since revision 1.125.2.1: +247 -202
lines
Sync with head.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Wed Oct 22 11:25:19 2008 UTC (18 years ago) by ad
Branches: MAIN
CVS tags: netbsd-5-base,
matt-mips64-base2
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -3
lines
Set kern.posix_semaphores are runtime so it can be a module.
(Picked wrong header the last time.)
Revision 1.148: download - view: text, markup, annotated - select for diffs
Wed Oct 22 11:17:08 2008 UTC (18 years ago) by ad
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +7 -11
lines
Set kern.posix_semaphores are runtime so it can be a module.
Revision 1.143.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:27 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +53 -4
lines
Sync with HEAD.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Sun Oct 19 03:10:09 2008 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: haad-dm-base1
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +9 -5
lines
rename proc_representative_lwp to proc_active_lwp and clarify it is for
ps display purposes. suggested by rmind.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Sun Oct 19 01:43:25 2008 UTC (18 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +33 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 15 06:51:20 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +17 -2
lines
Merge wrstuden-revivesa into HEAD.
Revision 1.137.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 14 20:36:21 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.137.2.4: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137.2.4: +16 -2
lines
Adapt kern.no_sa_support so that it changes sa_system_disabled
and thus actually controls SA.
Revision 1.122.6.4: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:51 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.122.6.3: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.6.3: +8 -6
lines
Sync with HEAD.
Revision 1.137.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:41 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.137.2.3: preferred, colored
Changes since revision 1.137.2.3: +10 -8
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.140.2.3: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:48 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.140.2.2: preferred, colored; branchpoint 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140.2.2: +3 -2
lines
Sync with head.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Tue Jul 15 22:25:30 2008 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -2
lines
make l_flags contain more stuff. Fixes top thread display where system processes
were always displayed.
Revision 1.140.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:11 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.140.2.1: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.1: +9 -8
lines
Sync with head.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Wed Jul 2 19:49:58 2008 UTC (18 years, 4 months ago) by rmind
Branches: MAIN
Branch point for: haad-dm
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +9 -8
lines
Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.
Revision 1.122.6.3: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:13 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.122.6.2: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.6.2: +7 -2
lines
Sync with HEAD.
Revision 1.137.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:50 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.137.2.2: preferred, colored
Changes since revision 1.137.2.2: +19 -12
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:34 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +9 -4
lines
Sync with head.
Revision 1.131.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:02 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.131.2.2: preferred, colored; branchpoint 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131.2.2: +9 -4
lines
sync with head.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Mon Jun 16 11:26:28 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +8 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 16 09:51:14 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +3 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:38 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.131.2.1: preferred, colored; branchpoint 1.131: preferred, colored
Changes since revision 1.131.2.1: +9 -7
lines
sync with head
Revision 1.122.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:07 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.122.6.1: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.6.1: +178 -184
lines
Sync with HEAD.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat May 31 21:34:42 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +8 -7
lines
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 - view: text, markup, annotated - select for diffs
Sun May 25 20:18:33 2008 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -2
lines
don't forget to fill in the emulation.
Revision 1.131.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:06 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +167 -177
lines
sync with head.
Revision 1.133.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:24 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +117 -121
lines
sync with head.
Revision 1.137.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 19:54:12 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.137.2.1: preferred, colored
Changes since revision 1.137.2.1: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon May 12 14:28:22 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -5
lines
Use cpu_index(), not ci_cpuid.
Revision 1.137.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:49:03 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 30 17:18:53 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3
lines
KERN_FILE_BYPID: fix locking botch.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Tue Apr 29 18:13:24 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +11 -6
lines
Don't try grabbing a zombie's p_reflock.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Tue Apr 29 16:21:27 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +109 -111
lines
PR kern/37917 /bin/ps no longer shows zombies
Revision 1.134: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:02 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.133: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:23 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +30 -36
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:28 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +25 -25
lines
Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:
- Inspecting process state requires thread context, so signals can no longer
be sent from a hardware interrupt handler. Signal activity must be
deferred to a soft interrupt or kthread.
- As the proc state locking is simplified, it's now safe to take exit()
and wait() out from under kernel_lock.
- The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Sat Apr 5 14:03:16 2008 UTC (18 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +7 -5
lines
- 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 - view: text, markup, annotated - select for diffs
Fri Apr 4 20:13:18 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -3
lines
use device_xname() where appropriate
OK martin
Revision 1.122.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:00 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +39 -40
lines
Sync with HEAD.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Apr 2 10:53:23 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +5 -5
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 1 21:05:37 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +7 -11
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 1 18:06:06 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +10 -6
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 1 17:39:58 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:00 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +18 -3
lines
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Thu Mar 27 19:06:52 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
Branch point for: christos-time_t
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +17 -15
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:01 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.10: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.10: +23 -22
lines
sync with head.
Revision 1.122.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:13 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +3 -7
lines
sync with head.
Revision 1.105.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:58 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.105.2.2: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.2.2: +72 -46
lines
sync with HEAD
Revision 1.124: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +23 -22
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.46.2.10: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:32 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.9: preferred, colored
Changes since revision 1.46.2.9: +3 -7
lines
sync with head.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Wed Feb 27 19:57:18 2008 UTC (18 years, 8 months ago) by matt
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -7
lines
Convert to ansi definitions from old-style definitons.
Revision 1.112.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:45 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.112.2.2: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.2.2: +362 -197
lines
Sync with HEAD.
Revision 1.46.2.9: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:07 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.8: preferred, colored
Changes since revision 1.46.2.8: +68 -37
lines
sync with head.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Wed Jan 30 00:43:47 2008 UTC (18 years, 9 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -4
lines
Another locking botch.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Mon Jan 28 20:05:21 2008 UTC (18 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +45 -19
lines
More file/proc locking fixes.
Revision 1.113.6.5: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:38 2008 UTC (18 years, 9 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.113.6.4: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.6.4: +25 -19
lines
Sync with HEAD.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Wed Jan 23 15:04:39 2008 UTC (18 years, 9 months ago) by elad
Branches: MAIN
CVS tags: bouyer-xeni386-nbase
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +27 -21
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:45:59 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.7: preferred, colored
Changes since revision 1.46.2.7: +316 -182
lines
sync with head
Revision 1.113.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:19 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.113.6.3: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.6.3: +3 -4
lines
Sync with HEAD
Revision 1.119: download - view: text, markup, annotated - select for diffs
Sat Jan 12 19:25:25 2008 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xeni386-base
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -6
lines
sysctl_kern_proc_args: avoid zero length allocation.
Revision 1.105.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:55:57 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.105.2.1: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.2.1: +315 -180
lines
sync with HEAD
Revision 1.113.6.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:30 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.113.6.2: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.6.2: +307 -169
lines
Sync with HEAD
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Jan 7 16:12:53 2008 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +309 -171
lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:44 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.113.6.1: preferred, colored; branchpoint 1.113: preferred, colored
Changes since revision 1.113.6.1: +4 -5
lines
Sync with HEAD
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Dec 31 15:32:10 2007 UTC (18 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -3
lines
Remove systrace. Ok core@.
Revision 1.112.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:54 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.112.2.1: preferred, colored
Changes since revision 1.112.2.1: +8 -8
lines
Sync with HEAD.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Dec 26 22:11:48 2007 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +2 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:06 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +8 -8
lines
Sync with head.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Dec 22 01:14:54 2007 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +6 -4
lines
use binuptime for l_stime/l_rtime.
Revision 1.113.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:56:52 2007 UTC (18 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +4 -6
lines
Sync with HEAD
Revision 1.113.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:44:11 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +4 -6
lines
sync with head.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Mon Dec 10 18:58:02 2007 UTC (18 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +4 -6
lines
- 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 - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:33 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +8 -7
lines
Sync with HEAD.
Revision 1.46.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:37 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.6: preferred, colored
Changes since revision 1.46.2.6: +8 -7
lines
sync with head.
Revision 1.111.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:53 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.111.2.1: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.2.1: +6 -5
lines
Sync with HEAD
Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:31:27 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +81 -64
lines
sync with HEAD
Revision 1.103.6.5: download - view: text, markup, annotated - select for diffs
Tue Nov 6 19:25:24 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.103.6.4: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.6.4: +8 -7
lines
Sync with HEAD.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue Nov 6 00:42:40 2007 UTC (19 years ago) by ad
Branches: 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
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +8 -7
lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 1 21:58:15 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.9: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.9: +8 -7
lines
- 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 - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:18 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.5: preferred, colored
Changes since revision 1.46.2.5: +75 -59
lines
sync with head.
Revision 1.103.6.4: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:27 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.103.6.3: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.6.3: +69 -59
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.111.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:39:59 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3
lines
Sync with HEAD.
Revision 1.98.2.9: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:08 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.8: preferred, colored
Changes since revision 1.98.2.8: +54 -52
lines
Sync with head.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:16:42 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
Branch point for: mjf-devfs
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.105.4.3: download - view: text, markup, annotated - select for diffs
Thu Oct 18 08:33:10 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.105.4.2: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.4.2: +52 -50
lines
sync with head.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue Oct 16 16:10:59 2007 UTC (19 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +11 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 16 16:05:50 2007 UTC (19 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +35 -35
lines
- fix comment sentence capitalization.
- whitespace cleanup.
No functional changes.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Oct 15 14:12:55 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +10 -17
lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:38 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.105.4.1: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.4.1: +18 -10
lines
sync with head.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Sat Oct 13 10:04:08 2007 UTC (19 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: yamt-x86pmap-base3
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:22 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.7: preferred, colored
Changes since revision 1.98.2.7: +8 -2
lines
Sync with head.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Oct 8 18:09:37 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: vmlocking-base
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +18 -10
lines
Merge from vmlocking: don't hold scheduler locks across copyout().
Revision 1.105.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:28:40 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +8 -2
lines
sync with head.
Revision 1.103.6.3: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:56 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.103.6.2: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.6.2: +8 -2
lines
Sync with HEAD.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Sep 28 21:25:21 2007 UTC (19 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: yamt-x86pmap-base2
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 3 14:40:41 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.4: preferred, colored
Changes since revision 1.46.2.4: +94 -121
lines
sync with head.
Revision 1.103.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:22:57 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.103.2.1: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.2.1: +5 -17
lines
Sync with HEAD.
Revision 1.98.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:27:27 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.6: preferred, colored
Changes since revision 1.98.2.6: +6 -22
lines
Sync with HEAD.
Revision 1.98.2.6: download - view: text, markup, annotated - select for diffs
Sat Aug 18 05:38:35 2007 UTC (19 years, 3 months ago) by yamt
Branches: vmlocking
Diff to: previous 1.98.2.5: preferred, colored
Changes since revision 1.98.2.5: +18 -10
lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 16 11:03:27 2007 UTC (19 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.103.6.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.6.1: +5 -17
lines
Sync with HEAD.
Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:05 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -7
lines
Sync with HEAD.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Aug 15 12:07:32 2007 UTC (19 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +5 -17
lines
Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
Revision 1.103.6.1: download - view: text, markup, annotated - select for diffs
Thu Aug 9 02:37:18 2007 UTC (19 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -7
lines
Sync with HEAD.
Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 6 11:51:47 2007 UTC (19 years, 3 months ago) by yamt
Branches: matt-mips64
Diff to: previous 1.104.2.1: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.1: +2996 -0
lines
remove a homegrown definition of CPU_INFO_FOREACH.
Revision 1.104.2.1
Mon Aug 6 11:51:46 2007 UTC (19 years, 3 months ago) by yamt
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.104: +0 -2996
lines
file init_sysctl.c was added on branch matt-mips64 on 2007-08-06 11:51:47 +0000
Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Aug 6 11:51:46 2007 UTC (19 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: matt-mips64-base
Branch point for: matt-mips64
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -7
lines
remove a homegrown definition of CPU_INFO_FOREACH.
Revision 1.98.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:36 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.4: preferred, colored
Changes since revision 1.98.2.4: +4 -3
lines
Sync with head.
Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:09:40 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +78 -91
lines
Sync with head.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:50 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 1 19:25:01 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.3: preferred, colored
Changes since revision 1.98.2.3: +2 -3
lines
- LW_SELECT is gone
- struct callout -> callout_t
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Jun 30 13:32:14 2007 UTC (19 years, 4 months ago) by dsl
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:15 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.2: preferred, colored
Changes since revision 1.98.2.2: +75 -88
lines
Sync with head.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:38 2007 UTC (19 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +75 -88
lines
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 - view: text, markup, annotated - select for diffs
Mon May 7 10:55:44 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.96.2.6: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96.2.6: +3 -3
lines
sync with head.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Apr 30 20:11:41 2007 UTC (19 years, 6 months ago) by dsl
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 21 15:50:14 2007 UTC (19 years, 7 months ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.96.2.5: preferred, colored
Changes since revision 1.96.2.5: +71 -35
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 5 21:38:35 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98.2.1: preferred, colored
Changes since revision 1.98.2.1: +3 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Mon Apr 2 00:28:08 2007 UTC (19 years, 7 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.96.2.4: preferred, colored
Changes since revision 1.96.2.4: +9 -51
lines
- 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 - view: text, markup, annotated - select for diffs
Fri Mar 23 15:56:07 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.96.2.3: preferred, colored
Changes since revision 1.96.2.3: +6 -6
lines
don't bother to show l_forw and l_back to userland.
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:51:50 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -2
lines
Sync with head.
Revision 1.96.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:32 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.96.2.2: preferred, colored
Changes since revision 1.96.2.2: +15 -13
lines
Sync with HEAD.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Mar 11 21:38:38 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -2
lines
Add the LWP's runtime to kinfo_lwp.
Revision 1.96.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 9 15:16:23 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.96.2.1: preferred, colored
Changes since revision 1.96.2.1: +2 -9
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 9 14:11:23 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +13 -13
lines
- 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 - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:16 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +32 -32
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.46.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:03 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.3: preferred, colored
Changes since revision 1.46.2.3: +166 -71
lines
sync with head.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:31:42 2007 UTC (19 years, 9 months ago) by pavel
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +32 -32
lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 15 20:32:48 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
Branch point for: yamt-idlelwp
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -21
lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:30 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +153 -47
lines
Merge newlock2 to head.
Revision 1.81.4.11: download - view: text, markup, annotated - select for diffs
Mon Feb 5 13:20:19 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.10: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.4.10: +7 -4
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Feb 4 14:42:36 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.9: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.9: +8 -3
lines
Add a compat flag to match LPR_DETACHED.
Revision 1.81.4.9: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:37 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.8: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.8: +9 -4
lines
Sync with head.
Revision 1.81.4.8: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:51:40 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.7: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.7: +3 -4
lines
Remove support for SA. Ok core@.
Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 28 19:57:05 2007 UTC (19 years, 9 months ago) by tron
Branches: 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
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -4
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 22 15:11:52 2007 UTC (19 years, 9 months ago) by elad
Branches: MAIN
CVS tags: newlock2-nbase,
newlock2-base
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:06 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.6: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.6: +11 -303
lines
Sync with head.
Revision 1.46.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:04 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.2: preferred, colored
Changes since revision 1.46.2.2: +234 -438
lines
sync with head.
Revision 1.81.4.6: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:43 2006 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.5: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.5: +90 -24
lines
Checkpoint work in progress.
Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:43 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +47 -303
lines
sync with head.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Nov 27 17:45:36 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -88
lines
Move Veriexec's sysctl(9) setup routine and helper to kern_verifiedexec.c.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Nov 25 21:40:05 2006 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +11 -217
lines
PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
Revision 1.81.4.5: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:21 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.4: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.4: +170 -87
lines
Sync with head.
Revision 1.81.4.4: download - view: text, markup, annotated - select for diffs
Fri Nov 17 16:34:35 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.3: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.3: +19 -8
lines
Checkpoint work in progress.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Nov 1 22:27:43 2006 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +36 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 29 22:34:07 2006 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +5 -2
lines
add the emulation in kinfo_proc2
Revision 1.81.4.3: download - view: text, markup, annotated - select for diffs
Tue Oct 24 21:10:21 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.2: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.2: +6 -10
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:09 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +46 -17
lines
sync with head
Revision 1.81.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 21 15:20:46 2006 UTC (20 years, 1 month ago) by ad
Branches: newlock2
Diff to: previous 1.81.4.1: preferred, colored; branchpoint 1.81: preferred, colored
Changes since revision 1.81.4.1: +45 -19
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 3 16:07:12 2006 UTC (20 years, 1 month ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 3 11:23:32 2006 UTC (20 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 24 05:46:14 2006 UTC (20 years, 1 month ago) by dogcow
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -4
lines
correct dcopyout #define for !KTRACE case.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat Sep 23 22:01:04 2006 UTC (20 years, 1 month ago) by manu
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +46 -17
lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:48 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.2.4: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.4: +91 -73
lines
sync with head.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Sep 13 10:07:42 2006 UTC (20 years, 2 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -6
lines
Don't use KAUTH_RESULT_* where it's not applicable.
Prompted by yamt@.
Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 11 18:07:25 2006 UTC (20 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +10 -10
lines
- Convert some lockmgr() locks to mutexes and RW locks.
- Acquire proclist_lock and p_crmutex in some obvious places.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Sep 10 05:46:02 2006 UTC (20 years, 2 months ago) by manu
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +74 -50
lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:15 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +251 -114
lines
sync with head
Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Sep 8 20:58:57 2006 UTC (20 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +11 -31
lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 8 11:59:52 2006 UTC (20 years, 2 months ago) by manu
Branches: MAIN
CVS tags: rpaulo-netinet-merge-pcb-base
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +17 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:46 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.2.3: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.3: +76 -71
lines
sync with head
Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Jul 26 09:33:57 2006 UTC (20 years, 3 months ago) by dogcow
Branches: MAIN
CVS tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: newlock2
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +1 -1
lines
at the request of elad, as veriexec.h has returned, revert the changes
from 2006-07-25.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Jul 25 00:23:06 2006 UTC (20 years, 3 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
mechanically go through and
s,include "veriexec.h",include <sys/verified_exec.h>,
as the former has apparently gone away.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Jul 24 16:37:28 2006 UTC (20 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +11 -11
lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:10 2006 UTC (20 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +13 -11
lines
Use the LWP cached credentials where sane.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Jul 17 14:47:02 2006 UTC (20 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -8
lines
- Don't cast kauth_cred_t to (struct ucred *), just set pc_ucred = NULL.
- Fill ucred::cr_ref.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Jul 16 20:21:42 2006 UTC (20 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -6
lines
CURTAIN() -> KAUTH_GENERIC_CANSEE.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Jul 14 21:55:19 2006 UTC (20 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +52 -45
lines
move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@.
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:50 2006 UTC (20 years, 4 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +49 -27
lines
Merge from HEAD.
Revision 1.63.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:56 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.2.2: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.2: +59 -41
lines
sync with head.
Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:23:20 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46.2.1: preferred, colored
Changes since revision 1.46.2.1: +19 -8
lines
pull init_sysctl.c rev.1.74.
Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:37 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +320 -135
lines
sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Jun 21 13:46:17 2006 UTC (20 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base6
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +19 -8
lines
Don't leak memory on success. Allocate only the type of struct that we'll
need for efficiency.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Jun 20 03:21:03 2006 UTC (20 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +19 -12
lines
don't allocate too much stuff on the stack.
Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:07:15 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +29 -29
lines
Sync with head.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Jun 17 06:54:58 2006 UTC (20 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: chap-midi-nbase,
chap-midi-base
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +17 -13
lines
sysctl_security_setidcorename: don't allocate MAXPATHLEN bytes on stack.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:56:50 2006 UTC (20 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: gdamore-uart-base
Branch point for: gdamore-uart
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -7
lines
remove unnecessary arguments from kauth_authorize_process.
ie. make it similar to the one found in apple TN.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:52:06 2006 UTC (20 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -6
lines
sysctl_kern_file, sysctl_kern_file2: don't abuse kauth_authorize_process
for non-process objects.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:23:03 2006 UTC (20 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +1 -1
lines
sysctl_kern_file2: fix an indent.
Revision 1.61.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:06 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.61.2.1: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.1: +42 -30
lines
Sync with head.
Revision 1.63.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:40 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.63.6.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.6.1: +43 -74
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:40 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.1: +42 -73
lines
sync with head.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 14 21:15:11 2006 UTC (20 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +42 -30
lines
integrate kauth.
Revision 1.63.4.8: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:30 2006 UTC (20 years, 6 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.63.4.7: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.4.7: +3 -2
lines
- 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 - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:58 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +52 -61
lines
Sync with head.
Revision 1.63.4.7: download - view: text, markup, annotated - select for diffs
Fri Apr 21 23:01:40 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63.4.6: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.6: +3 -3
lines
fix typo.
Revision 1.63.4.6: download - view: text, markup, annotated - select for diffs
Fri Apr 21 19:49:06 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63.4.5: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.5: +4 -3
lines
adjust number of groups to kauth_cred_getgroups() with min() as in the
original code. okay christos@
Revision 1.63.4.5: download - view: text, markup, annotated - select for diffs
Thu Apr 20 00:54:33 2006 UTC (20 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.63.4.4: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.4: +3 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 19 05:13:59 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63.4.3: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.3: +35 -46
lines
sync with head.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Apr 17 03:39:39 2006 UTC (20 years, 7 months ago) by elad
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -33
lines
Move securelevel-specific stuff to its own file.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Apr 14 13:09:06 2006 UTC (20 years, 7 months ago) by blymn
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -14
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 13 20:04:40 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63.4.2: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.2: +16 -12
lines
Deprecate use of CURTAIN() where it's easy -- now it's done via kauth(9),
process scope, CANSEE.
Revision 1.36.2.7: download - view: text, markup, annotated - select for diffs
Fri Apr 7 12:31:52 2006 UTC (20 years, 7 months ago) by tron
Branches: 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
Diff to: previous 1.36.2.6: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.6: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:39 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +35 -3
lines
sync with head.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Apr 1 00:57:34 2006 UTC (20 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:26 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +34 -2
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Mar 26 20:07:21 2006 UTC (20 years, 7 months ago) by erh
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +34 -2
lines
When DIAGNOSTIC is defined, provide a kern.panic_now sysctl to conviniently
and reliably panic the system
Revision 1.63.4.2: download - view: text, markup, annotated - select for diffs
Tue Mar 14 02:52:47 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63.4.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.1: +5 -7
lines
Use kauth_cred_[sg]etgroups() where appropriate.
Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:53:40 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +39 -30
lines
Adapt to kernel authorization KPI.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:21 2006 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -8
lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:18 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.59.2.2: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.2: +113 -11
lines
sync with head.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Feb 4 12:09:50 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +16 -11
lines
for some random places, use PNBUF_GET/PUT rather than
- on-stack buffer
- malloc(MAXPATHLEN)
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Feb 2 17:48:51 2006 UTC (20 years, 9 months ago) by elad
Branches: MAIN
Branch point for: simonb-timecounters
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +99 -2
lines
implement a security.setid_core node as discussed on tech-kern@ and
tech-security@.
Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:52:20 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.59.2.1: preferred, colored
Changes since revision 1.59.2.1: +12 -4
lines
sync with head.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Jan 27 03:14:56 2006 UTC (20 years, 9 months ago) by elad
Branches: MAIN
Branch point for: rpaulo-netinet-merge-pcb
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +12 -4
lines
remove security node sysctl objects; they are now created using CTL_CREATE.
Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 31 11:14:01 2005 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -8
lines
uio_segflg/uio_lwp -> uio_vmspace.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Dec 26 18:45:27 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +11 -11
lines
u_intN_t -> uintN_t
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:29 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -6
lines
merge ktrace-lwp.
Revision 1.31.2.9: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:11 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.31.2.8: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.8: +9 -11
lines
Sync with head.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Dec 5 00:16:34 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -11
lines
- 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 - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:44 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.7: preferred, colored
Changes since revision 1.31.2.7: +294 -40
lines
Sync with HEAD. Here we go again...
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Oct 8 06:35:56 2005 UTC (21 years, 1 month ago) by yamt
Branches: 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
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +55 -27
lines
sysctl_kern_proc_args: don't assume that the process is
resident while we are sleeping.
Revision 1.36.2.6: download - view: text, markup, annotated - select for diffs
Thu Sep 8 21:06:30 2005 UTC (21 years, 2 months ago) by tron
Branches: 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
Diff to: previous 1.36.2.5: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.5: +3 -2
lines
Apply patch (requested by elad in ticket #740):
Defopt VERIFIED_EXEC.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Sep 7 17:30:07 2005 UTC (21 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +18 -3
lines
Implement curtain in KERN_{PROC,PROC2,FILE,FILE2,PROC_ARGS}.
While I'm here, disable curtain by default.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Sep 7 16:26:15 2005 UTC (21 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +22 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 6 02:36:17 2005 UTC (21 years, 2 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +8 -2
lines
Implement kern.hardclock_ticks.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Aug 24 16:00:54 2005 UTC (21 years, 2 months ago) by simonb
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
Fix a tyop in a comment.
Revision 1.36.2.5: download - view: text, markup, annotated - select for diffs
Tue Aug 23 14:45:20 2005 UTC (21 years, 2 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.36.2.4: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.4: +2 -3
lines
Backout ticket 685. It causes build failures.
Revision 1.36.2.4: download - view: text, markup, annotated - select for diffs
Tue Aug 23 13:43:39 2005 UTC (21 years, 2 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.36.2.3: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.3: +1 -0
lines
Pull up revision 1.47 (requested by elad in ticket #685):
defopt verified_exec.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:48:27 2005 UTC (21 years, 3 months ago) by blymn
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -17
lines
Remove the tape stats from here, they caused issues on non-scsipi
architectures.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Aug 8 12:12:30 2005 UTC (21 years, 3 months ago) by blymn
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +5 -2
lines
Don't include tape stats functions if no devices configured.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Aug 7 12:28:34 2005 UTC (21 years, 3 months ago) by blymn
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +14 -2
lines
Add tape statistics gathering functions.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Jul 29 14:49:00 2005 UTC (21 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -2
lines
#ifdef VERIFIED_EXEC
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jul 16 22:47:18 2005 UTC (21 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2
lines
defopt verified_exec.
Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 2 15:48:42 2005 UTC (21 years, 4 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.36.2.2: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.2: +5 -5
lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 17 23:53:21 2005 UTC (21 years, 5 months ago) by atatat
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -8
lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 16 14:55:58 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +104 -2
lines
Add a new sysctl 'cp_id' that returns the array of cpu id values. Requested by
me, implemented by atatat.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jun 15 16:58:31 2005 UTC (21 years, 5 months ago) by elad
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -5
lines
Fix sysctl handling for raise-only variables. This affected the veriexec
node entirely. Reported by Nino Dehne.
Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 10 15:16:11 2005 UTC (21 years, 5 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.1: +9 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 10 15:10:17 2005 UTC (21 years, 5 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +77 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 9 02:19:59 2005 UTC (21 years, 5 months ago) by atatat
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -12
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 6 19:56:46 2005 UTC (21 years, 5 months ago) by jdc
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -5
lines
Revert previous ('_ncpus' is now 'ncpus' again).
MI variable names have precedence.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jun 5 09:04:49 2005 UTC (21 years, 5 months ago) by jdc
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -5
lines
Rename 'ncpus' to '_ncpus', otherwise we shadow sparc/sparc64's 'ncpus'
when MULTIPROCESSOR is defined.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun May 29 22:24:15 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +27 -21
lines
- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun May 22 22:34:01 2005 UTC (21 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +9 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu May 19 20:16:19 2005 UTC (21 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +77 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:23 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +159 -6
lines
sync with -current
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Apr 18 10:46:39 2005 UTC (21 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 1 14:30:56 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.6: preferred, colored
Changes since revision 1.31.2.6: +155 -2
lines
Sync with HEAD.
Revision 1.32.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:11 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +158 -5
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Mar 11 06:16:15 2005 UTC (21 years, 8 months ago) by atatat
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 10 05:43:31 2005 UTC (21 years, 8 months ago) by atatat
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3
lines
Change types of kern.file2 and net.*.*.pcblist to NODE
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Mar 9 05:02:17 2005 UTC (21 years, 8 months ago) by atatat
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +155 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 4 16:51:58 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.5: preferred, colored
Changes since revision 1.31.2.5: +5 -5
lines
Sync with HEAD.
Hi Perry!
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -5
lines
nuke trailing whitespace
Revision 1.31.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:58:02 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.4: preferred, colored
Changes since revision 1.31.2.4: +3 -3
lines
Sync with HEAD
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Oct 1 16:30:52 2004 UTC (22 years, 1 month ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:03 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.3: preferred, colored
Changes since revision 1.31.2.3: +6 -6
lines
Fix the sync with head I botched.
Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:02 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.2: preferred, colored
Changes since revision 1.31.2.2: +6 -6
lines
Sync with HEAD.
Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:43 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1: +2589 -0
lines
Sync with HEAD
Revision 1.24.2.5: download - view: text, markup, annotated - select for diffs
Wed Jul 28 11:03:51 2004 UTC (22 years, 3 months ago) by tron
Branches: 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
Diff to: previous 1.24.2.4: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.4: +9 -5
lines
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 (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.31: +0 -2589
lines
file init_sysctl.c was added on branch ktrace-lwp on 2004-08-03 10:52:43 +0000
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jul 27 12:46:18 2004 UTC (22 years, 3 months ago) by atatat
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -5
lines
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 - view: text, markup, annotated - select for diffs
Wed May 26 16:28:05 2004 UTC (22 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
(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 - view: text, markup, annotated - select for diffs
Thu May 6 05:36:49 2004 UTC (22 years, 6 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.24.2.3: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.3: +3 -3
lines
Pullup rev 1.29 (requested by martin in ticket #257)
Fix a comment.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon May 3 13:39:50 2004 UTC (22 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
Fix a comment.
Approved by Andrew Brown.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Apr 23 02:58:29 2004 UTC (22 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4
lines
s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
Revision 1.24.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:32:08 2004 UTC (22 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.24.2.2: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.2: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 21 04:27:49 2004 UTC (22 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.1: +229 -96
lines
Pullup rev 1.26 (requested by atatat in ticket #93)
Lots of sysctl descriptions mostly copied from sysctl(3).
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 16 13:25:40 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 8 06:20:29 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +229 -96
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 8 03:49:45 2004 UTC (22 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 8 03:35:10 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:52 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +208 -105
lines
Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Mar 17 10:21:59 2004 UTC (22 years, 8 months ago) by yamt
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -32
lines
- move kern.somaxkva sysctl stuff from init_sysctl.c to uipc_socket.c.
- when changing its value, wakeup sokva waiters.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 21 03:27:57 2004 UTC (22 years, 9 months ago) by atatat
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 19 03:57:56 2004 UTC (22 years, 9 months ago) by atatat
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +22 -27
lines
Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jan 17 03:33:24 2004 UTC (22 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
Avoid dereferencing l...it might be NULL
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Dec 28 22:36:37 2003 UTC (22 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +11 -2
lines
Sysctl functions called for "generic" nodes should forward "query"
requests (where possible), rather than returning errors.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Dec 28 22:24:12 2003 UTC (22 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -4
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 28 22:19:59 2003 UTC (22 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +19 -12
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 28 22:12:00 2003 UTC (22 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -1
lines
RCSid police
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Dec 28 14:39:36 2003 UTC (22 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -2
lines
After changing hostname, adjust hostnamelen.
This closes PR kern/23907.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Dec 26 23:49:39 2003 UTC (22 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +39 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 20 07:33:03 2003 UTC (22 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
update a comment to match with the previous change (rev.1.12).
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Dec 20 07:26:27 2003 UTC (22 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -4
lines
restore functionality to decrease kern.maxvnodes which
has been backed out during sysctl rework.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Dec 12 23:21:44 2003 UTC (22 years, 11 months ago) by simonb
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -6
lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 10 14:16:12 2003 UTC (22 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
Make kern.dump_on_panic writeable again, too
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Dec 9 01:52:07 2003 UTC (22 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 9 01:25:33 2003 UTC (22 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
Make kern.logsigexit writeable again.
Fixes PR kern/23695.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 7 10:33:03 2003 UTC (22 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1
lines
Add missing break.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 7 10:31:32 2003 UTC (22 years, 11 months ago) by he
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1
lines
Also make declaration of sysctl_kern_maxptys() depend on NPTY > 0.
Makes the mvme68k RAMDISK kernel compile again.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 6 21:33:51 2003 UTC (22 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +27 -31
lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 6 20:06:11 2003 UTC (22 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1
lines
Include opt_posix.h for the P1003_1B_SEMAPHORE define.
Include <machine/cpu.h> just to be sure.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Dec 6 09:36:34 2003 UTC (22 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +19 -4
lines
We can not count CPUs at sysctl initialization time - so don't make
hw.ncpu an immediate value.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Dec 6 02:52:29 2003 UTC (22 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
#include "opt_multiprocessor.h"
This makes hw.ncpu and kern.cp_time work better on those platforms.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:23 2003 UTC (22 years, 11 months ago) by atatat
Branches: 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.
CVSweb <webmaster@jp.NetBSD.org>