summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-10-31zap return keyword to clarify umidi_flush() returns no value; ok ratchov@miko
2018-10-31Add support to uvm to establish write-combining mappings. Use this in theMark Kettenis
inteldrm driver to add support for the I915_MMAP_WC flag. ok deraadt@, jsg@
2018-10-31sc argument of start_output, start_input, trigger_output and trigger_inputmiko
is void* so no need to cast; ok ratchov@
2018-10-30Replace with minimal version written from scratch that just defines the dataMark Kettenis
structures and function prototypes that we need. The original file doesn't even a suitable license even though the associated drm_mipi_dsi.c file is MIT-licensed. Probably a mistake upstream, but better safe than sorry. ok deraadt@
2018-10-30The way we currently generate gap.o using a linker script results in .rodataMark Kettenis
and .data segments that have the X (executable) flag set when using lld. This doesn't result in those sections being mapped executable in the bsd kernel, but it does result in the X flag being set on those sections in the final kernel binary, which confuses some scanning tools for (ROP) gadgets. Fix this by tweaking the generated gapdummy.c file that is used for building gap.o. It now defines the .rodata section using inline asm. This also fixes .data as it will inherit its flags from .rodata. ok deraadt@, mortimer@
2018-10-30The way we currently generate gap.o using a linker script results in .rodataMark Kettenis
and .data segments that have the X (executable) flag set when using lld. This doesn't result in those sections being mapped executable in the bsd kernel, but it does result in the X flag being set on those sections in the final kernel binary, which confuses some scanning tools for (ROP) gadgets. Fix this by tweaking the generated gapdummy.c file that is used for building gap.o. It now defines the .rodata section using inline asm. This also fixes .data as it will inherit its flags from .rodata. ok deraadt@, mortimer@
2018-10-30If we execute a #!shell binary, the shell is an integral part of theTheo de Raadt
binary so it should bypass unveil restrictions. This is similar (but different...) to how the ELF linker (ld.so) is loaded (after unveils get dropped). Discovered in doas, due to more accurate unveil semantics. ok guenther tedu beck
2018-10-29Support _ISOC11_SOURCE for forcing C11 feature visibility. Change thePhilip Guenther
default when no feature test defines are given to be C11 instead of C99 headers. ok kettenis@ millert@ naddy@ doesn't think ports needs any pretesting for this
2018-10-29irrelevant part snuck into previous commit; from semarieTheo de Raadt
2018-10-29Now that most archs have better NMBCLUSTERS defaults it is possible to bringClaudio Jeker
back rev 1.90. ---- mbufs and mbuf clusters are now backed by large pools. Because of this we can relax the oversubscribe limit of socketbuffers a fair bit. Instead of maxing out as sb_max * 1.125 or 2 * sb_hiwat the maximum is increased to 8 * sb_hiwat -- which seems to be a good compromise between memory waste and better socket buffer usage. OK deraadt@ ---- ok benno@
2018-10-29use the tunnelttl in the ip6 encap too, not ip6_defhlim.David Gwynne
2018-10-29needs sys/lock.hTheo de Raadt
2018-10-28Correctly deal with upper level unveil's by keeping track of the coveringBob Beck
unveil for each unveil in the process at unveil() time, and refactoring the handling of current directory and ISDOTDOT to be much more sensible. Worked out at ns2k18 with guenther@. ok deraadt@
2018-10-27pass around the ess and ni structures we plan to use directly, insteadPeter Hessler
of rediscovering them (possibly badly). OK stsp@
2018-10-27clean up accounting of the AUTO_JOIN flag by making sure it is set or clearedPeter Hessler
based on the state of the joinlist OK stsp@
2018-10-27don't join to a network where we expect cleartext, and the AP is using cryptoPeter Hessler
OK stsp@
2018-10-27Temporarily enable LOCKF_DIAGNOSTIC in order to catch potential bugs.anton
ok deraadt@ visa@ (as part of a larger diff)
2018-10-27Add assertions for lockf list manipulation, hidden behind LOCKF_DIAGNOSTIC.anton
While here, improve existing lockf debug routines and sprinkle some more logging related to list manipulation. ok deraadt@ visa@ (as part of a larger diff)
2018-10-27Rework previous lockf fix; bluhm@ noticed a regress failure during consecutiveanton
runs. This is a second attempt in which the lockf structure is turned into a doubly linked list which makes it easier to ensure correctness during list insertion and deletion. ok deraadt@ visa@
2018-10-27size for free(); ok ratchov@miko
2018-10-26Use EFI memory map to determine what memory regions are availble just likeMark Kettenis
we already do on arm64. Prevents using the framebuffer on the cubox-i as regular memory for example.
2018-10-26Add acpipci(4) on amd64. For now this only calls the PCI-specific _OSCMark Kettenis
method to let the ACPI implementation know what features we support.
2018-10-26With lld the calculation of the entry point was wrong sinceChristian Weisgerber
LOADADDR(.text) is only available after the description of the text section. Instead simply use ENTRY(start) like we do on amd64. The bootloader strips the high bits from the entry point address already, so using the virtual address as the entry point address works. with/ok kettenis@
2018-10-26Make it clear that `if_bridgeport' is dereferenced in the ioctl pathMartin Pieuchot
by making all handlers consistent. ok bluhm@, visa@
2018-10-26Correct linker emulation name for lld when building i386 kernels on amd64.Christian Weisgerber
ok kettenis@
2018-10-26regenMike Larkin
2018-10-26Add VirtualBox NVMeMike Larkin
From Andrew Daugherity
2018-10-26syncKevin Lo
2018-10-26Fix entry for Realtek RTL8723BE, from Stuart Shillington.Kevin Lo
2018-10-25New mesa uses the I915_MMAP_WC flag which we advertise but don't actuallyMark Kettenis
implement. Knock out the I915_PARAM_MMAP_VERSION parameter that advertises this flag until we actually implement it. Fixes GPU hangs on GM45 chipset graphics. ok deraadt@
2018-10-25Fix a resource leak in doaccept().Visa Hankala
If a connection that is being accepted gets aborted early, or if the user-supplied buffer is invalid, doaccept() leaks a socket. This is a regression caused by r1.153 of uipc_syscalls.c. Correct the issue by associating the socket with the file early enough. In case soaccept() or copyaddrout() fails, the socket will be freed as a result of the file closing. This logic was used by the pre-r1.153 code. closef() may block, so it is hoisted outside the fdp lock. OK bluhm@ mpi@
2018-10-25start both the sc_ka_send and sc_ka_hold timeout whenDavid Gwynne
the timeout gets configured instead of gre_up(). this avoids complex gre_ioctl() ordering rules and enables the sc_ka_hold timeout before the first packet is received. from markus@
2018-10-23Comvert a few uvm_km_alloc(9) and uvm_km_valloc(9) calls to km_alloc(9).Mark Kettenis
ok deraadt@, mlarkin@, visa@
2018-10-23Fix OFW GPIO regulator by breaking out of the loop once the correctPatrick Wildt
match has been found. Otherwise the error condition will always be true. ok kettenis@
2018-10-23Make pf compile without DIAGNOSTIC againReyk Floeter
OK bluhm@ kn@
2018-10-22Don't let HFSC force the packet priority to 7 when enabledDavid Gwynne
HFSC on a vlan(4) (or similar) interface caused all packets over that interface to get marked with the highest packet priority, no matter what the rest of the system said about it. Leaving the prio alone lets the rest of the network still do something useful, not matter whether the local system queues packets in a particular way. Reported by and fix tested by Adrian Close ok claudio@ kn@ mikeb@
2018-10-22More "explicitely" -> "explicitly" in various comments.Kenneth R Westerback
ok guenther@ tb@ deraadt@
2018-10-22ipsec: use monotonic clock for SA creation/lookup timestamps; ok dlg@cheloha
2018-10-22Rename 'bridge_iflist' variables for coherency, missed in previous.Martin Pieuchot
2018-10-22regenJonathan Gray
2018-10-22Add AMD 400 series (promontory), vega 10, more 17h ids seen onJonathan Gray
Ryzen 5 2600X, rename KernCZ FCH ids incorrectly labelled as Carrizo.
2018-10-21regenmortimer
2018-10-21Add some devices found on Lenovo A485.mortimer
ok jsg@
2018-10-20Take the "package" into account when calculating the "smt" ID on modernMark Kettenis
AMD CPUs. Avoids knocking out too many processor threads on for example the AMD Ryzen Threadtipper 2990WX which apparently consists of 4 separate dies with 8 cores each. Note that the "package" ID really is a "die" ID here. ok sthen@
2018-10-20Sync with amd64 version.Mark Kettenis
2018-10-20Sync with amd64 version.Mark Kettenis
2018-10-20Bring over changes from aarch64 to fix building with ld.lld on amd64.Mark Kettenis
ok patrick@, naddy@
2018-10-20Add i386 relocations. Needed for 32-bit UEFI bootloader.Mark Kettenis
ok patrick@, naddy@
2018-10-18Partial revert of previous. Only the queue(3) stuff should have gone in.cheloha
2018-10-18igmp, struct router_info: use queue(3)cheloha
In particular, use LIST_* to preserve O(n) removal in rti_delete(). While here, clean up two malloc(9) calls. Suggested by mpi@. ok visa@