summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-06-06Update panic strings, pipex no longer use rn_inithead0().Martin Pieuchot
2017-06-06Do not rely on <net/rtable.h> beeing included by other headers.Martin Pieuchot
Fix build without PF, PIPEX nor IPSEC.
2017-06-06Fix build without PF.Martin Pieuchot
2017-06-06correct the depend list of a target introduced in rev 1.9Jonathan Gray
from deraadt@
2017-06-06Regen.Kevin Lo
2017-06-06Sort DLINK section and add USB device ID of D-Link DWA-131 rev E1.Kevin Lo
ok stsp@
2017-06-05- let's add PF_LOCK()Alexandr Nedvedicky
to enable PF_LOCK(), you must add 'option WITH_PF_LOCK' to your kernel configuration. The code does not do much currently it's just the very small step towards MP. O.K. henning@, mikeb@, mpi@
2017-06-05Split early startup code out of locore.S into locore0.S. Adjust linkTheo de Raadt
run so that this locore0.o is always at the start of the executable. But randomize the link order of all other .o files in the kernel, so that their exec/rodata/data/bss segments land all over the place. The bootstrap code will need smashing because it is mapped by BLTB, but this is a bit involved so not done yet. As a result, the internal layout of every newly build bsd kernel is different from past kernels. Internal relative offsets are not known to an outside attacker. The only known offsets are in the startup code (which will be gone when it is smashed). Ramdisk kernels cannot be compiled like this, because they are gzip'd. When the internal pointer references change, the compression dictionary bloats and results in poorer compression.
2017-06-05Increase kernel size, by pushing rodata 1MB forward, from 5MB to 6MB.Theo de Raadt
This seems to satisfy the BTLB granularity. Good enough for now. ok kettenis
2017-06-05Split early startup code out of locore.S into locore0.S. Adjust linkTheo de Raadt
run so that this locore0.o is always at the start of the executable. But randomize the link order of all other .o files in the kernel, so that their exec/rodata/data/bss segments land all over the place. Late during kernel boot, smash the startup code with traps so that it does not point to the other randomly placed code. It has be smashed, because alpha (insecurely in my view) runs in the KSEG0 space. As a result, the internal layout of every newly build bsd kernel is different from past kernels. Internal relative offsets are not known to an outside attacker. The only known offsets are in the startup code, which is gone. Ramdisk kernels cannot be compiled like this, because they are gzip'd. When the internal pointer references change, the compression dictionary bloats and results in poorer compression.
2017-06-05include machine/param.h before machine.asm.h because uhm alpha.Theo de Raadt
2017-06-05track permissions of original fileTheo de Raadt
2017-06-05use same idiom as other MakefilesTheo de Raadt
2017-06-05Randomize the link order of .o files in the kernel on octeon.Visa Hankala
Unlike on some other architectures, it is not possible to unmap the early boot code. Instead, the code is smashed during boot. Input from deraadt@
2017-06-05Avoid use of _C_LABEL, since it is not portable to all our architectures.Theo de Raadt
And anyways, everything is ELF now.
2017-06-05The arm* architectures edit the ld.script, creating a copy in the compileTheo de Raadt
directories. Copy it in the same way on other architectures, for the same effect. Something upcoming will want that file there anyways.
2017-06-05use byte swapping loads and stores.David Gwynne
shrinks the code a bit on sparc64. ok jmatthew@
2017-06-04Catch up with changes made on amd64 (kettenis@):Christian Weisgerber
Generating mixed 16-bit/32-bit/64-bit code with clang's integrated assembler is a bit tricky. It supports the .code16, .code32 and .code64 directives. But it doesn't know about the data16/data32 and addr16/addr32 instruction prefixes. Instead it tries to determine those from the instruction opcode. It mostly succeeds, but there are a couple of corner cases where clang will generate the "addr32" form where gas generates the "addr16" form in .code16 segments. That should be no problem (and just waste a couple of bytes), but it makes comparing the generated code a bit difficult. Allow the trampoline code to be compiled with both. For clang #define away the addr32 prefix and avoid using the data32 prefix by using a mnemonic that explicitly encodes the size of the operand. Add a few addr32 prefixes in .code16 blocks to reduce the differences between code generated by clang and gas. ok deraadt@
2017-06-04fix a bungled logical/bitwise expression pointed out by clang; ok deraadt@Christian Weisgerber
2017-06-04Remove unused function, as pointed out by clang. ok deraadt@ kettenis@Christian Weisgerber
2017-06-04Create gap.* with umask 007 instead of 077 to make kernel builds afterTheo Buehler
make release work without prior cleanup. discussed with deraadt
2017-06-04Switch the radeondrm(4) driver over to TTM using the new DRM VMA manager.Mark Kettenis
ok jsg@
2017-06-04Remove comment that no longer is true. esym is not written by ourPatrick Wildt
bootloader anymore, so it doesn't matter where it is stored. While there do some whitespace cleanup.
2017-06-04Split early startup code out of locore.S into locore0.S. Adjust linkPatrick Wildt
run so that this locore0.o is always at the start of the executable. But randomize the link order of all other .o files in the kernel, so that their exec/rodata/data/bss segments land all over the place. Late during kernel boot, unmap the early startup code. As a result, the internal layout of every newly build bsd kernel is different from past kernels. Internal relative offsets are not known to an outside attacker. The only known offsets are in the startup code, which has been unmapped. Ramdisk kernels cannot be compiled like this, because they are gzip'd. When the internal pointer references change, the compression dictionary bloats and results in poorer compression. With guidance and ok deraadt@
2017-06-04Switch the TTM code over to the generic DRM VMA manager.Mark Kettenis
ok jsg@
2017-06-04Don't need to provide a padbyte value for .bss, it will always be 0Theo de Raadt
pointed out by kettenis
2017-06-04Sync with current NetBSD/luna68k code.Kenji Aoyama
2017-06-04Add sizes for free for the RSN IEs. Rewrite ieee80211_save_ie() slightlyTheo Buehler
to make it more readable. help, many explanations and ok stsp
2017-06-04Re-arrange struct bus_dmamap membersStefan Fritsch
This reduces holes/padding and makes the struct smaller by 8 bytes. ok kettenis@
2017-06-04update link to Ken Kato's vmware backdoor protocol documentationJonathan Matthew
from Seth Jackson
2017-06-04use htolem32 and lemtoh32 instead of htole32 and letoh32.David Gwynne
saves about half a k on sparc64.
2017-06-03Create gap.S and gap.o with umask 077. Create lorder and bsd* with umask 007.Theo de Raadt
Prying eyes cannot look at the kernels in the compile directory. ok tb rpe, kernel developers seem unimpacted
2017-06-03".section .bss" is portable to more platforms than plain ".bss"Theo de Raadt
2017-06-03use .balign instead of .align, it is portable to more architecturesTheo de Raadt
discussed with patrick
2017-06-03Add a few sizes to free().Theo Buehler
Input, help & ok stsp
2017-06-03Add missing NET_LOCK().Martin Pieuchot
Found by jmc@
2017-06-03Explicitly zero out the wepseed for TKIP and WEP.Theo Buehler
ok stsp
2017-06-03vioblk/virtio: Re-arrange some struct membersStefan Fritsch
This reduces holes/padding and makes the structs smaller.
2017-06-03Avoid printing garbage when aborting a program that tries to use aTheo Buehler
prohibited sysctl. ok deraadt
2017-06-02Perform grant table page allocation outside of the table mutexMike Belopuhov
witness(4) has found that km_alloc will trigger an rw_enter via uvm_map and vm_map_lock. While rw_enter is called with RW_SLEEPFAIL, there's also an msleep in there, so it's easier to avoid getting in the middle of that.
2017-06-02regenMark Kettenis
2017-06-02Intel HD Graphics 510.Mark Kettenis
2017-06-02Scale the missed beacon counter threshold to the AP's beacon interval.Stefan Sperling
This should make fading APs time out consistently regardless of what the beacon interval is set to (range is 1 to 2^16 TU, though in practice 100 TU seems to be a common value). Print the beacon interval and missed beacon counter threshold to dmesg if the DEBUG flag was set on the wireless interface with ifconfig(8). This should help with diagnosing any issues that pop up. Requested and diff eye-balled by kettenis@ help & ok tb@ phessler@
2017-06-02Remove a bogus run_read() call about getting MAC version.Kevin Lo
ok stsp@
2017-06-02typo; meant to say locore0.STheo de Raadt
2017-06-02When iwm(4) firmware reports missed beacons, send a probe request onlyStefan Sperling
if ic_mgt_timer indicates that we're not already waiting for a response. Fixes a flood of probe requests sent out while the interrupt kept firing. Also, byteswap the missed beacon counter value when reading it. ok mpi@
2017-06-02When iwn(4) firmware reports missed beacons, send a probe request onlyStefan Sperling
if ic_mgt_timer indicates that we're not already waiting for a response. Fixes a flood of probe requests sent out while the interrupt kept firing. Also, read the missed beacon counter value after DMA sync. ok mpi@
2017-06-02Attach the xhci(4) FDT driver to the generic-xhci compatible as well.Patrick Wildt
2017-06-02handle 64bit dva in the tx path as well as the rx path.David Gwynne
2017-06-02only update the tx descriptors high address if it changes.David Gwynne
this should effectively double (or restore?) the number of packets that can be fit on the tx ring. tested on an od1000.