summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.martijn2016-05-262-20/+62
| | | | | | | | | | | | | The new code sees this combination as a continuation of string at offset pmatch[0].rm_so, instead of a new string which starts at that offset. This change fixes a search quirk in vi and is needed for upcoming fixes in ed/sed/vi. This new behaviour is also used in gnu regex. Lots of help from schwarze@ Manpage bits by schwarze@ OK schwarze@ and millert@
* Remove superfluous loop counter to set alternate video interface since wemglocker2016-05-261-6/+4
| | | | | | store the alternate video interface number already. From Patrick Keshishian, thanks!
* Use a fat16 partition starting at sector 2048/1MB everywhere to simplifyjsg2016-05-264-37/+3
| | | | | | | | things. OMAP can still load the first u-boot stage (MLO) from the fs and imx u-boot can load files off fat. The offset allows space for the u-boot images placed at raw offsets on imx and sunxi. discussed with kettenis
* To prevent screwing up terminal settings when printing to theschwarze2016-05-257-67/+370
| | | | | | | | | | | | | | | | | | | | | terminal, for ASCII and UTF-8, escape bytes not forming characters and bytes forming non-printable characters with vis(3) VIS_OCTAL. For other character sets, abort printing of the current string in these cases. In particular, * let scp(1) respect the local user's LC_CTYPE locale(1); * sanitize data received from the remote host; * sanitize filenames, usernames, and similar data even locally; * take character display widths into account for the progressmeter. This is believed to be sufficient to keep the local terminal safe on OpenBSD, but bad things can still happen on other systems with state-dependent locales because many places in the code print unencoded ASCII characters into the output stream. Using feedback from djm@ and martijn@, various aspects discussed with many others. deraadt@ says it should go in now, i probably already hesitated too long
* KNF with respect to indentation; no code changeschwarze2016-05-251-28/+27
|
* use a consistent naming for chipsets;jmc2016-05-251-5/+5
| | | | | | issue found by ross l richardson help/ok stsp
* Fix another one-byte buffer underflow (read access only).schwarze2016-05-251-7/+4
| | | | | | | | | | | | This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with [[:<:]] or \< _and_ uses backreferences. Simplify the logic while here, already looking at the previous character if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of martijn@'s upcoming patch which will further improve REG_STARTEND. OK millert@ martijn@ Also tested by Pedro Giffuni (pfg) on FreeBSD.
* Must extract uvm_vnode from uvm_object first before reading the vnodestefan2016-05-251-3/+11
| | | | | | | | | Otherwise procmap interprets the uvm_vnode contents as a vnode, yielding bogus values. This should cure the "procmap: invalid address (ffffffffffffffff) == -1 vs. 656 @ ffffffffffffffff" error messages that appear sporadically. ok deraadt@
* Avoid a use-after-free.krw2016-05-252-5/+7
| | | | | | Diff from Vladimir Sotirov via tech@. Thanks! ok millert@
* regenstsp2016-05-252-2/+7
|
* Add PCI ID for RTL8188EE. Prompted by Ross L Richardson.stsp2016-05-251-1/+2
|
* new sentence, new line, and avoid line wrap;jmc2016-05-251-2/+4
|
* remove knowledge of MNT_EXKERBderaadt2016-05-251-2/+1
|
* Update iwm(4) to firmware API 16 and enable RTS/CTS frame protection.stsp2016-05-253-629/+1933
| | | | | | | | | Requires new firmware! Which has been available in fw_update(1) for some time. With helpful hints from Emmanuel Grumbach and contributions from Imre Vadasz. Tested verbatim by phessler@, jasper@, gilles@. Tested as part of a larger diff by reyk@, robert@, Imre Vadasz, and Bryan Vyhmeister. Earlier version tested by many. Also passed by kettenis@ very early on.
* remove code to display MNT_EXKERB bitderaadt2016-05-251-6/+1
|
* MNT_EXKERB bit is unusedderaadt2016-05-251-2/+1
|
* flesh out "show summary" description a bit, from julien at dhaille.com viahenning2016-05-251-3/+20
| | | | jmc, ok benno claudio
* Don't warn when read or write block at cycle boundary, this mayratchov2016-05-251-9/+1
| | | | happen when remote devices are used and is not an error.
* el_map.alt can never be NULL, delete dead codeschwarze2016-05-251-4/+2
| | | | OK czarkoff@
* deal with the el_errno -> read_errno cleanup, read.c rev. 1.43schwarze2016-05-252-7/+5
|
* Saving errno in el_errno is only needed for one purpose:schwarze2016-05-253-35/+26
| | | | | | | | | | | | | | | | | Restoring the original errno found in el_wgetc() after el_wgets() did some cleanup that may have changed errno. Improve clarity and robustness of the code by not setting and inspecting el_errno where it isn't needed; in particular, let keymacro_get() properly report read failure to read_getcmd(). Move el_errno to el_read_t because it's only used in read.c. Never set errno back to zero. Checked with a test program installing a USR1 signal handler without SA_RESTART, for the cases read_getcmd(), ed_quoted_insert(), keymacro_get(), ed_command(), and EL_EDITMODE=0. OK czarkoff@
* Assert we're not freeing buffers we didn't allocateratchov2016-05-251-1/+7
|
* Log files skipped during poll() as well, and flush the log bufferratchov2016-05-251-5/+2
| | | | right before we call poll().
* Set initial mixer slot name to "prog" to make all slots visible inratchov2016-05-251-2/+2
| | | | audioctl and alike.
* use -nameopt esc_msb so "NetLock Kft" cert has the non-asciijsg2016-05-251-2/+2
| | | | | | and non-utf8 bytes escaped. ok sthen@
* Use efiboot when setting up the installed disk. If efiboot is placedjsg2016-05-251-19/+18
| | | | | | | | | | in the correct path on disk u-boot will load it and search for dtb files without a script. Leave sabre lite/nitrogen with the old method as boundary devices haven't released u-boot 2015.05 yet. ok kettenis@
* NUL-terminate argv when parsing options, following otherokan2016-05-241-2/+3
| | | | | | | | implementations; fixes issue when exec*() is used for fuse_args, notably in sshfs; from Hiltjo Posthuma and reminded by ray. ok mpi@
* Add missing strdup NULL checks; from Ray Lai.okan2016-05-242-3/+9
| | | | ok mpi@ beck@ mlarkin@
* Remove debugging ifdefs.schwarze2016-05-242-72/+5
| | | | | | I'm debugging the read module for weeks now, but these ifdefs aren't helpful. OK cpp(1).
* Remove two sysctls which were introduced only for development of thederaadt2016-05-242-30/+6
| | | | | ptm/pty subsystem, and got left behind. ok beck
* Drop a redundant set of FPA pool definitions.visa2016-05-244-38/+8
|
* Reduce the size of gather buffers and allocate more of them to makevisa2016-05-241-3/+3
| | | | | | | better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
* Try to defragment overly long mbuf chains.visa2016-05-241-2/+9
| | | | ok mpi@
* Fix previous.visa2016-05-241-1/+2
|
* Add PCI_PRODUCT_INTEL_100SERIES_LP_THERM, suggested by kettenis@reyk2016-05-241-1/+2
|
* USB_DISCOVER and USB_GET_STRING_DESC are no more.mpi2016-05-242-20/+4
| | | | ok deraadt@
* Kill unused ioctl(2)s.mpi2016-05-246-141/+10
| | | | ok deraadt@
* Do not call nd6_output() without route entry argument.mpi2016-05-242-4/+25
| | | | ok bluhm@
* KNF compression proposal and simplify the client side a little. ok djm@dtucker2016-05-242-11/+8
|
* Disabling active cooling trip points when we lack the right method to operate.semarie2016-05-241-1/+7
| | | | | | Problem reported by James Hastings. ok dcoppa@ mlarkin@
* Back out 'plug memleak'.dtucker2016-05-241-3/+2
|
* remove some ancient debugging codemlarkin2016-05-241-56/+1
| | | | ok deraadt@
* prefer agent-hosted keys to keys from PKCS#11; ok markusdjm2016-05-231-24/+24
|
* various tweaks;jmc2016-05-231-8/+4
|
* Use PATH_MAX instead of a hardcoded minimal value. Stack space is cheap andkettenis2016-05-231-2/+2
| | | | | | this isn't the kernel. requested by deraadt@
* Use arc4random_uniform() instead of arc4random() to avoid modulus bias.tb2016-05-231-2/+2
| | | | | | | | | This eliminates the idiom 'arc4random() % X' (where X + 1 is not a power of two) from base. Part of a patch from Matthew Martin from end of last year. ok tedu@ (a long time ago), natano@
* Use a fixed buffer for strftime() because there is no portable way tonicm2016-05-231-14/+5
| | | | | tell if the buffer is too small, and an expanding buffer is overkill anyway.
* Place a cpu-dependent trap/illegal instruction over the remainder of thederaadt2016-05-2312-21/+166
| | | | | | | | | sigtramp page, so that it will generate a nice kernel fault if touched. While here, move most of the sigtramps to the .rodata segment, because they are not executed in the kernel. Also some preparation for sliding the actual sigtramp forward (will need some gdb changes) ok mlarkin kettenis
* Remove unused variable, from Ben Boeckel.nicm2016-05-231-3/+2
|
* regenchris2016-05-232-0/+5
|