summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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
2014-11-14move the slowdown back up. it needs to take place after the allocated pageTed Unangst
has been added to the pool, else it doesn't help because the memory isn't available. lost in locking rework. tested blambert sthen
2014-11-13sizes for simple frees. new diff without the bug spotted by deraadtTed Unangst
2014-11-13bzero -> memsetTed Unangst
2014-11-12take a few more ticks to actually throttle down. hopefully helps inTed Unangst
situations where e.g. web browsing is cpu intense but intermittently idle. subject to further refinement and tuning.
2014-11-12Improve performance of an internal loop by saving up on branchingMike Belopuhov
Pointed out by John-Mark Gurney <jmg at funkthat ! com>, thanks!
2014-11-12Remove SIOCSIFMTU handling and misuse of if_mtu values for MRUMike Belopuhov
Since there's now no way to select maximum receive unit size the hardware is programmed to accept frame sizes up to 9216 which is now the maximum (down from 15.5K since this is supposed to work in all advanced configurations and gives slightly better flow control watermark ranges) and split all frames larger 2K into multiple fragments (code was already there but wasn't enabled). Tested on 82599 (SFP+) and X540 (10GBaseT). With input from dlg@.
2014-11-11Do not held the kernel lock when calling hardclock() and statclock().Martin Pieuchot
This is not necessary, as confirmed by tedu@ and kettenis@. Solve the major contention problem seen on my Dual G5. Reduce the build time of a kernel with two jobs from 5h+ to 18min and expose more easily pmap/memroy corruptions 8) ok kettenis@
2014-11-11When a bus is explored, do not probe the ports which status hasn'tMartin Pieuchot
changed. This saves a lot of I/O when attaching/detaching devices and might help with some timing related problems. Has been in snap for ten days, committing now so that people testing xhci(4) test the same thing w/ snapshots and their own kernel.
2014-11-11Local APIC page doesn't need X permissions.Mike Larkin
ok deraadt, guenther
2014-11-11Stop athn(4) from attaching to AR9300 devices for now. There are unresolvedStefan Sperling
bugs that panic the kernel and it's unclear if any such device works at all. Anyone in possession of a working AR9300 device that stops working with this commit please talk to me. I've only seen evidence of this code not working. ok kirby@ mpi@ phessler@ dcoppa@