dcoppa [Sun, 26 Apr 2015 17:26:59 +0000 (17:26 +0000)]
Fix typo in the buffer size value: 7680 in the manpage vs 7860 in
the sndiod.c code.
Initially, I thought the error was in the manpage, but Alexander
told me it was the code, so fix the code instead.
ok ratchov@
henning [Sun, 26 Apr 2015 14:49:23 +0000 (14:49 +0000)]
get_responsefile: instead of keeping the dhcp-supplied next-server where
we fetch the response file from in a local _server var, put it in an
exported AI_SERVER one. last not least that allows install.site to see it.
ok krw rpe
sf [Sun, 26 Apr 2015 12:27:29 +0000 (12:27 +0000)]
Have vio_start() check if the queue is empty.
from brad@
jmatthew [Sun, 26 Apr 2015 12:24:03 +0000 (12:24 +0000)]
Get dwc2 working on octeon.
- transplant the clock setup code from octhci
- add a bus space tag to deal with dwc2 using little endian addressing
- bump up the rx fifo size, necessary for umass/sd to work
tested on an edgerouter lite, which can almost boot by itself now
ok uebayasi@ (various parts), miod@ (bus space bits)
sf [Sun, 26 Apr 2015 12:19:24 +0000 (12:19 +0000)]
vio: Support checksum offloading for IPv4 TX
"Looks good to me" brad@
stsp [Sun, 26 Apr 2015 11:47:22 +0000 (11:47 +0000)]
regen
stsp [Sun, 26 Apr 2015 11:47:13 +0000 (11:47 +0000)]
Add IDs for RTL8188ETV and RTL8188EU. From FreeBSD via Mikhail on tech@
phessler [Sun, 26 Apr 2015 11:32:54 +0000 (11:32 +0000)]
for every policy we write out, flush the output so we don't get an
irritating partially written line
kettenis [Sun, 26 Apr 2015 11:09:32 +0000 (11:09 +0000)]
Disable PAE when switching to the hibernate resume pagetables. This involves
a slightly conmplicated dance where we stash the PAE PDPTEs into the
hibernate resume pagetables and use those before turning off PAE.
Makes (un)hibernate work with the new PAE pmap.
ok mlarkin@
stsp [Sun, 26 Apr 2015 10:22:13 +0000 (10:22 +0000)]
Add Digitus DN-7003GT to list of supported urtw(4) devices.
stsp [Sun, 26 Apr 2015 10:18:30 +0000 (10:18 +0000)]
regen
stsp [Sun, 26 Apr 2015 10:18:19 +0000 (10:18 +0000)]
Add USB device ID for RTL8812AU. Found in "TP-Link AC1200 T4U" device.
kettenis [Sun, 26 Apr 2015 09:49:42 +0000 (09:49 +0000)]
Enable NX support in the resume path. Makes suspend/resume work with the
PAE pmap.
ok deraadt@, mlarkin@
kettenis [Sun, 26 Apr 2015 09:48:29 +0000 (09:48 +0000)]
Only enable PAE if the CPU we're running on has NX support. Without NX
support we're only wasting memory on the larger PAE page tables without
any real benefit. This allows some simplifications of the low-level
assembly code.
ok mlarkin@, deraadt@
sthen [Sun, 26 Apr 2015 09:22:33 +0000 (09:22 +0000)]
bump i386 MAXDSIZ to 3GB. - "If you're running this, and presumably actually
using that much memory, go for it" tedu@ "I don't see any immediate downsides"
kettenis@
deraadt [Sun, 26 Apr 2015 07:25:10 +0000 (07:25 +0000)]
sync
jmatthew [Sun, 26 Apr 2015 06:38:04 +0000 (06:38 +0000)]
Two extra messages required after sending a baud rate update, as observed
in the linux mct_u232 driver, which apparently got them by sniffing usb
traffic from the vendor's windows 98 driver. Makes this device work at
115200:
umct0 at uhub0 port 2 "Belkin Components F5U109 Serial" rev 1.10/1.02 addr 2
ok dlg@
guenther [Sun, 26 Apr 2015 05:30:42 +0000 (05:30 +0000)]
Require a PT_LOAD segment's p_filesz to be no larger than its p_memsz.
test cases provided by Alejandro Herna'ndez (nitrousenador (at) gmail.com)
ok deraadt@ jsg@
guenther [Sun, 26 Apr 2015 01:23:19 +0000 (01:23 +0000)]
Fix glitches in previous commit: strip the \n and only complain on failure
ok deraadt@
phessler [Sat, 25 Apr 2015 21:44:26 +0000 (21:44 +0000)]
some people are capitalizing keywords, so ignore case when we test the tokens
OK henning@ benno@
miod [Sat, 25 Apr 2015 21:38:22 +0000 (21:38 +0000)]
Cut the aliases part of /etc/rpc lines before feeding them to strtonum(), for
it will fail otherwise; ok deraadt@ millert@
guenther [Sat, 25 Apr 2015 21:31:24 +0000 (21:31 +0000)]
We now following the ABI and always clear cld on function entry, so remove
the extra CLD instructions from when that wasn't true
testing miod@ krw@
guenther [Sat, 25 Apr 2015 21:21:02 +0000 (21:21 +0000)]
cpu_busy_cycle_fcn callback has never been used
nicm [Sat, 25 Apr 2015 21:17:09 +0000 (21:17 +0000)]
Only print MIME warnings when warnings are enabled.
miod [Sat, 25 Apr 2015 21:15:08 +0000 (21:15 +0000)]
Repair boot device detection when booting off the second SCSI controller on
AV530.
guenther [Sat, 25 Apr 2015 20:47:49 +0000 (20:47 +0000)]
Disable kq-tun test, as it's been broken for a while and not because of kq
afresh1 [Sat, 25 Apr 2015 19:30:14 +0000 (19:30 +0000)]
Apply pre-built unicore patch, remove excess files - perl-5.20.2
afresh1 [Sat, 25 Apr 2015 19:26:15 +0000 (19:26 +0000)]
Apply local patches, remove excess files - perl-5.20.2
afresh1 [Sat, 25 Apr 2015 19:14:36 +0000 (19:14 +0000)]
Fix merge issues, remove excess files - match perl-5.20.2 dist
afresh1 [Sat, 25 Apr 2015 19:10:05 +0000 (19:10 +0000)]
Import perl-5.20.2
nicm [Sat, 25 Apr 2015 18:56:05 +0000 (18:56 +0000)]
Get rid of window_choose_list type.
nicm [Sat, 25 Apr 2015 18:49:01 +0000 (18:49 +0000)]
Fix some char* -> char *.
nicm [Sat, 25 Apr 2015 18:47:01 +0000 (18:47 +0000)]
Use a char **,u_int pair for cfg_causes.
nicm [Sat, 25 Apr 2015 18:44:28 +0000 (18:44 +0000)]
Fail if a \ appears at EOL rather than continuing off the end of the
buffer, from Sebastien Marie.
nicm [Sat, 25 Apr 2015 18:33:59 +0000 (18:33 +0000)]
Make message log a TAILQ.
nicm [Sat, 25 Apr 2015 18:09:28 +0000 (18:09 +0000)]
Move the functions to convert ids from strings into session.c and window.c.
jmc [Sat, 25 Apr 2015 16:37:17 +0000 (16:37 +0000)]
double word fix; from david vasek
brynet [Sat, 25 Apr 2015 16:35:47 +0000 (16:35 +0000)]
Switch to using the POSIX endian macros, i.e: be64toh vs. betoh64.
ok nicm@
doug [Sat, 25 Apr 2015 16:02:55 +0000 (16:02 +0000)]
Don't ignore the reference count in X509_STORE_free.
Based on this upstream commit:
bff9ce4db38b297c72a6d84617d71ae2934450f7
which didn't make it into a release until 1.0.2.
Thanks to william at 25thandclement dot com for reporting this!
ok deraadt@ jsing@ beck@
nicm [Sat, 25 Apr 2015 15:57:48 +0000 (15:57 +0000)]
Explicitly cancel mouse "button" mode, this happens implicitly with some
one of the other things we send with xterm, but not with urxvt. Reported
by sthen@.
espie [Sat, 25 Apr 2015 15:33:47 +0000 (15:33 +0000)]
add check for overflow while doubling (very unlikely in practice, but still
better style code). Problem noticed by deraadt@ in m4.
okay doug@ deraadt@
doug [Sat, 25 Apr 2015 15:28:47 +0000 (15:28 +0000)]
Check for invalid leading zeros in CBS_get_asn1_uint64.
ASN.1 integers cannot have all zeros or all ones for the first 9 bits.
This rule ensures the numbers are encoded with the smallest number of
content octets (see ITU-T Rec X.690 section 8.3.2).
Based on BoringSSL commit
5933723b7b592e9914f703d630b596e140c93e16
ok deraadt@ jsing@
phessler [Sat, 25 Apr 2015 15:28:18 +0000 (15:28 +0000)]
allow us to write rules that match directly on the peer AS
...
allow from AS 1 prefix 192.0.2.0/24
...
Also adjust the IRR ruleset output to include the declared peer AS,
instead of hoping they listed their neighbor IP address!
OK benno@
older version OK: claudio@ henning@
florian [Sat, 25 Apr 2015 14:40:35 +0000 (14:40 +0000)]
Prepend files or directories containing ":" with "./" in directory
indexes as per RFC 3986:
A path segment that contains a colon character (e.g., "this:that")
cannot be used as the first segment of a relative-path reference, as
it would be mistaken for a scheme name. Such a segment must be
preceded by a dot-segment (e.g., "./this:that") to make a relative-
path reference.
While here add a "/" to the end of directory names, this saves us one
redirect round trip.
Found the hard way & "functionality wise, OK" ajacoutot@
RFC pointer & OK benno@
phessler [Sat, 25 Apr 2015 13:23:01 +0000 (13:23 +0000)]
handle an IRR record of "export ... action X" the same way we handle
"import ... action X".
OK benno@ henning@
jturner [Sat, 25 Apr 2015 11:37:24 +0000 (11:37 +0000)]
Add quirk for Cirrus Logic CS4208 which is needed for MacBookAir6,1.
ok deraadt@ jung@ ratchov@
nicm [Fri, 24 Apr 2015 23:17:11 +0000 (23:17 +0000)]
Convert clients list into a TAILQ.
nicm [Fri, 24 Apr 2015 22:19:36 +0000 (22:19 +0000)]
Set working directory for run-shell and if-shell.
brynet [Fri, 24 Apr 2015 21:48:31 +0000 (21:48 +0000)]
struct timespec/clock_gettime(3) conversion for vi(1).
ok guenther@
nicm [Fri, 24 Apr 2015 21:38:18 +0000 (21:38 +0000)]
Allow choice options (multiple states) to be toggled between states 0
and 1.
millert [Fri, 24 Apr 2015 21:14:48 +0000 (21:14 +0000)]
Write (uid_t)-1 as -1 instead of UID_MAX in the v7 passwd file.
OK deraadt@
millert [Fri, 24 Apr 2015 21:13:56 +0000 (21:13 +0000)]
Use strtonum() instead of strtoul() when parsing uid/gid so we get
consistent handling of negative ids on 32bit/64bit systems.
The only negative uid/gid allowed is -1 which is special-cased
so it can be preserved when writing the new master.passwd file
instead of being written as an unsigned number. OK deraadt@
jmc [Fri, 24 Apr 2015 21:03:58 +0000 (21:03 +0000)]
no more tip(1); ok nicm
nicm [Fri, 24 Apr 2015 20:58:44 +0000 (20:58 +0000)]
Set up signal handler earlier so that we don't get zombies, reported by
sobrado@.
nicm [Fri, 24 Apr 2015 20:57:51 +0000 (20:57 +0000)]
Document -h, and bring some consistency to the option descriptions. ok jmc
jmc [Fri, 24 Apr 2015 20:32:34 +0000 (20:32 +0000)]
tweaks; ok nicm
mlarkin [Fri, 24 Apr 2015 19:53:43 +0000 (19:53 +0000)]
Enable PAE mode for those CPUs that support it. This allows us to use the
NX bit for userland and kernel W^X. Unlike the previous c.2008 PAE
experiment, this does not provide > 4GB phys ram on i386 - PAE is solely
being used for NX capability this time. If you need > 4GB phys, use amd64.
Userland W^X was committed yesterday by kettenis@, and we will shortly
start reworking the kernel like we did for amd64 a few months back to get
kernel W^X.
This has been in snaps for a few days and tested by kettenis and myself
as well.
ok deraadt@, kettenis@
kettenis [Fri, 24 Apr 2015 19:41:58 +0000 (19:41 +0000)]
Make sure we keep the whole recursive mapping of the PDP instead of just the
mapping for the first page when tearing things down. Seems to fix the last
bug mlarkin@ has been chasing for a while.
ok mlarkin@
deraadt [Fri, 24 Apr 2015 18:49:54 +0000 (18:49 +0000)]
sync
nicm [Fri, 24 Apr 2015 18:06:54 +0000 (18:06 +0000)]
Trim down remote(5) to reflect what is supported by cu(1).
ok sthen jmc
deraadt [Fri, 24 Apr 2015 18:06:31 +0000 (18:06 +0000)]
remove the old tip SCCS note
nicm [Fri, 24 Apr 2015 18:05:21 +0000 (18:05 +0000)]
Remove tip(1), superseded by cu(1).
ok deraadt sthen bmercer
nicm [Fri, 24 Apr 2015 17:34:57 +0000 (17:34 +0000)]
Do not attempt to use ~/.magic if running as root (or issetugid()).
deraadt [Fri, 24 Apr 2015 17:19:06 +0000 (17:19 +0000)]
move an ugly space
nicm [Fri, 24 Apr 2015 17:10:50 +0000 (17:10 +0000)]
We need to loop over the files once to work out the width of the labels
before testing them.
nicm [Fri, 24 Apr 2015 16:47:32 +0000 (16:47 +0000)]
Trying to drop privileges means we can't handle ARG_MAX arguments, so
remove it for now.
nicm [Fri, 24 Apr 2015 16:45:32 +0000 (16:45 +0000)]
Add a couple of missing spaces (style nits).
nicm [Fri, 24 Apr 2015 16:30:06 +0000 (16:30 +0000)]
Use symbolic constants for st_mode flags, no binary change.
nicm [Fri, 24 Apr 2015 16:28:00 +0000 (16:28 +0000)]
If ~/.magic exists but can't be used, fail rather than silently falling
back to /etc/magic.
nicm [Fri, 24 Apr 2015 16:24:42 +0000 (16:24 +0000)]
Fix a couple of errors in the magic source files.
nicm [Fri, 24 Apr 2015 16:24:11 +0000 (16:24 +0000)]
New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced set of
options.
ok deraadt
mpi [Fri, 24 Apr 2015 15:26:22 +0000 (15:26 +0000)]
Revert back to using GCC builtins. This code triggers an off by one in
device_unref() as found by deraadt@.
deraadt [Fri, 24 Apr 2015 14:44:17 +0000 (14:44 +0000)]
another thinkpad event to ignore; from mp39590@gmail
sf [Fri, 24 Apr 2015 12:53:35 +0000 (12:53 +0000)]
vio: If enqueue fails, drop packet.
From brad@
kettenis [Fri, 24 Apr 2015 12:52:38 +0000 (12:52 +0000)]
Enable the NX bit and use it in the PAE pmap code. PAE is still disabled
while we're chasing at least one remaining bug.
ok mlarkin@, deraadt@
sobrado [Fri, 24 Apr 2015 10:57:36 +0000 (10:57 +0000)]
improve wording.
ok jmc@
dlg [Fri, 24 Apr 2015 08:08:29 +0000 (08:08 +0000)]
read_defaults has the thing for strtonum to chew on in cp, not
optarg.
fixes a segfault introduced by the atoi to strtonum change and
reported by ajacatout@
jmc [Fri, 24 Apr 2015 06:26:49 +0000 (06:26 +0000)]
combine -Dd onto one line and update usage();
djm [Fri, 24 Apr 2015 05:26:44 +0000 (05:26 +0000)]
add ssh-agent -D to leave ssh-agent in foreground without enabling
debug mode; bz#2381 ok dtucker@
jsg [Fri, 24 Apr 2015 02:22:08 +0000 (02:22 +0000)]
Use "softintr_pic0" instead of "softintr_fakepic" when faking a
struct device so there is enough space in the buffer for a NUL and
the unit is included in the string.
discussed with deraadt and millert
deraadt [Fri, 24 Apr 2015 01:36:24 +0000 (01:36 +0000)]
2*len -> use xreallocarray()
ok djm
deraadt [Fri, 24 Apr 2015 01:36:00 +0000 (01:36 +0000)]
rename xrealloc() to xreallocarray() since it follows that form.
ok djm
millert [Thu, 23 Apr 2015 17:11:42 +0000 (17:11 +0000)]
Replace atoi() usage with strtonum(). OK deraadt@
florian [Thu, 23 Apr 2015 17:03:01 +0000 (17:03 +0000)]
We cannot log errors with relay_close() before allocating
se_log evbuffer.
(Same problem as the one just fixed in httpd(8))
OK benno
florian [Thu, 23 Apr 2015 16:59:28 +0000 (16:59 +0000)]
We cannot log errors with server_close() before allocating
clt_log evbuffer.
server_close() calls server_log() which uses ctl_log.
Crash reported by Daniel Jakots <vigdis AT chown DOT me>, thanks!
OK benno
schwarze [Thu, 23 Apr 2015 16:17:04 +0000 (16:17 +0000)]
Unify mdoc_deroff() and man_deroff() into a common function deroff().
No functional change except that for mdoc(7), it now skips leading
escape sequences just like it already did for man(7).
Escape sequences rarely occur in mdoc(7) code and if they do,
skipping them is an improvement in this context.
Minus 30 lines of code.
schwarze [Thu, 23 Apr 2015 15:35:39 +0000 (15:35 +0000)]
Get rid of two empty wrapper functions. No functional change.
mpi [Thu, 23 Apr 2015 14:42:02 +0000 (14:42 +0000)]
Fix 13 years old typo that should be responsible for the unhappiness
of UVM on PowerPC architectures by breaking pmap_is_referenced() and
friends.
ok kettenis@
dlg [Thu, 23 Apr 2015 09:56:23 +0000 (09:56 +0000)]
tedu remnants of the previous attempt to implement page zeroing in
the idle thread.
ok deraadt@
dlg [Thu, 23 Apr 2015 09:45:24 +0000 (09:45 +0000)]
replace the use of struct ifqueue in pipex with mbuf_queues.
this has a slight semantic change. previously pipex would only
process up to 128 packets on the input and output queues at a time
and would reschedule the softint if there were any left. now it
mq_delists the current set of pending packets and only processes
them. if anything is added to the queues later they'll cause the
softint to run again.
this in turn lets us deprecate sysctl_ifq since nothing uses it
anymore. because niqueues are mostly wrappers around mbuf_queues,
we can provide sysctl_mq and just #define sysctl_niq to it.
pipex bits are ok yasuoka@
deraadt [Thu, 23 Apr 2015 07:45:50 +0000 (07:45 +0000)]
use reallocarray instead of calloc; avoid the zero before infill
ok nicm
deraadt [Thu, 23 Apr 2015 06:11:19 +0000 (06:11 +0000)]
Do not need to buf[0] = 0 before strlcpy(buf, ...
deraadt [Thu, 23 Apr 2015 05:58:14 +0000 (05:58 +0000)]
delete a NOTDEF of unused code
deraadt [Thu, 23 Apr 2015 05:26:33 +0000 (05:26 +0000)]
KNF and other style adjustments to make this more scrutible.
reviewed by millert
dtucker [Thu, 23 Apr 2015 05:01:19 +0000 (05:01 +0000)]
Add a simple regression test for sshd's configuration parser. Right now,
all it does is run the output of sshd -T back through itself and ensure
the output is valid and invariant.
dtucker [Thu, 23 Apr 2015 04:59:10 +0000 (04:59 +0000)]
Two small fixes for sshd -T: ListenAddress'es are added to a list head so
reverse the order when printing them to ensure the behaviour remains the same,
and print StreamLocalBindMask as octal with leading zero. ok deraadt@
dtucker [Thu, 23 Apr 2015 04:53:53 +0000 (04:53 +0000)]
Check for and reject missing arguments for VersionAddendum and ForceCommand.
bz#2281, patch from plautrba at redhat com, ok djm@
jsg [Thu, 23 Apr 2015 02:55:15 +0000 (02:55 +0000)]
avoid an uneeded deref
ok blambert@ guenther@
deraadt [Thu, 23 Apr 2015 02:13:18 +0000 (02:13 +0000)]
error in strtonum() conversion; found by Nathanael Rensen
dlg [Thu, 23 Apr 2015 00:49:37 +0000 (00:49 +0000)]
dont need \n on panic strings