summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-22err(1, "whatever") -> err(1, NULL) for malloc(3) failuresJeremie Courreges-Anglas
2017-07-22use automatic variables rather than globals; no functional change;Ingo Schwarze
from ScottCheloha at gmail dot com on tech, tweaked by me
2017-07-22Make the kernel panic if an invalid state transition occurs in net80211.Stefan Sperling
Triggers on driver bugs such as those which were fixed in rsu(4) recently. ok kevlo@
2017-07-22Add frame length range checks to the input path of iwm(4).Stefan Sperling
No security benefit since the firmware has DMA access but we should not have such bad examples in our source tree. ok kevlo@
2017-07-22Fix length checks in EAPOL key frame parsing.Stefan Sperling
Problem reported by Ilja Van Sprundel. ok tb@ kevlo@
2017-07-22Bring SIGBUS and SIGSEGV handling better in line with the otherVisa Hankala
architectures. OK kettenis@, deraadt@
2017-07-22no need to cast signal(3) and fprintf(3) return values to (void)Ingo Schwarze
in standard use cases with constant arguments, and prefer getprogname(3) over __progname; from ScottCheloha at gmail dot com on tech
2017-07-22Tolerate imprecise fault address on sparc64 where the hardware doesn't provideMark Kettenis
tho low order bits. ok deraadt@, visa@
2017-07-22Prefer the definition of a variable in the executable over a definitionMark Kettenis
in a shared library, even for commons. This is what the current generation of linkers (current bfd, gold, lld) do. This fixes the relocation R_X86_64_PC32 against `xxx' can not be used when making a shared object; recompile with -fPIC warnings that we have seen in ports with clang. This change is somewhat suspect as a similar change was reverted in upstream binutils at some point. However that was for another corner case on an architecture (s390) that we do not run on. Tested by naddy@, sthen@
2017-07-22Whitespace.Kenneth R Westerback
2017-07-22Oops. Missed chunk keeping /32 netmask magic.Kenneth R Westerback
2017-07-22Fix the various SIGSEGV and SIGBUS scenarios to match what we do onMark Kettenis
amd64/arm64/armv7/i386/sparc64. ok visa@
2017-07-22Fix the various SIGSEGV and SIGBUS scenarios to match what we do onMark Kettenis
amd64/arm64/armv7/i386. ok visa@, deraadt@
2017-07-22Rename *_add_address to *_set_address to reflect that theKenneth R Westerback
lease address replaces all current addresses. Shuffle some code from bind_lease() into set_mtu()/set_address() to shrink bind_lease().
2017-07-22Introduce jiffies, a volatile unsigned long version of our ticks variableMark Kettenis
for use by the linux compatibility APIs in drm(4). While I hate infecting code in sys/kern with this, untangling all the of having different types and different signedness is too much for me right now. The best strategy may be to change ticks itself to be long but that needs some careful auditing. ok deraadt@
2017-07-22Add missing RCS IDs and zap redundant SRCS from Makefile.anton
2017-07-22Favor err() over perror() in example.anton
ok schwarze@
2017-07-22Cleanup previous release patches and backup kernel _before_ applying newAntoine Jacoutot
patches. This will mitigate possible /var overflow (previous behavior was to clean up _after_ applying all patches which means we would have rollback patches from the previous and current release before the previous ones got cleaned).
2017-07-22Use monotonic clock for the time command in csh and ksh.anton
From Scott Cheloha ok tb@
2017-07-22zap trailing whitespace;Jason McIntyre
2017-07-22rework the page a bit, clarify a few things, maybe better wordingTed Unangst
2017-07-21Use the actual width written rather than the possible width to clear.Nicholas Marriott
2017-07-21Stress the fact that individual pvbus device nodes correspond toMike Belopuhov
a single key-value store and if there are other ones available, different nodes must be used to access them.
2017-07-21Add fields for wsmouse/touchpad configuration.Ulf Brosziewski
2017-07-21Rename _hn to AI_HOSTNAME and export it as global variable so it'sRobert Peichaer
visible in the MODE.site scripts too. This is useful for reporting back the autoinstall status at the end of installs or upgrades from within the MODE.site scripts. OK krw@ tb@
2017-07-21Align ifstart() in netstart and install.sub.Robert Peichaer
- in netstart, rename _file to _hn referencing hostname.if files - in install.sub switch ifstart() to be used with _if instead of _hn as parameter ok krw@ tb@
2017-07-21Do not permit USB ioctl handler malloc(9)'s to block as this interferesians
with expected behavior. OK mpi@ patrick@
2017-07-21Show Synaptics Model IDs.Ulf Brosziewski
2017-07-21Replace MD _bus_dmamap_* function calls with MI onesMike Belopuhov
2017-07-21syncMike Belopuhov
2017-07-21Multiple virtualization layers may be available at the same timeMike Belopuhov
reachable through different pvbus device nodes. Suggestion and OK deraadt, OK reyk
2017-07-21s/set_interface_mtu/set_mtu/gKenneth R Westerback
2017-07-21whitespace botch.Kenneth R Westerback
2017-07-21Document settings for XenServerMike Belopuhov
Figured out by Dinar Talypov and Maxim Khitrov. With input from deraadt@ and schwarze@. OK schwarze.
2017-07-21Add a newlineJeremie Courreges-Anglas
2017-07-21No need for ioctl(SIOCGIFDATA), getifaddrs(3) gives us the link stateJeremie Courreges-Anglas
Noticed while reviewing a pledge(2) diff from Rob Pierce. ok florian@
2017-07-21autoinstall(8) related global variables are prefixed with AI_.Robert Peichaer
RESPFILE -> AI_RESPFILE OK krw@ tb@
2017-07-21Add frame length boundary checks to the input path of atu(4).Stefan Sperling
Problem found by Ilja Van Sprundel. ok kevlo
2017-07-21document that usage of .PHONY, since it's not exactly obvious.Marc Espie
okay schwarze@
2017-07-21Trim trailing spaces from full line when it is clearly OK to do so.Nicholas Marriott
2017-07-21More consistent with other architectures.Kenji Aoyama
2017-07-21Unbreak the rsu(4) driver which was not kept up-to-date with recent WPAStefan Sperling
supplicant and net80211 state machine changes. While here, make rsu(4) report the correct channel for received frames to tcpdump(8). ok deraadt@
2017-07-21Fix frame length bounds checks in rsu(4).Stefan Sperling
Due to signedness issues the existing checks didn't work as intended. Problem reported by Ilja Van Sprundel. ok deraadt@
2017-07-21Allow ispunct() as well as isalnum() when parsing initial window names.Nicholas Marriott
2017-07-21Fixup too much indentationMike Belopuhov
2017-07-21Garbage collect unused manual page .SUFFIXES, left overIngo Schwarze
years ago when we formatted manual pages at build time. Opportunity for cleanup discovered by espie@. Make build & release in base and Xenocara checked myself, and checked in a bulk build by ajacoutot@. OK espie@ millert@ deraadt@
2017-07-21fix two nasty out-of-bound accesses that killed (sporadically mk38 and mk38bis.Marc Espie
prodded by bluhm@, okay bluhm@
2017-07-21Accessing a mmap(2)ed file behind its end should result in a SIGBUSMark Kettenis
according to POSIX. ok bluhm@, deraadt@
2017-07-21Add -c for respawn-pane and respawn-window, from J Raynor.Nicholas Marriott
2017-07-21I'm equally upset as Kurt Mosiejczuk, who found irrelevant 22-yearTheo de Raadt
old history in this manual page.