summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-12-03Remove the unused interrupt type (edge/level) from the mace interruptVisa Hankala
handler registration. The code is inherited from isa(4), but on the O2, although some interrupt sources on CRIME are edge-triggered, all the MACE interrupts are level-triggered. From miod@
2018-12-03In PRU_DISCONNECT don't fall through into PRU_ABORT since the latter freesClaudio Jeker
the inpcb apart from the disconnect. Just call soisdisconnected() and clear the inp->inp_faddr since the socket is still valid after a disconnect. Problem found by syzkaller via Greg Steuck OK visa@ Fixes: Reported-by: syzbot+2cd350dfe5c96f6469f2@syzkaller.appspotmail.com Reported-by: syzbot+139ac2d7d3d60162334b@syzkaller.appspotmail.com Reported-by: syzbot+02168317bd0156c13b69@syzkaller.appspotmail.com Reported-by: syzbot+de8d2459ecf4cdc576a1@syzkaller.appspotmail.com
2018-12-03Avoid uint32_t in _lock.h so users of rwlock.h mutex.h etc don't have toJonathan Gray
include sys/types.h first. ok guenther@ deraadt@
2018-12-02Include "com.h" to fix using a puc(4) based serial port as serial consoleMark Kettenis
which was broken by the previous commit. ok jsg@, mpi@
2018-12-02Remove artefacts from 'C', 'c' and 'F' characters, to match the otherFrederic Cambus
sizes. OK patrick@
2018-12-02Add Spleen 8x16, 12x24, 16x32, and 32x64 variants to wsfont.Frederic Cambus
Together with the already imported Spleen 5x8, it will allow using the same font family across a wide range of screen resolutions, from small OLED displays to 4K monitors. The fonts are 2-Clause BSD licensed and are my original creation. OK jcs@, brynet@, bcallah@, kettenis@
2018-11-30regenMike Larkin
2018-11-30Add another Xeon E3-1200 v6/7 host device.Mike Larkin
Add nVidia Quadro M1200 from Peter Ezetta, thanks.
2018-11-30MH_ALIGN -> m_alignClaudio Jeker
OK bluhm@
2018-11-30MH_ALIGN -> m_align. In revarprequest() set the ph_rtableid so thatClaudio Jeker
the function is doing the same initialisation as arprequest(). OK bluhm@
2018-11-30MH_ALIGN -> m_align and make the spacing look the same in all three places.Claudio Jeker
OK bluhm@
2018-11-30Switch MH_ALIGN to m_align which is the same.Claudio Jeker
OK bluhm@
2018-11-30Trivial MH_ALIGN/M_ALIGN to m_align conversions.Claudio Jeker
OK bluhm@
2018-11-29allow configuration of ecn processingDavid Gwynne
this is a step toward better rfc6040 support ok claudio@
2018-11-29restrict setting ecn to rootDavid Gwynne
ok claudio@
2018-11-29allow configuration of ecn propagation on tunnel interfaces.David Gwynne
ok claudio@
2018-11-28Further cleanup of icmp_do_error.Claudio Jeker
- Use m_align() since it handles all cases - Use same rounding logic in the size check as in m_align() so all data will filt always. - consolidate pkthdr initalisation into one place - use m_prepend() instead of direct pointer manipulation (including the panic in case an underflow happens). OK bluhm@
2018-11-27EVFILT_TIMER: Remove extra tick from tvtohz(9) on timeout reload.cheloha
tvtohz(9) adds an extra tick to account for the present tick, but this tick needs to be removed when the timeout is reloaded thereafter. We already do this for periodic setitimer(2) timeouts. Prompted by Paul Herman's writeup on clock aliasing for DragonflyBSD: https://frenchfries.net/paul/dfly/nanosleep.html Also fixed in FreeBSD r238424. Style tweaks from visa. ok visa@, guenther@
2018-11-27Free sizes for the subdevs array.Martin Pieuchot
ok anton@, visa@
2018-11-27Attach the driver only if the stack managed to set the configuration.Martin Pieuchot
Tested by stsp@
2018-11-25spelling; from miodJason McIntyre
2018-11-25regenDaniel Dickman
2018-11-25Add core4g thermal id; ok mlarkin.Daniel Dickman
2018-11-25print more details about the join'd networks we have saved when a user runsPeter Hessler
ifconfig if joinlist OK stsp@
2018-11-24only attach pvclock(4) inside a KVM guestPeter Hessler
tested by brynet@ OK reyk@
2018-11-23Change rtable_mpath_reprio() to take the prefixlen as argument instead ofClaudio Jeker
the network mask. This saves converting the prefixlen to a mask and back. OK phessler@, benno@
2018-11-23Add the pvclock(4) guest driver for paravirtual clocksReyk Floeter
This improves timekeeping on KVM guests as it runs much better than the virtualized acpihpet or acpitimer timecounters and the invtsc is not always available. Many thanks to Janne Johansson, landry@, and benno@ for testing amd64/i386. OK mlarkin@ phessler@
2018-11-22Remove useless assignment, value is overwritten right after being set.Frederic Cambus
Both assignements are in our tree since the driver got imported from FreeBSD in 2001 and remained untouched since import. The second assignment in its current form got introduced in FreeBSD in 1997 with r29233 [1], when syncinc the driver. The first assignment got removed in 2017 with r314147 [2]. [1]: https://svnweb.freebsd.org/base?view=revision&revision=29233 [2]: https://svnweb.freebsd.org/base?view=revision&revision=314147 Coverity CID 1453008. OK deraadt@
2018-11-21In unp_internalize() check the length more carefully preventing anClaudio Jeker
underflow in a later calcuation. Using the same CMSG_LEN(0) check that other cmsghdr handlers implemented. Probelm found by anton@ OK anton@, deraadt@, visa@
2018-11-21When using MSG_PEEK to peak into packets skip control messages holdingClaudio Jeker
SCM_RIGHTS from being sent to the userland since they hold kernel internal data and it does not make sense to externalize it. OK deraadt@, guenther@, visa@
2018-11-21free(9) sizes for bread_cluser().Martin Pieuchot
ok mikeb@, visa@
2018-11-20fix whitespace in debugging functionPeter Hessler
2018-11-20Add support for TIOCGPGRP ioctl commands to wscons.anton
ok visa@
2018-11-20No need for wscons to handle FIOSETOWN ioctl requests since sys_ioctl()anton
translates such requests into TIOCSPGRP. ok visa@
2018-11-20Revert free sizes for `subdevs' array, it is incorrect.Martin Pieuchot
Reported by anton@ and Natasha Kerensikova
2018-11-20Make rtable_satoplen() a bit more strict when parsing netmasks. EnsureClaudio Jeker
that the mask is contiguous and not longer then the prefixlen is not bigger then the maximum. Make the function behave a bit more like the similar netmask handling code in the old patricia codebase. Fixes a problem reyk@ reported regarding IPv6 masks and the fact that sin6_scope_id is after sin6_addr. OK mpi@
2018-11-20The first packet received from each AP in each QoS class would bePatrick Wildt
dropped as the sequence number matches the initial value of the cached last sequence number (zero). On some APs (notably Android WIFI hotspots) this hits the first packet of the WPA2 4-way handshake. This causes connection delays and in some cases connection to the AP fails completely. Initialize the cached last sequence numbers for received packets to an invalid value instead. From Christian Ehrhardt ok gerhard@ stsp@
2018-11-20Fix typos in memprobe address check. Diff from Andrew Daugherity.YASUOKA Masahiko
2018-11-19Utilize sigio with wscons. The old behavior of always making the process groupanton
of the process who opens the device the default recipient of sigio is removed as a side-effect of this change. Issuing ioctl(FIOSETOWN) is therefore mandatory in order to receive sigio, which is more consistent with other subsystems supporting sigio. This change is all made possible by the new sigio(9) API and prevents wscons from keeping a pointer to the recipient process. Usage of such pointer could cause a panic since wscons is not inform on process deallocation, leaving a dangling pointer behind. ok mpi@ visa@
2018-11-19delete the dns jackport experiment. it has no future.Ted Unangst
2018-11-19Utilize sigio with sockets.Visa Hankala
OK mpi@
2018-11-19Retire dom_rtkeylen from struct domain. Nothing is using this anymore.Claudio Jeker
It was used by the original patricia tree. OK mpi@
2018-11-19regenKevin Lo
2018-11-19Add ids for D-Link DWA-171 rev C1 and Xiaomi mini USB WiFi.Kevin Lo
2018-11-19recent 802.1Q defines 88e7 for provider backbone bridgingDavid Gwynne
2018-11-18More uses of __func__ in debug printfs.Martin Pieuchot
2018-11-18Use "%s", __func__ in DPRINTF() to reduce grep noise.Martin Pieuchot
2018-11-18Remove old USB_DEBUG chunk.Martin Pieuchot
2018-11-18USB_DEBUG -> UPLCOM_DEBUG.Martin Pieuchot
2018-11-18When parsing extended capabilities, bail out if a register read returnsJonathan Matthew
-1/0xffffffff, so we don't run off the end of the register area and crash. The controller doesn't initialise, but this is still an improvement. Seen on Dell R6415s when booting in BIOS mode, and possibly on some Supermicro systems. ok mpi@