summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2005-04-21Correctly handle allocations of size 1 at an extent boundary; from NetBSD.Miod Vallat
2005-04-21Make the non-_KERNEL compilation usable again, in order to add a regress test.Miod Vallat
2005-04-21unused variable n; ok cloderTheo de Raadt
2005-04-20knfTheo de Raadt
2005-04-16Remove regs and fpregs pseudo-files from procfs.Mark Kettenis
ok deraadt@, miod@
2005-04-14Try to start log message buffer on a new line. Helps install scripts avoidKenneth R Westerback
detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@.
2005-04-11pull in new MD STACKGAP_RANDOMTheo de Raadt
2005-04-03Implemente PT_[GS]ETXMMREGS ptrace(2) requests on i386.Mark Kettenis
ok deraadt@
2005-03-29Bring in UDF support from FreeBSD, disabled for now.Pedro Martelletto
2005-03-24always good to check for invalid values. ok marius pedroTed Unangst
2005-03-15revise lockf limit policy. after exceeding "soft limit", start enforcingTed Unangst
a hard limit of 2x. add a comment to this effect. reviewed by miod
2005-03-10split out uidinfo from kern_proc.c private, use it to store lock count,Ted Unangst
restrict lock count per uid to a global limit, add sysctl to adjust limit. this prevents a user from creating too many locks. problem noticed by devon o'dell. ok deraadt miod pedro
2005-03-09Fail exec for disabled compat with EPERM rather than ENOEXEC.Miod Vallat
ok deraadt@ mickey@ millert@
2005-03-04Fix handling of names bigger than NCHNAMLEN in cache_enter(), okay tedu@Pedro Martelletto
2005-02-24fix pr4036, don't set p2->p_cpu to nullTed Unangst
ok deraadt miod markus
2005-01-28When setting kern.tty.maxptys, store the old value in oldp, notTodd C. Miller
random stack garbage. Rename DEFAULT_NPTYS and DEFAULT_MAXPTYS to NPTY_MIN and NPTY_MAX to better match their function and don't allow setting kern.tty.maxptys > NPTY_MAX.
2005-01-14First step in Bluetooth protocol stack support.Alexander Yurchenko
The code is adopted from the FreeBSD netgraph-based Bluetooth implementation by Maksim Yevmenkin <m_evmenkin@yahoo.com> but all netgraph glue was replaced with usual BSD network stack hooks. This is a work in progress. Only HCI layer works for now, L2CAP and RFCOMM are on the way. Help in testing from many, ok markus@.
2005-01-10change vget() to only put a vnode back on the free lists if it actuallyPedro Martelletto
was there. should fix a (rare) corner case introduced by my last commit. ok tedu@, testing by joris, moritz@, danh@, otto@ and krw@. many thanks.
2005-01-012005Michael Shalayeff
2004-12-31sprinkle some more list macros in herePedro Martelletto
2004-12-31when releasing a vnode, make it inactive before sticking it to one ofPedro Martelletto
the free lists. should fix some races on filesystems that don't have locks, such as nfs. also, it allows for a more straightforward way of releasing vnodes (nodes that are going to be recycled don't have to be moved to the head of the list). tested by many, thanks. ok tedu@ deraadt@
2004-12-30Import M_CANFAIL support from NetBSD, removes a nasty panic during low-mem ↵Niklas Hallqvist
scenarios, instead generating an ENOMEM backfeed, ok tedu@, prodded by many
2004-12-28when panicing from timeout_add being < 0, print the value; ok miodTheo de Raadt
2004-12-28clean dirty accident by miodTheo de Raadt
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-24Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andMiod Vallat
HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
2004-12-19Set atime and mtime when giving out a new pty. With help from tholo@Todd C. Miller
and OK tedu@
2004-12-12simplify slightly, kill lvalue weirdness that's not ANSI C.Marc Espie
okay nordin@
2004-12-11match comments with reality and use 'null' for pointers in incore()Pedro Martelletto
2004-12-09minor spacing/styling nitsPedro Martelletto
2004-12-08Have kthread_create_deferred() act immediately once kthread_run_deferred_queue()Miod Vallat
has been invoked; forgotten part of the ``create init earlier'' changes. From NetBSD as well. ok deraadt@ dlg@
2004-12-07* add a missing vput() if VOP_SETATTR() fails.Patrick Latifi
ok tedu pedro millert
2004-12-05less then -> less thanJonathan Gray
2004-11-30kill breada(), from Sven Dehmlow. ok tedu@ millert@Pedro Martelletto
2004-11-29Don't use seltrue() in poll ops since it requires v_rdev dereferencingAlexander Yurchenko
which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
2004-11-28mountroothooks are called after the root filesystem is mounted.Theo de Raadt
2004-11-27introduce pffinddomain(), to find a domain by family.Patrick Latifi
while here, fix some spacing, ansi, de-register, etc. mostly from netbsd tested & ok otto millert
2004-11-26Kill __HAVE_EVCOUNT, now that all architectures provide them.Miod Vallat
2004-11-25remove special handling of PF_KEY in net_sysctl; ok deraadtMarkus Friedl
2004-11-23Create the init process earlier, before the root filesystem is mounted,Miod Vallat
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
2004-11-23fix typo in commentHans-Joerg Hoexer
ok deraadt@ markus@
2004-11-22remove netiso since it doesn't exist anymorePatrick Latifi
ok otto henning
2004-11-18handle SONPROC; ok aaron, deraadt, krwMarkus Friedl
2004-11-18enable receive() accounting and use uio_procp for send() accounting, tooMarkus Friedl
ok deraadt, jared, djm
2004-11-10Diff from art@:Alexander Yurchenko
Update ticks in timeout_hardclock_update to avoid errors in hardclock (this is the third time we mess up here). ticks is only used for timeouts anyway. At the same protect updating ticks with timeout_mutex and be slightly more paranoid in timeout_hardclock_update. ok tdeval@ miod@
2004-11-01englishPedro Martelletto
2004-11-01additional DIAGNOSTIC, checking for proc in lockmgr when requiredmarius eriksen
ok pedro@ tedu@
2004-11-01check for malloc() in bufq_default_alloc(), ok tedu@Pedro Martelletto
2004-10-29silly typo...Pedro Martelletto
2004-10-26stylingPedro Martelletto