summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-06-14Change return value of getentropy() to int 0 for success. MaximumTheo de Raadt
buffersize is enforced strictly, this supplies sufficient entropy payload to act as seed material. Discourage general use of this API, but lock down this function name as the go-to for userland PRNG seeding. Improve documentation. ok miod matthew
2014-06-13Remove support for "union wait" and WSTOPPED.Matthew Dempsky
union wait has been deprecated since 4.3BSD, and WSTOPPED means something else now in POSIX, that we don't yet support. Original diff by guenther, from 2.5 years ago. Ports tree cleanup and re-testing by naddy. ok deraadt, kettenis
2014-06-13Make run(4) attach to RT5572.Stefan Sperling
Tested with "MAC/BBP RT5592 (rev 0x0222), RF RT5592 (MIMO 2T2R)" device.
2014-06-13regenStefan Sperling
2014-06-13Add USB device ID of Ralink RT5572. Found in a TP-LINK TL-WDN3200 device.Stefan Sperling
2014-06-13Fix broken logic in sgec_rxintr() poorly duplicating some of ether_input()Miod Vallat
checks, causing the rx ring pointer to stall as soon as an irrelevant frame is received when the intergace is in bpf+promiscuous or `all multicast' mode. Problem spotted and tracked down to the use of bpf by sebastia@. Hair pulling by me.
2014-06-13Remove deprecated RFC2292 ancillary data convenience functions.Christopher Zimmermann
They are obsoleted by the RFC3542 api. ok mpi@
2014-06-13syncTheo de Raadt
2014-06-13Add new getentropy() system call. Code and pressure from matthew.Theo de Raadt
I accepted that he's right (again) to seperate this out from heavy sysctl API and this will simply a variety of things. Functionname is not used by anyone in the ports tree, so we guess we can use it. Shocking that no application has a function called this. ok matthew & others who pushed him to start this early on
2014-06-13Instead of updating all the cluster allocation water marks of all theMartin Pieuchot
interfaces when the kernel is livelocked, only do it for the current pool and defer the other updates. This allow us to get rid of an interface list iteration in a critical path. Ridding the libc crank since this change introduce an ABI break. ok claudio@
2014-06-13KASSERT in pipex_ppp_input() fails if a compressed PPP frame is receivedYASUOKA Masahiko
by the pipex session whose mppe is not accepted. Fix ppp_common_input() to not pass such frames to pipex.
2014-06-13Fix KASSERT on pipex_ppp_input(). Must not reached there even if theYASUOKA Masahiko
tunneling protocol is PPPoE.
2014-06-13Fix tcp-mss-adjust of pipex and npppd to update the pointer ofYASUOKA Masahiko
tcp option and check the boundary correctly.
2014-06-13Add support for MAP_INHERIT_ZERO.Matthew Dempsky
This provides a way for a process to designate pages in its address space that should be replaced by fresh, zero-initialized anonymous memory in forked child processes, rather than being copied or shared. ok jmc, kettenis, tedu, deraadt; positive feedback from many more
2014-06-13Fix ptrace() hanging hppa MP systemsTobias Ulmer
Fiddling with uvm, registers and breakpoints requires taking the kernel lock Problem spotted by tedu@ ok kettenis@ deraadt@ miod@
2014-06-12Grab the kernel lock before cleaning up single-step breakpoints. ShouldMark Kettenis
prevent mips64 from hitting the same problem as found by tobiasu@ on hppa. ok miod@
2014-06-11Fix wait4 to not modify status or rusage if we return 0 because ofMatthew Dempsky
WNOHANG, in accordance with POSIX. Additionally, if rusage is requested but the waited-on process did not terminate, return zero bytes instead of kernel stack garbage. ok deraadt, millert
2014-06-11Reject negative file offsets in /dev/ksyms.Matthew Dempsky
ok deraadt, kettenis
2014-06-11Add bounds checks for CTL_DEBUG sysctl variable.Matthew Dempsky
2014-06-11Always create a local route for every configured IPv4 address on theMartin Pieuchot
machine and restore the original behavior of RTM_ADD and RTM_DELETE by always generating one message per locally configured address. Tested by krw@, jca@ and florian@
2014-06-11Flag local routes as such and make them use the highest possibleMartin Pieuchot
priority. Tested by krw@, jca@ and florian@
2014-06-11Create system taskq ("systqmp") which runs without the kernel lock;Bret Lambert
currently unused. ok dlg@ manpage improvement and ok jmc@
2014-06-11em(4) receives jumbos by chaining its MCLBYTES sized descriptorsDavid Gwynne
together, so to receive a full 9000 byte frame, it needs 5 descriptors. its current mclgeti low watermark is 4. it appears that the chip will block if it has rxed a packet into its internal buffers waiting for descriptors. if you're at the lwm, that means you're DoSed. this raises the lwm so we can get at least two jumbos, ie, 10 descriptors. ok deraadt@
2014-06-11Don't map phys pages < 64KB in the resume page table. We stopped doing thisMike Larkin
in the kernel a few months back and there's no reason these pages need to be mapped during unpack either.
2014-06-10KNFMark Kettenis
2014-06-10add ppb to the configs as suggested by kettenis@Jasper Lievisse Adriaanse
tested by jj@
2014-06-10Rearrange the inequality.Brad Smith
Pointed out by LLVM. tftp.c:331:17: error: comparison of unsigned expression < 0 is always false From NetBSD ok miod@
2014-06-10mop up #ifdef _KERNEL goo; ok miodTheo de Raadt
2014-06-09Replace the unmaintainable assembler code responsible for 88100 precise FPUMiod Vallat
fault handling with a C wrapper around the softfloat code, as already done for 88110 kernels. As a bonus, attempting to read or write FPU control registers but fcr62 and fcr63 in userland will now correctly signal an illegal instruction, instead of leaving the destination register unchanged and pretending nothing bad happened. Be sure to rm m88100_fp.d in your kernel compile directory after updating your tree.
2014-06-09Remove redundant regdump() output.Miod Vallat
2014-06-09Remove {amd64,i386}/stand/installboot - we now use usr.sbin/installbootJoel Sing
and these have been unhooked from the build for a while now.
2014-06-09Doh, traps 128 and 129 need to point to sigsys, not unknown_vector.Miod Vallat
2014-06-09More format string fixes (in 88110 code)Miod Vallat
2014-06-09Split the 88100 floating point support code in two files, one for the preciseMiod Vallat
exceptions, one for the imprecise exceptions. No functional change.
2014-06-08check both rsdp checksums in the case of rsdp revision >= 2.Daniel Dickman
ok mlarkin@
2014-06-08Remove an incorrect bzero() that was zeroing theJonathan Gray
size of the pointer instead of the size of the buffer. Removal suggested by deraadt@ as no code uses the buffer after the zeroing.
2014-06-08instead of reading past the end of the sun_fstypes arrayJonathan Gray
assume FS_BSDFFS for partitions 8-15 in extended sun labels as suggested by deraadt@
2014-06-08Use memcpy to copy the sogetopt() SO_SPLICE off_t value, for it may not beMiod Vallat
correctly aligned. Similar in spirit to 1.119.
2014-06-08Stop accepting system calls on trap vectors 128 and 129. Userland has notMiod Vallat
been doing this since almost 1.5 years and there has been the 64-bit time_t bump in between, so no old binary should remain.
2014-06-07In run(4), fix TXWI and RXWI offset calculations for RT5592 devices.Stefan Sperling
Makes RT5592 devices work, except for an 11a scanning issue, according to Brendan MacDonell who submitted this patch on tech@. Thanks! ok claudio@
2014-06-07Modify to ANSI-style function declarations. No binary change.Kenji Aoyama
2014-06-07Document bwi(4) interrupt error flags by using named constantsStefan Sperling
instead of magic numbers. Constants found in Linux brcmsmac. ok claudio@
2014-06-07g/c unused IFT_L2VLAN, ok reyk bluhmHenning Brauer
the #define stays since it's userland visible and who knows what uses it
2014-06-06Allocate the struct itty array in ttystats_init() with M_ZERO.Matthew Dempsky
ok millert
2014-06-05Remove conditional pipeline rewind on 88100, introduced in 1.19 - this seemsMiod Vallat
to create subtle problems, and removing it does not prevent existing signal delivery tests from having the correct behaviour. And this is likely redundant with DAE processing in sigreturn. We should probably rewind if XIP_V is not set, but does this ever happen in real life? To be investigated on a rainy day. This seems to fix spurious signals encountered building libstdc++ and perl.
2014-06-04In fusefs_unmount() we need to send the FBT_DESTROY fusebuf only ifSylvestre Gallon
vflush(9) succeed. Problem reported by Helg Bredow. OK sthen@
2014-06-04Clearing the data toggle bit only makes sense for endpoints that use it,Martin Pieuchot
since this function is optional get rid of the no-op ones. ok ratchov@
2014-06-04Only use ifa_ifwithaddr() to check if the binding address is on theMartin Pieuchot
system. Yes, this is ugly for the moment because OpenBSD prevents you from binding a tcp socket to broadcast address and checking for a broadcast address is... funny! If you've ever wondered why would lead people to write: ina.s_addr != ia->ia_addr.sin_addr.s_addr instead of: ina.s_addr == ia->ia_broadaddr.sin_addr.s_addr Well this is because all the IPv4 addresses belonging to your lo(4) interfaces match the second idiom. Hopefully we'll get rid of this hack soon. ok jca@, mikeb@
2014-06-04Use C99 initializers for pipe and bus methods.Martin Pieuchot
Apart from improving readability, this will help us reduce the number of no-op functions now that some of them are optional. ok ratchov@
2014-06-04Stop using a global variable to do address lookups.Martin Pieuchot
ok blambert@, mikeb@