summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-08-10Don't forget to call va_end in xen_hypercallMike Belopuhov
Coverity CID 1453343
2017-08-10With a CTF kernel, DDB's print command will now pretty-print symbols.Martin Pieuchot
Casting a type is not yet supported. ok kettenis@, jasper@
2017-08-10Move the solock()/sounlock() dance outside of sobind().Martin Pieuchot
ok phessler@, visa@, bluhm@
2017-08-10Make rw_enter() always succeed after a panic.Martin Pieuchot
This prevents deadlocks when doing 'boot reboot' after the kernel panic'd. Discussed with bluhm@ and guenther@, ok visa@
2017-08-10the userland crypto interface died long ago, can clean up the headerTed Unangst
2017-08-10A missing break in vxlan_sockaddr_cmp() could eventually trick anReyk Floeter
vxlan interface into accepting packets for the wrong destination (if the sockaddr_in6 checks somehow match on sockaddr_in addresses). Coverity CID 1452902; Severity: Moderate OK mikeb@
2017-08-10Prevent an unlikely resource leakMike Belopuhov
Coverity CID 1453069; Severity: unlikely, not user-visible.
2017-08-10sector_count is uninitialized if the SCSI cmdlen is not 6, 10, 12 orReyk Floeter
16 bytes long. This cannot happen. But it is good to silence the uninitialized variable warning. Coverity CID 1453104; Severity: Insignificant OK mikeb@
2017-08-10Fix copy-paste error in the error path of vio_alloc_mem() that checkedReyk Floeter
the wrong variable (sc_tx_dmamaps[i] instead of sc_rx_dmamaps[i]). Coverity CID 1452937; Severity: Minor OK mikeb@
2017-08-10Add missing comma that caused a concatenated string. Fixes printing ofReyk Floeter
the device names of "9P Transport" and "mac80211 wlan" virtio devices. Coverity CID 1453254; Severity: Insignificant OK mikeb@
2017-08-10Correct the upper bound for the command size before the passthroughMike Belopuhov
Coverity CID 1453317; Severity: unlikely, not user-visible.
2017-08-10Buffer size for the SCSI vendor string should be 8 char longMike Belopuhov
A vendor and part of the product string got copied into a larger on-stack buffer as a result of an out-of-bounds access, however only 4 characters are meaningful in this context. Coverity CID 1453206; Severity: insignificant.
2017-08-10Fixup upper bound for the completion descriptor identifierMike Belopuhov
Coverity CID 1452864; Severity: unlikely, not user-visible.
2017-08-10The socket field so_proto can never be NULL. Remove the checks.Alexander Bluhm
OK mpi@ visa@
2017-08-10The caller of sobind() has to free the name mbuf. Plug a mbuf leakAlexander Bluhm
in bfd_listener(). OK phessler@
2017-08-10Fail if unknown type of an address family was specifiedMike Belopuhov
Coverity CID 1452981; Severity: unlikely, not user-visible.
2017-08-10Power off all codecs on shutdown to eliminate static noise in speakersTheo Buehler
or headphones on reboot. From Manuel Giraud <manuel () ledu-giraud ! fr> Tweaks & ok ratchov
2017-08-10Deactivate the device if I/O fails in attach.Martin Pieuchot
Coverity CID 1453399; ok deraadt@
2017-08-10Remove a leftover bit that was dereferencing an uninitialized pointerMike Belopuhov
Coverity CID 1453398; ok deraadt.
2017-08-10Avoid possible NULL pointer dereference on fuseioctl()Ricardo Mestre
Found by Coverity Scan (CID 1453387) OK mpi@
2017-08-10Add glue for passing through file+line when WITNESS is enabledPhilip Guenther
ok kettenis@
2017-08-10Do not invalidate ND for local routes, make it consistent like ARP.Alexander Bluhm
OK mpi@
2017-08-10Prevent userland to modify RTF_LOCAL route entries.Martin Pieuchot
In particular setting an expiration timer on a route entry which would confuse L2 state machines. ok bluhm@
2017-08-10Remove some case statements which have been compiled out since 2000.Frederic Cambus
OK mpi@
2017-08-10icmp_mtudisc() might be called by TCP even on loopback after aAlexander Bluhm
retransmit timeout. Do not run path MTU discovery on local routes as we never want that on loopback. For permanent ARP or ND entries disable path MTU discovery as they use the same rt_expire field. This prevents that permanent routes and entries disappear. bug analysis friehm@; OK mpi@
2017-08-09vmd: allow guest PCI interrupt line reassignment.Mike Larkin
I also added a couple config space register names to pcireg.h to try and reduce the use of magic numbers in vmd/pci.c ok pd@
2017-08-09Add IA32_MISC_ENABLE MSR and bitfield values, to be used shortly byMike Larkin
vmm(4)
2017-08-09reorder some MSRs in the MSR list that were out of order. No functionalMike Larkin
change; I'll be adding a few new ones and noticed these were misplaced.
2017-08-09reorder some MSRs in the MSR list that were out of order. No functionalMike Larkin
change; I'll be adding a few new ones and noticed these were misplaced.
2017-08-09fix a few DPRINTFs in vmm.c so that compilation with VMM_DEBUG workspd
ok mlarkin@
2017-08-09Expose TSC to vmm guestpd
This exposes TSC to vmm guest and OpenBSD guests should use it as a preferred timecounter on >= skylake. This should improve the clock drift situation. This breaks vmctl send and receive (for >= skylake), working on that. ok mlarkin@
2017-08-09typo in commentMike Larkin
2017-08-09Clear any pending (edge-triggered) interrupts at setup to avoidVisa Hankala
spurious interrupts with newly established handlers.
2017-08-09Remove knob and always do neighbor unreachable detection.Florian Obser
2017-08-09accept_rtadv doesn't do anything since some time.Florian Obser
OK mpi
2017-08-09We are no longer generating privacy addresses in theFlorian Obser
kernel. OK mpi
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().Martin Pieuchot
Protect the fields modifieds by sosetopt() and simplify the dance with the stars. ok bluhm@
2017-08-09Add "PNP0303" (8042 PS/2 Controller) to acpi_isa_hids[]David Coppa
ok kettenis@
2017-08-09We are no longer processing router advertisements in theFlorian Obser
kernel. OK mpi
2017-08-09Fix format strings to make the kernel build on arm64 again after theJonathan Gray
recent kprintf changes in clang. ok deraadt@ kettenis@
2017-08-09fix format stringsJonathan Gray
ok kettenis@
2017-08-09remove duplicated PAGE macros and drop type suffixJonathan Gray
ok kettenis@
2017-08-08Arm64 compilers like many others anymore will use floating point registersDale Rahn
for non-foating point data, so it is important that FPU state be saved and restored when a signal is delivered. This diff that performs a save and restore of all of the floating point registers (not just the callee save registers). It is added to sigcode running in userland instead of into the kernel with copyin()/copyout() similar to the code in powerpc (macppc) locore.S
2017-08-08fix typo in previous commit.T.J. Townsend
2017-08-08Stop running nd6_expire every second.Florian Obser
We know when pltime or vltime decrease to zero. Run nd6_expire then. Input & OK mpi, bluhm
2017-08-08Get rid of read_psl() and write_psl() by replacingVisa Hankala
read_psl() + disable_intr() with intr_disable(), and write_psl() with intr_restore(). OK kettenis@
2017-08-08Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict andAlexander Bluhm
truncate the length of a syslog message to 8192 bytes. Use one global define LOG_MAXLINE for all of them. OK deraadt@ millert@
2017-08-08Increase the limit of the IP protocol queues from 256 to 2048 mbufs.Alexander Bluhm
The interface congestion algorithm kills performance at this place, with the large queues it never triggers. OK mpi@ claudio@
2017-08-07Add RK3399 USB3 related clocks.Mark Kettenis
2017-08-07Return WSDISPLAY_TYPE_PCIVGA like we do on macppc.Mark Kettenis
Pointed out by jsg@