summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2014-06-04Properly compare endpoint addresses: ignore the direction bit whichAlexandre Ratchov
is not part of the address. From Remco <remco at d-compu.dyndns.org>, thanks! ok mpi@
2014-06-04While it may be smart to use the radix tree for exports it is not OK toClaudio Jeker
use the domain specific tree initialisation method for this since that one is multipath enabled and assumes that the radix node is part of a struct rtentry. This code uses a different struct and so the multipath modifies wrong fields and breaks stuff in mysterious ways. Since we only support AF_INET here anyway simplify the code and only have one radix_node_head pointer instead of AF_MAX ones. Fixes NFS server issues reported by rpe@, OK rpe@, guenther@, sthen@
2014-06-03Fix sentinel style.Kenji Aoyama
ok miod@
2014-06-03Make zyd(4) compile with ZYD_DEBUG.Stefan Sperling
ok krw@ kettenis@ mpi@
2014-06-03Fix an off-by-one in zyd_rxeof().Stefan Sperling
ok krw@ kettenis@ mpi@
2014-06-03Fix zyd(4)'s frame length adjustment in RX path. Instead of snipping offStefan Sperling
HW-specific data and CRC trailer as intended, the driver was telling the net80211 layer frames were longer than they actually are. Math is hard. ok krw@ kettenis@ mpi@
2014-06-03Do not include <sys/malloc.h> where it is not needed.Martin Pieuchot
2014-06-03Use a proper compiler barrier; just having the inline asm for the "sync"Mark Kettenis
instruction depend on ci->ci_cpl makes the compiler generate strange code and might not be enough to stop the compiler moving instructions around. ok jsing@
2014-06-03Better comment for `faulty address'.Kenji Aoyama
2014-06-02Apply the ``make sure sigcontext does not overlap pending DAE addresses''Miod Vallat
logic in the dedicated signal stack case, too. Also, every time the sigcontext position is recomputed by the above logic, recheck the DAE addresses from the beginning, in case a formerly avoided address now risks being overwritten.
2014-06-02Bump DFLSSIZ to 2MB to match most of the other platforms.Brad Smith
ok miod@
2014-06-02Simply use ifa_ifwithaddr() to check if the binding address is on theMartin Pieuchot
system. This function checks for unicast and broadcast addresses, so there is no need to do two lookups instead of one. Inputs & ok jca@, ok mikeb@
2014-06-01Take subsequent stack alignment into account in local_stack_frame() whenMiod Vallat
making sure the sigcontext will not overlap pending DAE accesses. Fixes sporadic sys/kern/signal/earlysig regress failure.
2014-06-01Remove real mode VGA repost option. It was used by nobody, and even if itMike Larkin
were to be enabled, it had a bug that prevented it from working anyway. ok deraadt@, kettenis@
2014-05-31Use calloc to make sure the correct size is zeroed; Benjamin BaierMiod Vallat
2014-05-31Reduce MAXSSIZ to 32MB to match all other platforms; noticed by tobiasu@Miod Vallat
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-31Unbreak RTM_CHANGE. Unlike RTM_LOCK or RTM_GET it is OK to pass in aClaudio Jeker
new gateway for RTM_CHANGE if the route is not a multipath route. Fixes issues found by benno@, OK benno@