summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-05-31avoid going outside array boundsJonathan Gray
ok krw@ deraadt@
2017-05-31Add support for Ralink RT5360. From Kevin Lo who tested with aJonathan Gray
D-Link DWA-525 rev A2.
2017-05-31regenJonathan Gray
2017-05-31Add Ralink RT5360. From Kevin Lo.Jonathan Gray
2017-05-31make the AES-XTS mode a little more constant-time, though the AESDamien Miller
implementation that it depends on currently isn't. ok mikeb tom
2017-05-30Allow building the bootstrap with clang:Christian Weisgerber
* skip the integrated assembler for assym.h * use as(1) to build biosboot.S and the various versions of srt0.S ok deraadt@
2017-05-30remove no longer needed splnet/splx.Sebastian Benoit
ok florian@
2017-05-30Use the CD bit (Cursor Disable) in the cursor start register to properlyFrederic Cambus
disable hardware cursor. From NetBSD. OK deraadt@
2017-05-30event injection framework, will be used for other features coming shortlyMike Larkin
ok deraadt
2017-05-30sizes for free()Theo de Raadt
ok henning
2017-05-30remove XXX from the comments marking "holes" in the ioctls. I see veryHenning Brauer
very little value in these comments at all, but the XXX is just wrong and in the way when looking for real XXXs. phessler agrees
2017-05-30g/c DIOCCLRRULECTRSHenning Brauer
kinda deprecated for a decade now, nothing in base uses it, nothing in ports uses it (thanks sthen) ok phessler sashan
2017-05-30SVM: return EIO to vmd to stop the guest when it HLTs with interruptsMike Larkin
disabled (no NMI support yet)
2017-05-30More minor virtio tweaksStefan Fritsch
* add some comments about virtio_enqueue_trim * include mutex.h explicitly * make VIRTIO_DEBUG == 1 less verbose in vioblk ok krw@
2017-05-30Add missing KERNEL_LOCKs to a few error paths.Mike Larkin
2017-05-30Header sys/scanio.h has been deleted, do not include it here.Alexander Bluhm
2017-05-30FPU context save/restore for SVM in vmm(4), matches a previous diffMike Larkin
from a few weeks ago that did the same for Intel/VMX. ok deraadt
2017-05-30Replace nifty DBGPRINT() with a more familiar DPRINTF() and adjustKenneth R Westerback
the formats to add in the __func__ and "\n" being magically added by DBGPRINT(). Fixes a few botches by certain devs who assumed DBGPRINT() must be just like DPRINTF. ok sf@ reyk@ on earlier version
2017-05-30Improve the new ieee80211_{min,max}_rates() APIs and fix regressions.Stefan Sperling
Instead of returning an index into ni_rates, return the RVAL of the basic rate we want to use. This allows a driver to unambiguously map the basic rate to the corresponding hardware-specific rate value, and reduces the possibility of bugs where indices are used with arrays they weren't intended for. Adjust iwn(4) accordingly, and use the lowest instead of the highest basic rate in iwn_tx() to cope better in noisy environments. Fixes association problems on 5GHz reported by tb@
2017-05-30sizes for free()Theo de Raadt
2017-05-30add sizes to free() callsTheo de Raadt
2017-05-30Kill db_sym_t.Martin Pieuchot
ok deraadt@, kettenis@, jasper@
2017-05-30Support for SMAP is pretty small, so don't exclude it from the RAMDISKS.Theo de Raadt
ok jsg visa
2017-05-30getrtable() is now permitted in "stdio". It carries no risk factors.Theo de Raadt
2017-05-30Build amd64 bootstrap with -ffreestanding.Christian Weisgerber
"totally makes sense" kettenis@ ok deraadt@
2017-05-30Remove comments about implementing FIS-based switching with port multipliers,Jonathan Matthew
which we can safely assume isn't going to happen now. No code changes.
2017-05-30Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.Frederic Cambus
Those fonts are not compiled in by default, and are smaller than the smallest font (bold8x16_iso1) we currently include. OK mpi@, deraadt@
2017-05-30print more useful information when an error is returned from uvm_faultMike Larkin
when processing NPT/EPT violations
2017-05-30Statically allocate resource to requests, and only create requestsKenneth R Westerback
that there will be resources for. Protect request list with a mutex. Makes everything much more scsi-like. Fewer splbio() dances. Uses less memory and eliminates superfluous freeing and acquiring of the same resources over and over. ok sf@
2017-05-30move some data tables out of .text and into .rodata where they belongMike Larkin
ok deraadt
2017-05-30Carp balancing ip does not work since there is a mac filter infriehm
ether_input(). Now we use mbuf tags instead of modifying the MAC address. ok mpi@
2017-05-30virtio: Put entries in freelist in reverse orderStefan Fritsch
This avoids breaking krw@'s ongoing work on improving virtio_enqueue_trim().
2017-05-30Use ieee80211_{min,max}_basic_rate() in iwn(4).Stefan Sperling
ok mpi@ phessler@
2017-05-30Introduce ieee80211_min_basic_rate() and ieee80211_max_basic_rate().Stefan Sperling
These helpers can be used by drivers to improve compatibility with APs that disable some mandatory PHY rates in the basic rate set. For instance, many of our drivers hard-code 11b rates on 2 Ghz and run into problems when APs disable them. Since 11b rates are being disabled by default by some vendors, hardcoding them is not a good idea anymore. ok mpi@ phessler@
2017-05-30Always set the link state DOWN once we enter ieee80211_newstate(), regardlessStefan Sperling
of whether the wifi interface happens to be leaving RUN state. The interface is never usable during state transitions so setting the link DOWN is the only reasonable option when any transition is triggered. Fixes a problem where, at boot time, the link state of wifi interfaces was reported to userland as UNKNOWN (which, curiously, has value 0). dhclient's link detection logic was recently changed from ifmedia to getifaddrs which exposed the UNKOWN link state. Since dhclient assumes an UNKNOWN link state means UP it would start trying to negotiate a lease too early during boot. Problem reported by tb@ ok krw@
2017-05-30ext2fs: Mark superblock as not modified when writtenStefan Fritsch
I have seen spurious "file system not clean; please fsck(8)" warnings during "mount -ur". Set e2fs_fmod = 0 when writing the superblock (as ffs does). "Makes sense" deraadt@
2017-05-30Remove lucida16x29.h and omron12x20 fonts.Frederic Cambus
- lucida16x29 is a bad conversion from a truetype font, it is too bold which makes it unreadable. - omron12x20 is a serif font, and is very difficult to read due to inconsistencies in character spacing, alignement, and width. Moreover, both fonts only have 96 glyphs. No objection from mlarkin@ OK mpi@, jcs@
2017-05-30Keep ipv6_input() definition inside _KERNEL.Martin Pieuchot
Unbreak userland, found the hardway by deraadt@
2017-05-30Enable slaacd(8) by default and disable router solicitation andFlorian Obser
advertisement processing in the kernel. Go for it!!! deraadt@ additional encouragement to push forward from at least mpi and henning special thanks to naddy for being an early adopter and finding bugs.
2017-05-30virtio: Do LIFO in the freelistStefan Fritsch
Use a SLIST instead of a SIMPLEQ and use LIFO instead of FIFO. This should improve cache usage.
2017-05-30Remove the unused pcdisplay_mapchar_simple function in pcdisplay(4).Frederic Cambus
It has been unused since this code was imported from NetBSD. OK mlarkin@
2017-05-30teach pf_build_tcp() about SACK, ok & with sashanHenning Brauer
2017-05-30Introduce ipv{4,6}_input(), two wrappers around IP queues.Martin Pieuchot
This will help transitionning to an un-KERNEL_LOCK()ed IP forwarding path. Disucssed with bluhm@, ok claudio@
2017-05-30Use memmove() instead of memcpy(), buffers are overlapping.Martin Pieuchot
From Coverity via NetBSD via miod@ ok claudio@, tedu@, deraadt@, krw@
2017-05-30Clear the internal table used by if_get(9) and sleep until allMartin Pieuchot
remaining ifp references are released *without* the NET_LOCK(). It's safe to do so because the KERNEL_LOCK() serializes accesses to ``if_map''. More importantly this fix possible deadlocks between if_get() and the NET_LOCK(). It is now possible to call them in whatever order. ok visa@, dlg@
2017-05-30typo - extra semicolonMike Larkin
2017-05-29Replace handrolled list with LIST_* macros. OK mpi@Claudio Jeker
2017-05-29Allow passing in IN6_IFF_AUTOCONF from userland. Needed by slaacd(8)Florian Obser
OK naddy
2017-05-29Per-interface list of addresses, both multicast and unicast, areMartin Pieuchot
currently protected by the NET_LOCK(). They are not accessed in the hot path, so protecting them with a mutex could be an option. However since we're now going to run with a NET_LOCK() for some time, assert that it is held. IPsec is not yet ready to run without KERNEL_LOCK(), so assert it is held, even in the forwarding path. Tested by sthen@, ok visa@, claudio@, bluhm@
2017-05-29Kill struct pfkey_version and move struct pfkeyv2_socket & dump_stateClaudio Jeker
to pfkeyv2.c. These structs are nowhere else needed. OK gcc