summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-11-10Remove the strong hysteresis filter.Ulf Brosziewski
It seems that the filter is obsolete, the default method is sufficient. Simplify and clean up some related code in wsmouse. ok mpi@
2018-11-10Conform to POSIX-2001 in which the behavior of passing a negative length usinganton
posix file locks is defined. Also, detect overflows when dealing with positive lengths. ok millert@ visa@
2018-11-09M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers forClaudio Jeker
m_leadingspace() and m_trailingspace(). Convert all callers to call directly the functions and remove the defines. OK krw@, mpi@
2018-11-09Remove the last few XXX rdomain markers. Even those functions respect theClaudio Jeker
rdomain now and are therefor rdomain save. OK mpi@
2018-11-08regenJonathan Gray
2018-11-08correct intel 0x9d66Jonathan Gray
reported by Masanobu SAITOH
2018-11-08Remove cardbus and pcmcia debug options that we don't enable on otherMark Kettenis
platforms. From miod@
2018-11-07Document `machine gop [mode]' commandkn
Feedback and OK jmc
2018-11-06new sysctl for userland malloc flags, kernel part. ok millert@ deraadt@Otto Moerbeek
2018-11-05Improve the filters for scrolling.Ulf Brosziewski
ok mpi@
2018-11-05In icmp_input_if() m_pullup up the maximum size of required data at the start.Claudio Jeker
The maximum is ICMP_MINLEN (8) + max IPv4 header size (60) + IPv6 header (40) for the IPv6 over IPv4 transition case. By having up to this amount of data consequtive in an mbuf makes the rest of the code simpler and no more extra m_pullup calls are needed. Only length checks are now required.The maximum size is also big enough for all other ICMP types that don't embed the IP heaader. This ensures that all data has been m_pullup-ed before calling the ctlinput function which can look that deep into the header. OK bluhm@ markus@
2018-11-05Consider the size of IP header when doing the ICMP length overflowAlexander Bluhm
check. This code was never reached as ICMP length was truncated before, but fix the wrong calculation anyway. OK claudio@
2018-11-05trace struct flock; ok visa@anton
2018-11-05Fix kernel build without serial consolekn
OK mpi
2018-11-05Fixup the case where an mbuf cluster is used. Correctly offset the data toClaudio Jeker
the end of the cluster (there is no M_ALIGN version for clusters so it is hard coded). Also make the sanity check more general by using m_leadingspace. Not a security issue since the cluster code is not reachable, there is enough space in an mbuf. OK bluhm@
2018-11-04The change of the sb_mbmax calculation in sbreserve() broke settingAlexander Bluhm
a fixed socket send buffer size for TCP. tcp_update_sndspace() could overwrite the value as the algorithms were not in sync. OK benno@ claudio@
2018-11-02Revert previous, it broke my Anker USB deviceJoshua Stein
ok patrick
2018-11-02Remove 'reused group key update received' printfs.Stefan Sperling
These have served no useful purpose in practice; all reported instances were legitimate group key retransmissions by the AP, e.g. after laptop suspend. We fixed KRACK long ago; re-used group key messages are nothing to worry about.
2018-11-02Remove unnecessary if/else block, both branches are identical. We canFrederic Cambus
in fact use the ATA_DELAY macro directly. Coverity CID 1453008. OK sthen@, kn@
2018-11-02make debug flags continuousanton
2018-11-02disable LOCKF_DIAGNOSTICanton
2018-11-01Add SPDX-License-Identifier tag from drm-intel-next-queued toJonathan Gray
intel_ringbuffer.h which previously had no license text.
2018-11-01Add SPDX-License-Identifier tags from linux git master to drm filesJonathan Gray
which previously had no license text.
2018-10-31Increase max frame size and hard MTU so that we can use VLANs andPatrick Wildt
Jumbo frames on ure(4). ok kevlo@
2018-10-31add simple implementation of intel trace files which just define awayJonathan Gray
functions ok kettenis@
2018-10-31Bring over gapdummy.c changes from amd64/amr64/armv7/i386.Mark Kettenis
ok deraadt@, mortimer@, visa@
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@