summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-16Randomly bias downwards from the top of each kernel stack, therebyTheo de Raadt
introducing more entropy into stack locations. TODO: consider if we should fill that space with something specific? discussed with mlarkin, mortimer, guenther, kettenis, etc etc etc
2017-08-16crank memory limitsTheo de Raadt
2017-08-16Correct the check when selecting an elevatorMike Belopuhov
Coverity CID 1453358; Severity: unlikely, not user-visible ok millert, visa
2017-08-16additional strip -R .SUNW_ctf neededTheo de Raadt
2017-08-16Validate pfra_type after copyin before using it to index an arrayMike Belopuhov
Don't trust the value of pfra_type blindly since it's coming from userland and sanitize it in pfr_validate_addr that is called after every copyin and also perform the check in pfr_create_kentry before we attempt to use the value not after. Coverity CID 1452909, 1453097, 1453384; Severity: Minor It can be triggered only by root by default or anyone with write access to /dev/pf if such access is provided. ok visa, bcook, sashan, jsg
2017-08-16test locale priorities and overridesIngo Schwarze
2017-08-16test isalpha_l(3), tolower_l(3), wctype_l(3), iswctype_l(3),Ingo Schwarze
wctrans_l(3), towctrans_l(3), wcscasecmp_l(3), wcsncasecmp_l(3), and strerror_l(3)
2017-08-16have -Wno-* work the same on gcc3 as well.Marc Espie
old patch, belated test by aoyama@, okay aoyama@
2017-08-16Add -d flag to display-panes to specify timeout, and make 0 mean noNicholas Marriott
timeout. From Laurens Post.
2017-08-16Rename BELL_* values to ALERT_* now they are used by more than bells,Nicholas Marriott
based on a diff from Brad Town.
2017-08-16tweak previous; ok iansJason McIntyre
2017-08-16test nl_langinfo_l(3), iswalpha_l(3), towupper_l(3)Ingo Schwarze
2017-08-16Mostly cosmetic changes to make things a bit more consistant:Kevin Lo
- rename bit definition of R88E_TX_RPT1_ENA to reflect reality - no need to set R92C_FPGA0_ANAPARAM2 for 40mhz for rtl8188eu - in rtwn_write_txpower(), writing to MCS8-15 power registers if the WNIC has 2 spatial streams ok stsp@
2017-08-15refactor in preparation for testing more functions; no functional changeIngo Schwarze
2017-08-15Remove expensive pointer check in afree()Jeremie Courreges-Anglas
The check added in rev 1.8 walks the whole freelist to catch cases where an unknown pointer is passed to afree(); but it can't catch cases whether the struct link has been corrupted by an invalid memory write. And it becomes very expensive when you have lots of items in an area (for example with a huge HISTSIZE). Discussed with & ok millert@ tb@
2017-08-15Convert hand rolled sockaddr checks to the nam2sin functions.Alexander Bluhm
Especially in tcp_usrreq() connect detect the correct address family based on the inp_flags instead of the sa_family user input. OK mpi@
2017-08-15typo: on -> ofTheo Buehler
From Scott Cheloha
2017-08-15Add test cases for msdosfs bugStefan Fritsch
Add a test that writes a big file, reads it again, and compares the result. This detects the bug that briefly was in msdosfs. Also add tests that create lots of files in a directory. Do this in the root dir and a subdir because these work completely differently on msdosfs. Need to enlarge the used disk images for this test. ok bluhm@
2017-08-15vmm: inject #DB after emulated instructions if guest RFLAGS.TF is setMike Larkin
ok pd
2017-08-15merge parse_vmid() and parse_vmname()Jasper Lievisse Adriaanse
ok mlarkin@ pd@
2017-08-15proper fix for previous and add missing quotesJasper Lievisse Adriaanse
from tb@ ok visa@ mpi@
2017-08-15vmd: fix vm id displayed by vmctl when receiving a vmpd
Also fix two debug messages and an IMSG type.
2017-08-15s/DEF_STD/DEF_STRONG/ to match namespace.h differences between librthreadPhilip Guenther
and libc
2017-08-15Wrap <sched.h> and <sys/futex.h> so that internal calls go directPhilip Guenther
2017-08-15Sort headers per style(9)Philip Guenther
2017-08-15Copy files from ../librthread in preparation for moving functionalityPhilip Guenther
from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
2017-08-15Copy files from ../librthread in preparation for moving functionalityPhilip Guenther
from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
2017-08-15After we stopped processing router advertisements in the kernelFlorian Obser
sppp_update_ip6_addr() became the last user of n6_are_prefix_equal(). Since it compares /128 prefixes it doesn't need all the bells and whistles and can be converted to a memcmp. Remove the now unused n6_are_prefix_equal(). OK bluhm, mpi
2017-08-15Convert to FDT-based interrupt establish API.Patrick Wildt
2017-08-15Apply KNF and fix whitespaces.Patrick Wildt
2017-08-15Apply KNF and fix whitespaces.Patrick Wildt
2017-08-15Add tests for pf divert-packet. Currently UDP packets are testedAlexander Bluhm
with in and out rules. A single packet, the initial packet or the response packet are diverted and reinjected.
2017-08-15remove parens that were copied from ndinit's previous life as a macroTed Unangst
2017-08-15create a temp directory for all the temp files instead of trying to nameTed Unangst
them one at a time. solves a problem where .d files were showing up with static names. ok deraadt
2017-08-15Strip out -I/usr/include and -L/usr/lib from the --cflags/--libs output.Jasper Lievisse Adriaanse
fd.o pkg-config doesn't emit them either, and libpng now exposed the issue as tracked down by naddy@
2017-08-15add static test tooJasper Lievisse Adriaanse
2017-08-15remove vax leftoverJasper Lievisse Adriaanse
2017-08-15Align text locations to 16 (instead of 4) to match modern recommendationsTheo de Raadt
(generally associated with hardwired BTC limitations). And then fill those alignments with 0xcc (int 3) to match our trapsled model. Resulting binaries show no sequential nop's. ok mlarkin kettenis mortimer
2017-08-15add tests for filter system directoriesJasper Lievisse Adriaanse
2017-08-15fmt0 is a wchar_t *, so use %ls to reportTheo de Raadt
2017-08-14msdofs: Add new CLUST_END constantStefan Fritsch
(forgot to commit fat.h) Add new CLUST_END and use it as parameter to pcbmap() when searching for end cluster, instead of explicitly passing 0xffff. This fixes potential problem for FAT32, where cluster number may be legally bigger than 0xffff. Also change clusteralloc() so that fillwith is not explicitly passed by caller anymore (there is no need to use anything other than CLUST_EOFE). From NetBSD commit by jdolecek@NetBSD.org ok tb@ mpi@
2017-08-14msdofs: Add new CLUST_END constantStefan Fritsch
Add new CLUST_END and use it as parameter to pcbmap() when searching for end cluster, instead of explicitly passing 0xffff. This fixes potential problem for FAT32, where cluster number may be legally bigger than 0xffff. Also change clusteralloc() so that fillwith is not explicitly passed by caller anymore (there is no need to use anything other than CLUST_EOFE). From NetBSD commit by jdolecek@NetBSD.org ok tb@ mpi@
2017-08-14Try for consistency in sizeof() usage.Kenneth R Westerback
No intentional functional change.
2017-08-14Generate SIGILL for EXCP_UNKNOWN.Mark Kettenis
ok drahn@
2017-08-14Add the amdisplay(4) and nxphdmi(4) drivers.ians
ok kettenis@ patrick@
2017-08-14return a proper error message instead of 'no such file or directory' whenJasper Lievisse Adriaanse
invoking 'stop' for a non-existent vm ok mlarkin@
2017-08-14sort SEE ALSO;Jason McIntyre
2017-08-14Add a very basic test for ctfdump(1) on amd64Uwe Stuehler
If the output of ctfdump(1) is correct, it would imply that ctfconv(1) and ctfstrip(1) also worked as expected, at least to some extent. :) ok mpi, bluhm
2017-08-14simplify LABEL extraction; from tb@Jasper Lievisse Adriaanse
2017-08-14db_ctf_pprintf() doesn't actually support formatting, so s/f$//Uwe Stuehler
ok mpi@