summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-06cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhmHenning Brauer
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-06allow /31s on broadcast interfaces (eg ethernet) to work as per rfc3021.David Gwynne
the issue in our kernel was the broadcast address calculated on the /31 caused a ton of checks for use of broadcast addresses to kick in and prevent one of the two addresses on the /31 from being used. this diff basically detects if a /31 has been configured and doesnt configure a broadcast address for it, which makes the ips usable for normal traffic. i wrote this so i could interoperate with "carrier" network gear better, and sthen wants it so he can conserve address space use. the further special casing of broadcast address handling was from claudio@ ok claudio@ markus@ sthen@ henning@
2011-07-06so... there is some crazy bug exposed on non-ironlake chips, when theTheo de Raadt
ironlake interrupt handler is changed. some nasty bug lurks in here, and any binary change randomly exposes this and screws up the chip. back this out for now; until it is found. ok oga
2011-07-06Stop using the P_BIGLOCK flag to figure out when we should release theArtur Grabowski
biglock in mi_switch and just check if we're holding the biglock. The idea is that the first entry point into the kernel uses KERNEL_PROC_LOCK and recursive calls use KERNEL_LOCK. This assumption is violated in at least one place and has been causing confusion for lots of people. Initial bug report and analysis from Pedro. kettenis@ beck@ oga@ thib@ dlg@ ok
2011-07-06Oops. I did an oga. Put back important line (set b_bcount) I didn't mean to ↵Kenneth R Westerback
delete.
2011-07-06Add {sc,saa}_{targets,luns} to scsibus_softc and scsibus_attach_args.Matthew Dempsky
These will be used to replace scsi_link's adapter_buswidth and luns fields, but for now we stay compatible with existing SCSI adapter driver conventions while I update them to set the scsibus_attach_args fields directly. ok dlg@
2011-07-06Make alpha consistent with our other architectures by using "longMatthew Dempsky
long" for __off_t. This is a C++ ABI bump, but martynas@ already bumped libstdc++. Discussed and requested by many on icb.
2011-07-06add a couple of fields needed for buffer flipping, and change systat toBob Beck
show useful info in systat io instead of goo
2011-07-06Finalize work on the math library. It's time to do this monsterMartynas Venckus
commit, and deal with problems (if any) in tree. Note that this adds the following functions. Ports with hacks might need adjustments. nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3), atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3), log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3), powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3), floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3), truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3), nexttowardl(3), fmal(3). With this commit, our library implements all functionality required by C99. Documentation bits will follow.
2011-07-05a short note about PR_DEBUGCHKTed Unangst
2011-07-05fix memset sizeof, found by jsg. ok krwTed Unangst
2011-07-05fix bizarre and mostly useless initialization of an ifqueue in BSS thatHenning Brauer
again makes assumptions of the ifqueue internals, ok ryan claudio
2011-07-05Hook unixsock upClaudio Jeker
2011-07-05Regress test for the path length of unix sockets.Claudio Jeker
2011-07-05Enforce that the path to the unix socket fits into struct sockaddr_unClaudio Jeker
and that it is nul terminated. This means the longest path is now 103 char longs. With and OK guenther@
2011-07-05Call bzero(&saa, sizeof(saa)) each time we use saa to attachMatthew Dempsky
something. Doesn't matter right now because scsibus_attach_args only has one field and it's mandatory, but I'm planning to move some more fields from scsi_link to scsibus_attach_args+scsibus_softc. ok dlg@
2011-07-05Explicitly reserve space for special ICMP6 headers in pf_hdrs, likeAlexander Bluhm
it was done for pf_headers in pf.c. ok mcbride@ henning@
2011-07-05Instead of passing the ip header and mbuf to pf_reassemble(), lookupAlexander Bluhm
the header address in the mbuf. ok henning@
2011-07-05Make it possible to pass https:// and file:// (along with ftp:// andAntoine Jacoutot
http://) so that sysmerge(8) can work with URLs we use in the install script. ok sthen@
2011-07-05ansifyDavid Hill
ok claudio@
2011-07-05Garbage collect SDEV_S_WAITING and scsi_link->scsibus now that nothingMatthew Dempsky
needs either of them. ok krw@
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastKenneth R Westerback
place it was missing. Delete now redundant calls to DIOCGDINFO when getting physical disk info in disklabel(8) and fdisk(8). Reminded by a fdisk discussion with Andres Perera on tech@. ok deraadt@
2011-07-05Don't worry about lseek(2)ing past the end of raw disk devices. TheMatthew Dempsky
disk drivers are now smart enough to handle this correctly, as they need to also handle pread(2)/pwrite(2). ok deraadt@, krw@; ok marco@ on an similar, earlier diff
2011-07-05Revert henning's commit-n-run that broke the treePhilip Guenthe
2011-07-05Replace last remaining users of link->scsibus withMatthew Dempsky
link->bus->sc_dev.dv_unit.
2011-07-05fix some memset sizeofs, found by jsg. ok deraadt krwTed Unangst
2011-07-05correct memsets of key contexts which were shorter than they needed to beTheo de Raadt
due to sizeof pointer instead of sizeof of type with tedu; some quibbles spotted by miod, ok tedu miod jsg jakob -- please push this upstream
2011-07-05IFQ_IS_EMPTY instead of fiddling with ifqueue internalsHenning Brauer
isn't it awesome that 5 out of 6 cases of this crap were in the various ppp implementations? ok claudio ryan the 6th to be fixed when we return from MEC
2011-07-052 cases of IFQ_IS_EMPTY instead of mucking with ifqueue internalsHenning Brauer
make sppp_flush use IFQ_PURGE instead of handrolling the same making assumptions about ifqueue internals. ok ryan claudio
2011-07-05Remove a broken optimization found by the new pool_chk code. ItTed Unangst
leaves an empty page in curpage, and this inconsistency slowly spreads until finally one of the other pool checks freaks out. ok art deraadt
2011-07-05ifqueues in BSS don't need NULL init, especially not absolutely incorrectHenning Brauer
ones that make assumptions about ifqueue internals... ok ryan claudio
2011-07-05use IFQ_IS_EMPTY instead of fiddling with ifqueue internals - 3 casesHenning Brauer
why bother with APIs when you can muck with internals directly, it's obvious there'll NEVER be changes, right. ok claudio ryan
2011-07-05fix memcpy sizeof. found by jsg. ok deraadt krw mikebTed Unangst
2011-07-05add missing ifdefs for INET6; diff from form, ok henning, bluhm, claudioMike Belopuhov
2011-07-05Don't derefence the item past the end of the array to figure out ifAriane van der Steldt
the extraction loop should stop. No more 298 pages in 42 segments when asking for only 32 pages in 1 segment. ok oga@
2011-07-05fix an incorrect memset use of sizeofTheo de Raadt
found by jsg, "looks right" tedu jsg
2011-07-05ENOMEM causing EIO errors is bad juju. Softraid crypto did this.Owain Ainsworth
Instead of allocating a crypto op and the optional dma buffer on each and every io, preallocate a list of softraid crypto wus that contain a buffer of the max size we will use (MAXPHYS). since we know the number of openings we have in advance this means that on each io we just pick one, shorten the list of crypto descs, init any values then do the io. ok jsing (who provided many useful comments. he also provided a smarter way of handling the cryptop lists which is not in this diff but will be implemented soonish), marco@. dlg@ pointed out that this should probably use iopools but letting disciplines allocate their own iopool involves more softraid rejigging that will have to be done first. For now this is sufficient.
2011-07-05Fix some awful code in the example, pointed out by millert@.Nicholas Marriott
2011-07-05Add linux_to_native_timespec() for future futex use. Okay tedu@.Paul Irofti
2011-07-05sortMiod Vallat
2011-07-05Don't write /boot to sector 0 on non-floppy devices. Non-floppyKenneth R Westerback
devices must have an OpenBSD MBR partition to install /boot into. But search anything except floppy devices (e.g. vnd) for such a partition. Feedback & ok deraadt@
2011-07-05plug in mmap_write_selfArtur Grabowski
2011-07-05Test for when we're writing to a file from an mmaped area of the file.Artur Grabowski
2011-07-05More non-512-byte sector groundwork. Don't let disklabel hint thatKenneth R Westerback
a ffs frag size can be less than the d_secsize of the disk. Make sure amd64 writedisklabel() puts the disklabel where readdoslabel() will read it. Tweak i386/amd64 installboot/biosboot so sectors are indeed used where sectors are claimed. Lets me fdisk, newfs, mount and installboot onto 2048 and 4096 byte sector devices. Other filesystem utilites will still hold surprises. Note that actually booting from such devices will await BIOSen that acknowledge such devices as bootable. ok guenther@
2011-07-05N: Thou shalt not call hardclock() with biglock held.Owain Ainsworth
i386 disobeys the Nth commandment. Fix this. While here, make i386 and amd64 definitions of iplclock and statclock match. ok art@, kettenis@
2011-07-05Stupid driver makes a copy of struct pci_attach_args. Make sure we clearMark Kettenis
the MSI enabled flag there such that the driver actually pays attention to it. Found out the hard way by Chris Smith on an 82540EM, which defenitely does not like MSI. ok deraadt@
2011-07-05when all you have is a hammer, make it a big one. add more checks to pool_chkTed Unangst
and a pool_init flag to aggressively run pool_chk. ok art deraadt
2011-07-05VFSDEBUG -> VFSLCKDEBUG;Jason McIntyre
2011-07-05from Tim van der Molen:Jason McIntyre
- State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success. - For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. ok millert otto