summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2002-06-03compatiblity -> compatibilityTheo de Raadt
decriptor -> descriptor authentciated -> authenticated transmition -> transmission
2002-05-27if_attach() gets called before domaininit(). scan all interfaces for if_afdataJun-ichiro itojun Hagino
initialization after domaininit().
2002-05-24protect more of the bookkeeping variables with splbio.Artur Grabowski
2002-05-24typoArtur Grabowski
2002-05-24cluster_callback is a b_iodone handler. Since it calls functionsArtur Grabowski
that assume splbio, splassert(IPL_BIO) in it.
2002-05-23In sys_accept don't FILE_SET_MATURE the file if we got an error and we've ↵Artur Grabowski
freed it. Noticed by enami@netbsd in a recent discussion on tech-kern@netbsd. Thanks to miod@ for helping me understand my code and realize that what the discussion was originally about (a diff by itojun@) didn't apply to us because I tweaked the semantics of closef() to solve the problem automagically for us (and I forgot about it). miod@ ok.
2002-05-23Fix a comment I missed when renaming FILE_UNUSE to FRELE.Artur Grabowski
2002-05-22some b_iodone handlers and vwakeup require splbio.Artur Grabowski
Mark biodone with splassert(IPL_BIO).
2002-05-20Add one more level to the kern.splassert sysctl.Artur Grabowski
0 - do nothing. 1 - small message on error (function name and the levels). 2 - big message on error (function name, levels and traceback (if possible)). 3 - panic. After suggestion from deraadt@.
2002-05-20make it compile w/ debugging onMichael Shalayeff
2002-05-18dump the stack on splassert failure (XXX - need some kind ofArtur Grabowski
rate limiting).
2002-05-18If ddb.panic is disabled, print the stack trace before dumping.Artur Grabowski
2002-05-16systrace facility, used to enforce and generate policies for system callsNiels Provos
okay deraadt@
2002-05-16sprinkle some splassert(IPL_BIO) in some functions that are commented as ↵Artur Grabowski
"should be called at splbio()"
2002-05-15Implement splassert() for sparc - a tool for finding problems related toArtur Grabowski
spl handling (already found 3 problems). Man page in a few seconds. deraadt@ ok.
2002-05-11track egid/rgid on bound/connected sockets too (pf will use this)Theo de Raadt
2002-05-08A process can always signal itself--no need to restrict signals even ifTodd C. Miller
it is setugid. deraadt@ ok
2002-05-02In UKC, when adding a fixed unit device (foo0) by cloning a star deviceMiod Vallat
(foo*), be sure to update all cf_starunit1 fields for related star devices, so that they will not compete for the foo0 probe. This fixes the new sparc bsd.scsi3 behaviour. Tested by brad@ and myself, ok maja@
2002-05-02Cause the exec to fail if we are unable to allocate resources when dup'ingTodd C. Miller
/dev/null to fd's 0-2 for a setuid program; deraadt@ and art@ OK
2002-04-27Comment biodone as "must be called at splbio".Artur Grabowski
It calls vwakeup and vwakeup is marked as "must be at splbio".
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-04-18Provide the correct signal number to the ktrace PSIG information insteadMiod Vallat
of an uninitialized variable. millert@ ok
2002-04-10don't attach to system processes.Federico G. Schwindt
art@ niklas@ markus@ millert@ deraadt@ ok.
2002-03-21Two patches from NetBSD:Jason Wright
- extent_alloc_subregion shouldn't allocate a region pasts the end of subregion. - extent_alloc_subregion1(): when a candidate region doesn't fit after being rounded up to respect boundary limits, adjust newstart and last before skiping to the next region. Otherwise we may check the same candidate region against the start of the next region, no the one immediatly following the hole, leading to corrupted map.
2002-03-17Add a DIAGNOSTIC check for when both LK_CANRECURSE andArtur Grabowski
LK_RECURSEFAIL are set.
2002-03-17Since LK_RECURSEFAIL and LK_CANRECURSE contradict each otherArtur Grabowski
(although they are not opposites), avoid setting LK_CANRECURSE if LK_RECURSEFAIL is set in the caller.
2002-03-15Kill #if __STDC__ used to do K&R vs. ANSI varargs/stdarg; just do thingsTodd C. Miller
the ANSI way.
2002-03-14Don't put a space between a function name and its args in the prototype.Todd C. Miller
2002-03-14Don't put a tab between a function and its argumentsTodd C. Miller
2002-03-14remove ambiguity in version,ostype,osversion,osrelease and their constanity, ↵Michael Shalayeff
they are and declarre 'em accordingly also removing private externies of those
2002-03-14version[] is externed in the systm.h and give it some constMichael Shalayeff
2002-03-14invalid argv causes efault, not einval; form daniel@lucq.orgMichael Shalayeff
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14generate std ANSI protos, not __P onesTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-14Regen after syscall changes (option PTRACE)Miod Vallat
2002-03-14Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inMiod Vallat
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
2002-03-14Whoops. missing simple_unlock.Artur Grabowski
From thorpej@netbsd.org
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
2002-03-12Change the PT_IO interfaces like discussed onArtur Grabowski
the bsd-api-discuss list.
2002-03-12In the PT_STEP case, first set the new pc, then arrangeArtur Grabowski
for the single-step. This can slightly break the error handling when setting the sstep fails, but allows us to emulate single stepping in software on arch that don't have support for that in hardware.
2002-03-11Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.Artur Grabowski
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
2002-03-11Add a more sane API for reading/writing traced process memoryArtur Grabowski
with ptrace - PT_IO. Man page update in a few.
2002-03-08semicolon is not always what it seems, replace w/ a \n in asm labelsMichael Shalayeff
2002-03-01fp doesn't necessarily have to be set when we do the early FRELE.Artur Grabowski
2002-03-01sysctl for cryptodevallowsoft - /dev/crypto will allow the software engineNiels Provos
to be used if there are no hardware cards. mostly for debugging and regression.
2002-02-26fucntion->function.Federico G. Schwindt
2002-02-25Make pool_sethardlimit() check that it doesn't decrease the limit belowDaniel Hartmeier
the current size of the pool. ok art@
2002-02-23sysctl kern.usercryptoTheo de Raadt
2002-02-23Move out draining of the allocator to an own function andArtur Grabowski
let other parts of the kernel call it.