summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-11-18make pmap_zero_page MP-safe, by using the directmapTheo de Raadt
mpi will investigate speedups after this. ok mpi kettenis
2014-11-18drop "pl" from the pool name and use pool_setlowatMike Belopuhov
2014-11-18DTYPE_CRYPTO is not used anymore; ok guenther (a while ago)Mike Belopuhov
2014-11-18use siphash for key lookups in all the filesystem hashes.David Gwynne
ok deraadt@ tedu@
2014-11-18unifdef SETUIDSCRIPT and FDSCRIPT. we always use them. ok deraadtTed Unangst
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-11-18Reduce scope of iovec variables, use mallocarray, and record size forTed Unangst
free. Change rbuf malloc argument to fullsiz, which then makes clear it's the correct size to pass to free. ok millert
2014-11-18file.h doesn't need to include unistd.hTed Unangst
2014-11-18include unistd.h instead of picking it up accidentally. noted by jsgTed Unangst
2014-11-18Use pa_device to ensure each MAC address of a multi port boardBrad Smith
is unique; as done by hme(4). ok deraadt@
2014-11-18(except for the arm architectures...) unify the way the ld.script isTheo de Raadt
used and depended, mimicking new changes by guenther to amd64.
2014-11-18rename ld.script to same name as other architecturesTheo de Raadt
2014-11-17Pull in the .openbsd.randomdata sections, assigned to both the data andPhilip Guenther
openbsd_randomize segments. While here, make the 'bsd' target depend on the ldscript. problem noted by and ok deraadt@
2014-11-17split the int and long implementations to avoid compiler warnings.David Gwynne
tested by and ok jsg@
2014-11-17Two additional POSIX_MADV_RANDOM conversionsTheo de Raadt
2014-11-17rearrange fields for better packing. reduces size to 256 on amd64.Ted Unangst
ok deraadt
2014-11-17Add quirks for the "Realtek ALC885" found on MacMini3.1, unmutes theLandry Breuil
internal speaker, line input and hp output. Tested on i386/amd64. hints/help & ok ratchov@
2014-11-17Sync our kernel AES code to the one shipped in OpenSSL/LibreSSL.Mike Belopuhov
This includes a commit made by Andy Polyakov <appro at openssl ! org> to the OpenSSL source tree on Wed, 28 Jun 2006 with the following message: "Mitigate cache-collision timing attack on last round." OK naddy, miod
2014-11-17More cases of kernel map entries being created as EXEC by default; notTheo de Raadt
just the base permission but the maxprot as well. ok tedu
2014-11-17There is no reason for uvm_km_alloc1() to allocate kernel memoryTheo de Raadt
that is executable. ok tedu kettenis guenther
2014-11-17instead of PROT_MASK, use PROT_READ | PROT_WRITE | PROT_EXEC toTheo de Raadt
show the maxprot available in obreak mappings. (the default remains PROT_READ | PROT_WRITE, so don't be afraid). ok tedu
2014-11-17apply siphash to the key selection for the ufs inode hash.David Gwynne
ok tedu@
2014-11-17convert a copystr to strlcpy.Ted Unangst
rearrange things in mountswap to delay malloc and always allocate needed size.
2014-11-16Delete a comment that was obsoleted by the switch to UVMPhilip Guenther
vmcmd_map_zero() just returns the result of uvm_map(), so make it a tail call
2014-11-16Two fixes to make Qemu and VMware xHCI implementations work:Martin Pieuchot
1. Always unmask the slot context for the "Set Address" command. 2. Use the right spl when submitting a transfer to prevent from setting up a timer on an already completed xfer. Analyzed with and ok jsg@
2014-11-16remove now unnecessary casts from hash update calls.Ted Unangst
2014-11-16Defining the interface in terms of char * means most callers areTed Unangst
required to cast their pointers, which is ugly and possibly error prone. accidentally casting an int to a pointer, for example, instead of the address of the int. implicit void * casting is safer. This updates the kernel hash interfaces to use void *. Similar changes are possible for userland. I think it's safe, but there may be some peculiar source compatbility issues there, so let's just do the kernel first. ok dlg millert
2014-11-16convert to use sha512 for pf iss. ok deraadt dlgTed Unangst
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-16mix the rdomain (rtable?) into the hash for tcp iss generation.David Gwynne
ok phessler@ tedu@
2014-11-16Allow the driver to be able to retrieve the MAC address from the ROMBrad Smith
for NS Saturn based boards. From NetBSD ok deraadt@
2014-11-16Rework the __thrsigdivert (aka sigwait()) handling: instead of interferingPhilip Guenther
in ptsignal(), which broke ptrace() in various circumstances, act more like sigsuspend() by updating the signal mask and picking off waited for signals when one occurs. Don't always restart when an unwaited-for-but-handled signal occurs, as that screws with both timeout calculation and cancellation. main problem noted by jmatthew@ ok tedu@
2014-11-16Add cas(4).Brad Smith
ok deraadt@
2014-11-15Pull in sys/types.h for the necessary typedefsPhilip Guenther
prodded by brad@, ok deraadt@
2014-11-15repair operator precedence in UVM_MAPFLAG() macro; ok teduTheo de Raadt
2014-11-15use siphash in the in_pcb hashing. this mitigates it against floodingDavid Gwynne
attacks. this is a textbook use of siphash. the idea of using siphash for this came from yasuoka-san, but i had the time to do it. he also tested and tweaked this diff. ok yasuoka@ mikeb@
2014-11-15regenBrad Smith
2014-11-15Add Intel QS77 LPC.Brad Smith
2014-11-15wire siphash into the build so in_pcb hashes can use it.David Gwynne
ok yasuoka@ mikeb@
2014-11-15hoist the slowdown handling up to the pool_do_get callers. this letsDavid Gwynne
us handle the slowdown where we already give up pr_mtx and gets rid of an ugly goto. ok tedu@ who i think has more tweaks coming
2014-11-15Fix a mistake in a comment.Doug Hogan
Revert NFS_DIRBLKSIZE back to data. This matches an identical comment in another part of this file.
2014-11-15add sizes for free(ptr, sizeof(*ptr)). use sizeof(*ptr) for malloc sizes.Ted Unangst
2014-11-14prefer sizeof(*ptr) to sizeof(struct) for malloc and freeTed Unangst
2014-11-14simplest free(size)Ted Unangst
2014-11-14bzero -> memsetTed Unangst
2014-11-14enable trunk.Henning Brauer
made possible by the install/upgrade changes by krw and the ifconfig adjustments by me. ok krw reyk
2014-11-14regenMartin Pieuchot
2014-11-14Some BayTrail IDs, including xhci(4), found in inframare's dmesg on bugs@.Martin Pieuchot
2014-11-14implement the atomic_foo things on arm.David Gwynne
testing and ok jsg@
2014-11-14add some more sdtemp devicesJonathan Gray