summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-26Remove superfluous loop counter to set alternate video interface since weMarcus Glocker
store the alternate video interface number already. From Patrick Keshishian, thanks!
2016-05-26Use a fat16 partition starting at sector 2048/1MB everywhere to simplifyJonathan Gray
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
2016-05-25To prevent screwing up terminal settings when printing to theIngo Schwarze
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
2016-05-25KNF with respect to indentation; no code changeIngo Schwarze
2016-05-25use a consistent naming for chipsets;Jason McIntyre
issue found by ross l richardson help/ok stsp
2016-05-25Fix another one-byte buffer underflow (read access only).Ingo Schwarze
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.
2016-05-25Must extract uvm_vnode from uvm_object first before reading the vnodeStefan Kempf
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@
2016-05-25Avoid a use-after-free.Kenneth R Westerback
Diff from Vladimir Sotirov via tech@. Thanks! ok millert@
2016-05-25regenStefan Sperling
2016-05-25Add PCI ID for RTL8188EE. Prompted by Ross L Richardson.Stefan Sperling
2016-05-25new sentence, new line, and avoid line wrap;Jason McIntyre
2016-05-25remove knowledge of MNT_EXKERBTheo de Raadt
2016-05-25Update iwm(4) to firmware API 16 and enable RTS/CTS frame protection.Stefan Sperling
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.
2016-05-25remove code to display MNT_EXKERB bitTheo de Raadt
2016-05-25MNT_EXKERB bit is unusedTheo de Raadt
2016-05-25flesh out "show summary" description a bit, from julien at dhaille.com viaHenning Brauer
jmc, ok benno claudio
2016-05-25Don't warn when read or write block at cycle boundary, this mayAlexandre Ratchov
happen when remote devices are used and is not an error.
2016-05-25el_map.alt can never be NULL, delete dead codeIngo Schwarze
OK czarkoff@
2016-05-25deal with the el_errno -> read_errno cleanup, read.c rev. 1.43Ingo Schwarze
2016-05-25Saving errno in el_errno is only needed for one purpose:Ingo Schwarze
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@
2016-05-25Assert we're not freeing buffers we didn't allocateAlexandre Ratchov
2016-05-25Log files skipped during poll() as well, and flush the log bufferAlexandre Ratchov
right before we call poll().
2016-05-25Set initial mixer slot name to "prog" to make all slots visible inAlexandre Ratchov
audioctl and alike.
2016-05-25use -nameopt esc_msb so "NetLock Kft" cert has the non-asciiJonathan Gray
and non-utf8 bytes escaped. ok sthen@
2016-05-25Use efiboot when setting up the installed disk. If efiboot is placedJonathan Gray
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@
2016-05-24NUL-terminate argv when parsing options, following otherOkan Demirmen
implementations; fixes issue when exec*() is used for fuse_args, notably in sshfs; from Hiltjo Posthuma and reminded by ray. ok mpi@
2016-05-24Add missing strdup NULL checks; from Ray Lai.Okan Demirmen
ok mpi@ beck@ mlarkin@
2016-05-24Remove debugging ifdefs.Ingo Schwarze
I'm debugging the read module for weeks now, but these ifdefs aren't helpful. OK cpp(1).
2016-05-24Remove two sysctls which were introduced only for development of theTheo de Raadt
ptm/pty subsystem, and got left behind. ok beck
2016-05-24Drop a redundant set of FPA pool definitions.Visa Hankala
2016-05-24Reduce the size of gather buffers and allocate more of them to makeVisa Hankala
better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
2016-05-24Try to defragment overly long mbuf chains.Visa Hankala
ok mpi@
2016-05-24Fix previous.Visa Hankala
2016-05-24Add PCI_PRODUCT_INTEL_100SERIES_LP_THERM, suggested by kettenis@Reyk Floeter
2016-05-24USB_DISCOVER and USB_GET_STRING_DESC are no more.Martin Pieuchot
ok deraadt@
2016-05-24Kill unused ioctl(2)s.Martin Pieuchot
ok deraadt@
2016-05-24Do not call nd6_output() without route entry argument.Martin Pieuchot
ok bluhm@
2016-05-24KNF compression proposal and simplify the client side a little. ok djm@Darren Tucker
2016-05-24Disabling active cooling trip points when we lack the right method to operate.Sebastien Marie
Problem reported by James Hastings. ok dcoppa@ mlarkin@
2016-05-24Back out 'plug memleak'.Darren Tucker
2016-05-24remove some ancient debugging codeMike Larkin
ok deraadt@
2016-05-23prefer agent-hosted keys to keys from PKCS#11; ok markusDamien Miller
2016-05-23various tweaks;Jason McIntyre
2016-05-23Use PATH_MAX instead of a hardcoded minimal value. Stack space is cheap andMark Kettenis
this isn't the kernel. requested by deraadt@
2016-05-23Use arc4random_uniform() instead of arc4random() to avoid modulus bias.Theo Buehler
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@
2016-05-23Use a fixed buffer for strftime() because there is no portable way toNicholas Marriott
tell if the buffer is too small, and an expanding buffer is overkill anyway.
2016-05-23Place a cpu-dependent trap/illegal instruction over the remainder of theTheo de Raadt
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
2016-05-23Remove unused variable, from Ben Boeckel.Nicholas Marriott
2016-05-23regenChris Cappuccio
2016-05-23VIA VL805 xHCIChris Cappuccio