summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2006-06-10Add functions to decode date and time strings that make sure no invalidMarc Balmer
information can be passed.
2006-06-10allow SO_SNDBUF and SO_RECVBUF setsockopts on existing sockets to succeedBob Beck
for any value that is not an increase in size when we are under mbuf pressure, rather than only succeeding when setting the value to the 4k minimum. ok markus@, henning@
2006-06-09syncTheo de Raadt
2006-06-09spacing that made a grep look very suspiciousTheo de Raadt
2006-06-07killproc() is orphaned, so kill it; ok deraadt@Miod Vallat
2006-06-05various cleanups; ok mbalmerTheo de Raadt
2006-06-04In extent_destroy(), only remove the extent from the global extent list ifMiod Vallat
the list is really used, i.e. if option DIAGNOSTIC || option DDB.
2006-06-04Missing RCS IdMiod Vallat
2006-06-04Allow any user to request the current adjustment; ok henning@ deraadt@Otto Moerbeek
2006-06-04- ntpd no longer needs the NTP identifier as part of a timedelta sensorMarc Balmer
description. - create the timedelta sensors as early as possible, but mark them invalid as long as there is no real data. - update docs accordingly
2006-06-02Add a clonable devices implementation. Hacked along with thib@, inputPedro Martelletto
from krw@ and toby@, subliminal prodding from dlg@, okay deraadt@.
2006-06-02remove upgrade/downgrade, they are useless.Ted Unangst
rework the main entry points to just use rw_test_and_set. rework exit paths to be more like enter paths. add sleepfail so more lockmgr can be replaced. some from art, ok sturm
2006-06-01the bit shifted should be a type at least as wide as the comparison (u_quad_t)Jason Wright
2006-06-01Avoid buffer overflow in case of oversized input.Chris Kuethe
ok mbalmber
2006-06-01mbalmer says the swiss have learned how to swim.Chris Kuethe
- fixed debug printfs - cope with nmea0183 or nmea 2.3 - allow multiple receivers at the same time Hacked in the park in downtown... "commit this right away" mbalmer
2006-06-01Add basic NMEA0183 support as a tty line discipline. The line disciplineMarc Balmer
decodes NMEA messages completely transparent to userland applications, i.e. userland can still use the NMEA stream and talk to the device. If data is received, a timedelta sensor suitable for ntpd is created. The timestamp is not very precise at the moment, use of this is experimental at best. "get it in or we see how well the swiss people can swim" deraadt@
2006-05-29extend %b support so that it will allow for arguments with more than 32 bits.Jason Wright
2006-05-28back out my last commit. art pointed out that sysctl cannot sleep whenDavid Gwynne
copying out to userland, so my fix was useless bloat that didnt really do anything. the problem instead appears to be a use after free in a driver rather than bad interactions with sysctl.
2006-05-28Remove device id from hotplug events.Michael Knudsen
ok henning
2006-05-28more fallout from the sensors: Every single ramdisk got broken.Theo de Raadt
2006-05-28Spacing in vfs_sysctl()Pedro Martelletto
2006-05-28intrducing device type DV_SENSOR turned out to be a bad idea as itHenning Brauer
affects way more than just hotplug messages. remove DV_SENSOR and use DV_DULL for the moment. proper solution coming. discussed with deraadt mk jason
2006-05-28need <sys/device.h> or it doesn't compile on sparc64Jason Wright
2006-05-28Include device id in hotplug events. This will be used by ntpd to checkMichael Knudsen
sensors on attach/detach. hotplugd changes following in a minute. ok henning.
2006-05-28unbreak, of course this needs to included sys/hotplug.h tooHenning Brauer
2006-05-27Make sensor add/remove create hotplug events (after much prodding from ↵Michael Knudsen
henning). Idea from mbalmer. 'in it goes!' deraadt.
2006-05-27remove useless error check and irritating commentNikolay Sturm
ok pedro
2006-05-20It is possible for a sensor to be detached and freed while it is beingDavid Gwynne
copied out to userland. If this happens we get a use after free and things blow up. Prevent this by making a local copy of the sensor that cannot be freed elsewhere in the kernel and copying that out instead. found by mbalmer@ ok deraadt@ krw@
2006-05-20add show all pools command listing all pools as vmstat -m does; miod@ okMichael Shalayeff
2006-05-18paramter -> parameterMiod Vallat
2006-05-17cf_unit should have a value between 0 and cd_ndevs. So set cf_unit to 0 whenKenneth R Westerback
cd_ndevs is set to 0. "No kidding!" deraadt@ "Seems to make sense to me." beck@ "Seems right." miod@
2006-05-17Don't cast malloc()Pedro Martelletto
2006-05-17Detach children devices in reverse order. This gives better display, andKenneth R Westerback
allows cf_unit to be decremented correctly. 'put it in' deraadt@ "i think it's good' tedu@
2006-05-17change ktr_len to size_t. put ktr_type after comm for better alignmentTed Unangst
ok deraadt
2006-05-14When assigning a unit number, treat running off the end of theKenneth R Westerback
cd_devs[] array the same as finding a NULL entry. Fixes inconsistant assignment of unit numbers to media slots on the Neodio 8-in-1 USB card reader donated by Manuel Pata. Previously the unit numbers would vary depending on whether it had attached an even or odd number of times. 'reads ok' marco@ ok miod@
2006-05-11One more (!foo & BAR) bogus test.Miod Vallat
2006-05-09Administrative changes for aviion, ok deraadt@Miod Vallat
2006-05-08Add smbios support for i386 and amd64, fix ipmi to use this new functionallity,Gordon Willem Klok
hook up some sysctls to add system vendor/product/version and UUID reporting. "get it in" deraadt@
2006-05-07add a name to rwlock so that we can tell where procs are getting stuckTed Unangst
without breaking into ddb. doubles the size of rwlock [1], but moving forward this really helps. ok/tested pedro fgsch millert krw [1 - next person to add a field to this struct gets whipped with a wet noodle]
2006-05-07remove drain hooks from pool.Ted Unangst
1. drain hooks and lists of allocators make the code complicated 2. the only hooks in the system are the mbuf reclaim routines 3. if reclaim is actually able to put a meaningful amount of memory back in the system, i think something else is dicked up. ie, if reclaiming your ip fragment buffers makes the difference thrashing swap and not, your system is in a load of trouble. 4. it's a scary amount of code running with very weird spl requirements and i'd say it's pretty much totally untested. raise your hand if your router is running at the edge of swap. 5. the reclaim stuff goes back to when mbufs lived in a tiny vm_map and you could run out of va. that's very unlikely (like impossible) now. ok/tested pedro krw sturm
2006-05-07forgot to remove this sentence from the commentNikolay Sturm
ok pedro
2006-05-06initialize the propolice cookie more carefully so -fstack-protector-allTheo de Raadt
will work; ok miod
2006-05-01Move vn_isunder() to vfs_vnops.c, that's the place for vn_* functionsPedro Martelletto
2006-05-01Rename functions and move prototypes aroundPedro Martelletto
2006-05-01Make static functions global so DDB can see themPedro Martelletto
2006-04-30Backout last commit, it makes us crash when a ptraced program forks.Mark Kettenis
2006-04-30remove the simplelock argument from vfs_busy() which is currently notNikolay Sturm
used and will never be used this way in VFS requested by and ok pedro, ok krw, biorn
2006-04-30Prune remaining of the code, no binary changePedro Martelletto
2006-04-30Prune getcwd_common() and vn_isunder(), no binary changePedro Martelletto
2006-04-30Prune proc_isunder() and sys___getcwd(), no binary changePedro Martelletto