schwarze [Sat, 20 Aug 2016 15:58:16 +0000 (15:58 +0000)]
When scanning upwards for a column list to put a .Ta macro in,
ignore body end markers of lists breaking other blocks.
Fixing a logical error that caused a NULL deref found by tb@ with afl(1).
kettenis [Sat, 20 Aug 2016 15:44:04 +0000 (15:44 +0000)]
Replace bcmmuart(4) with com(4).
ok patrick@
jca [Sat, 20 Aug 2016 15:10:18 +0000 (15:10 +0000)]
Tweak timer debug output.
-RA timer on em0 is set to 16:0
+RA timer on em0 is set to 16.0s
jca [Sat, 20 Aug 2016 15:05:52 +0000 (15:05 +0000)]
Move counters from u_quad_t to uint64_t.
Printing is already done with %llu/(unsigned long long) casts.
tb [Sat, 20 Aug 2016 15:04:21 +0000 (15:04 +0000)]
fsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),
add a special case for the missing "rpath" and "tty" promises.
Issue found and initial analysis by Jan Stary, thanks!
ok deraadt
schwarze [Sat, 20 Aug 2016 14:43:39 +0000 (14:43 +0000)]
If a column list starts with implicit rows (that is, rows without .It)
and roff-level nodes (e.g. tbl or eqn) follow, don't run into an
assertion. Instead, wrap the roff-level nodes in their own row.
Issue found by tb@ with afl(1).
patrick [Sat, 20 Aug 2016 14:35:28 +0000 (14:35 +0000)]
Remove obsolete sxiuart(4) header.
Noticed by mglocker@.
patrick [Sat, 20 Aug 2016 13:24:38 +0000 (13:24 +0000)]
sxiuart(4) has been replaced with com(4).
ok kettenis@
jmc [Sat, 20 Aug 2016 12:54:49 +0000 (12:54 +0000)]
shorten pkcs7 text;
kettenis [Sat, 20 Aug 2016 12:36:59 +0000 (12:36 +0000)]
Correctly enter a mapping as writable if no "page modified" emulation
is needed.
ok visa@, patrick@
kettenis [Sat, 20 Aug 2016 10:41:54 +0000 (10:41 +0000)]
Figuring out the clock frequency used for a com(4) device on armv7 is hard.
Avoid doing so for the early console and instead rely on the firmware to
set up the right baud rate and such.
ok visa@, millert@, jsg@
procter [Sat, 20 Aug 2016 08:34:30 +0000 (08:34 +0000)]
Push 'field changed' guards into 'change field' functions;
optimise pf_patch_32(); simplify pf_match_addr()
OK mikeb@
procter [Sat, 20 Aug 2016 08:31:36 +0000 (08:31 +0000)]
Retire pf_translate_ap()
OK mpi@ mikeb@
jmc [Sat, 20 Aug 2016 07:56:09 +0000 (07:56 +0000)]
shorten the passwd text; ok jsing
tedu [Fri, 19 Aug 2016 20:48:36 +0000 (20:48 +0000)]
move mem.c to hppa directory like every other arch.
(probably landed in dev because it has support for this viper thing,
but i like consistency for the /dev/null parts.)
ok kettenis
kettenis [Fri, 19 Aug 2016 19:07:37 +0000 (19:07 +0000)]
Make the FSR encoding strings match the ARMv7 ARM.
kettenis [Fri, 19 Aug 2016 18:25:53 +0000 (18:25 +0000)]
Seems we need to hold the PHY into reset a little bit longer. Without it
Theo's Cubox-i comes up without working Ethernet after a warm boot.
ok deraadt@
kettenis [Fri, 19 Aug 2016 17:39:37 +0000 (17:39 +0000)]
Add support for arm and enable on armv7.
kettenis [Fri, 19 Aug 2016 17:31:04 +0000 (17:31 +0000)]
Start using to XN flag to enforce that mappings without PROT_EXEC are
non-executable.
ok visa@, deraadt@
kettenis [Fri, 19 Aug 2016 15:47:27 +0000 (15:47 +0000)]
Mark device memory as execute-never to prevent a speculative instruction fetch
to access it.
eric [Fri, 19 Aug 2016 15:35:08 +0000 (15:35 +0000)]
make smtpd less verbose at startup
ok gilles@ sunil@ jung@ millert@
kettenis [Fri, 19 Aug 2016 15:31:10 +0000 (15:31 +0000)]
Map kernel .text read-only.
Spotted by deraadt@
kettenis [Fri, 19 Aug 2016 14:05:23 +0000 (14:05 +0000)]
Adjust the definitions of L1_S_COHERENT_v7, L2_L_COHERENT_v7 and
L2_S_COHERENT_v7 such that bus_dmamap_sync(9) avoids unnecessary cache
flushes again for DMA'able memory mapped with the BUS_DMA_COHERENT flag.
I broke this in pmap7.c rev 1.35.
ok tom@
kettenis [Fri, 19 Aug 2016 13:56:08 +0000 (13:56 +0000)]
Use Access Flag to do page reference emulation.
ok visa@
danj [Fri, 19 Aug 2016 10:57:24 +0000 (10:57 +0000)]
update man pages now that login.conf uses auto rounds
better wording/ok sthen@ ok jmc@
mpi [Fri, 19 Aug 2016 09:40:39 +0000 (09:40 +0000)]
Reorder entries to match current multipath ordering.
jsg [Fri, 19 Aug 2016 09:06:24 +0000 (09:06 +0000)]
correct a rate test introduced in rev 1.326
ok stsp@
jmc [Fri, 19 Aug 2016 08:46:38 +0000 (08:46 +0000)]
shorten the ocsp text; ok beck
otto [Fri, 19 Aug 2016 08:06:25 +0000 (08:06 +0000)]
Start with a default fragsize of 2048, double it for large disks and then cap
based on sector size. This avoid too large fragments on 4k disks. Problem
noted by David Vasek; ok krw@
mpi [Fri, 19 Aug 2016 07:12:54 +0000 (07:12 +0000)]
Do not seroize a struct needed for RTM_RESOLVE in the hot path.
ok phessler@, bluhm@, tedu@, natano@
djm [Fri, 19 Aug 2016 06:44:13 +0000 (06:44 +0000)]
add tests for matching functions
jsg [Fri, 19 Aug 2016 05:25:08 +0000 (05:25 +0000)]
avoid using an uninitialised variable with zero length iic_exec calls
djm [Fri, 19 Aug 2016 03:18:06 +0000 (03:18 +0000)]
remove UseLogin option and support for having /bin/login manage
login sessions; ok deraadt markus dtucker
deraadt [Fri, 19 Aug 2016 01:37:50 +0000 (01:37 +0000)]
string.h not strings.h
millert [Thu, 18 Aug 2016 22:29:02 +0000 (22:29 +0000)]
Add an EXAMPLES section that illustrates how to deal with connect(2)
returning EINTR. OK jung@ deraadt@
bru [Thu, 18 Aug 2016 21:12:35 +0000 (21:12 +0000)]
Reset the input state completely when wsmouse is (re-)opened.
ok mpi@
deraadt [Thu, 18 Aug 2016 19:59:16 +0000 (19:59 +0000)]
uvm_wxcheck() should only abort the process if kern.wxabort is set.
The new semantics are W^X violations are reported to the application
via ENOTSUP. Forgot to fix this during the last change.
Spotted by kettenis
millert [Thu, 18 Aug 2016 16:23:06 +0000 (16:23 +0000)]
Move connect_sync() to util.c and use it when connecting via http
too. OK sthen@ deraadt@
jmc [Thu, 18 Aug 2016 16:12:05 +0000 (16:12 +0000)]
use a more standard page layout; ok mlarkin
mikeb [Thu, 18 Aug 2016 15:56:54 +0000 (15:56 +0000)]
Update NVS protocol structure definitions to the 2016 version
Microsoft has considerably cleaned up the style and it makes sense
to keep in sync with the maintained upstream version in FreeBSD.
jsing [Thu, 18 Aug 2016 15:52:03 +0000 (15:52 +0000)]
Split out the TLS server SSL_CTX allocation and configuration code, so
that it can be reused to allocate the additional SSL_CTXs needed for SNI.
ok reyk@
jsing [Thu, 18 Aug 2016 15:43:12 +0000 (15:43 +0000)]
Rework parts of the libtls man page for clarity. Split out the connection
information related functions under their own heading and dedup the text
relating to when these functions can be called.
With input from and ok jmc@
jmc [Thu, 18 Aug 2016 14:12:51 +0000 (14:12 +0000)]
word fix, from remi locherer; ok reyk
sthen [Thu, 18 Aug 2016 12:29:53 +0000 (12:29 +0000)]
document USE_WXNEEDED, feedback/ok jca jasper
jmc [Thu, 18 Aug 2016 12:07:21 +0000 (12:07 +0000)]
shorten the nseq text;
jsg [Thu, 18 Aug 2016 11:59:58 +0000 (11:59 +0000)]
add a missing splx in an error path
ok millert@ stsp@
jmc [Thu, 18 Aug 2016 11:45:18 +0000 (11:45 +0000)]
punctuation fix;
sthen [Thu, 18 Aug 2016 11:36:14 +0000 (11:36 +0000)]
sync
jmc [Thu, 18 Aug 2016 11:33:48 +0000 (11:33 +0000)]
various fixes for previous;
kettenis [Thu, 18 Aug 2016 09:28:22 +0000 (09:28 +0000)]
Separate out the Access Flag bit from the Access Permission bits in the
armv7 pmap.
ok tom@
mikeb [Thu, 18 Aug 2016 09:20:01 +0000 (09:20 +0000)]
Clean up style and replace a magic value with a magic define
jsg [Thu, 18 Aug 2016 06:36:02 +0000 (06:36 +0000)]
init a variable to address https://kb.isc.org/article/AA-01272
Most of bind got removed and this function is not called
by any of the remaining parts.
ok deraadt@ a long time ago.
dlg [Thu, 18 Aug 2016 06:01:10 +0000 (06:01 +0000)]
fix panics caused by replacing m_copym2 with m_dup_pkt.
m_copym2 is fine duplicating an arbitrary chain of mbufs, while
m_dup_pkt wants to dup a packet with proper headers in the first
mbuf. ipsec copied the tail of an mbuf if any of the clusters are
shared or readonly, and swapped that tail with the result of m_copym2.
m_dup_pkt panics cos of that.
this makes ipsec duplicate the whole packet if any of the chain is
readonly.
found by naddy@ and mlarkin@
this fix is from visa@ who told me to commit it cos he's afk (sleeping)
tested by naddy@
jsg [Thu, 18 Aug 2016 00:45:52 +0000 (00:45 +0000)]
fix fd leaks in error paths
ok reyk@
jsg [Thu, 18 Aug 2016 00:44:37 +0000 (00:44 +0000)]
fix an fd leak
ok schwarze@
mlarkin [Thu, 18 Aug 2016 00:06:32 +0000 (00:06 +0000)]
add section on VM networking. more to come, this is a starting point for
further documentation.
tedu [Wed, 17 Aug 2016 22:15:08 +0000 (22:15 +0000)]
% is escaped with more %, not backslash.
schwarze [Wed, 17 Aug 2016 21:23:01 +0000 (21:23 +0000)]
Add HISTORY section.
Information found on: http://www.tuhs.org/cgi-bin/utree.pl
Checked by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
schwarze [Wed, 17 Aug 2016 20:46:06 +0000 (20:46 +0000)]
When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database
format slightly and causing the page to not be considered part of
any section, not even if a section could be deduced from the directory
or from the file name.
Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
schwarze [Wed, 17 Aug 2016 18:58:31 +0000 (18:58 +0000)]
When reading back a mandoc.db(5) file in order to apply incremental
changes, do not prepend a stray NAME_FILE (0x10) byte to the first
names of pages.
Bug found while investigating another issue reported by sthen@.
deraadt [Wed, 17 Aug 2016 18:07:07 +0000 (18:07 +0000)]
Generate syslog warnings for %s fmt strings NULL to "(null)" conversions.
Over time we can repair software which performs this non-standard behaviour,
and fix bugs along the way. Let's first find out how bad the situation is
by deploying this in snapshots.
This type of logging is possible because OpenBSD syslog_r(3) -> sendsyslog(2)
is side-effect free enough to be used in the bowels of libc.
ok tedu
schwarze [Wed, 17 Aug 2016 18:05:40 +0000 (18:05 +0000)]
Make sure manuals in architecture-independent directories are treated
as architecture-independent even if they abuse the third (architecture)
argument of the .Dt macro for random stuff like "freetds reference manual".
While the .Dt syntax is not the same as the .TH syntax in man(7),
punishing offenders by treating them as architecture-dependent and
hence completely excluding them from searches is too severe.
Problem reported by sthen@.
mikeb [Wed, 17 Aug 2016 17:39:41 +0000 (17:39 +0000)]
Sync up monitor trigger groups handling to the upstream
Replace hand rolled atomic bit operations and use MI ones from DRM
and convert event matrixes to arrays of longs.
mikeb [Wed, 17 Aug 2016 17:18:38 +0000 (17:18 +0000)]
Replace hand rolled atomic bit operations and use MI ones from DRM
deraadt [Wed, 17 Aug 2016 16:13:26 +0000 (16:13 +0000)]
sync
krw [Wed, 17 Aug 2016 13:53:20 +0000 (13:53 +0000)]
Use more dhcp info when trying autoinstall/autoupgrade.
For the file name try 'filename' then 'option bootfile-name'.
For the server name try 'server-name' then 'option tftp-server-name' then
'next-server'.
Original idea from Patrick Lundin. Suggestions from rpe@.
Tweaks & ok halex@
bluhm [Wed, 17 Aug 2016 13:53:14 +0000 (13:53 +0000)]
Fix an mbuf leak and missing error propagation in uipc_usrreq(PRU_SEND)
in case sbappendcontrol() fails.
From Simon Mages; OK mikeb@
patrick [Wed, 17 Aug 2016 13:44:48 +0000 (13:44 +0000)]
Nothing from the original Wasabi code remains, so replace the copyright
with the standard ISC license.
ok kettenis@ jsg@
patrick [Wed, 17 Aug 2016 13:26:40 +0000 (13:26 +0000)]
Remove bogus suspend/resume code from armv7 com(4) attachment driver.
The code initially arrived when the zaurus driver was copied. As we
don't suspend on ARMv7, just get rid of it.
Prompted by jsg@ and kettenis@.
patrick [Wed, 17 Aug 2016 13:05:02 +0000 (13:05 +0000)]
Replace sxiuart(4) with the mostly compatible com(4).
The Synopsys DesignWare 8250 throws an interrupt if it detects a write
to LCR while it was busy. Read the USR register to clear the interrupt
so we don't get flooded.
The sunxi machines also use a different frequency on the consoles. As
we have no clock framework, especially not for early consoles, match on
known Allwinner compatibles to set a known frequency.
ok kettenis@ mglocker@
bluhm [Wed, 17 Aug 2016 12:22:27 +0000 (12:22 +0000)]
syslogd(8) uses new libtls certificate and key file loading. So
the tests behave a little bit different now.
bluhm [Wed, 17 Aug 2016 12:18:29 +0000 (12:18 +0000)]
By using the new tls_config_load_file() feature, syslogd(8) certificate
and key loading can be simplified.
OK jsing@
millert [Wed, 17 Aug 2016 12:02:38 +0000 (12:02 +0000)]
When returning the file size info, only use z_total_in/z_total_out
for the read (inflate) case where there might be multiple streams.
For the write (deflate) case there can only be a single stream so
just use the per-stream total_in/total_out. Fixes "gzip -v" byte
counts. OK henning@.
kettenis [Wed, 17 Aug 2016 11:56:42 +0000 (11:56 +0000)]
Fix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
of "ir" as the orq and andq instructions take a 32-bit immedate argument that
gets sign-extended.
ok mikeb@
stsp [Wed, 17 Aug 2016 11:52:29 +0000 (11:52 +0000)]
Document RT3900E (RT5390 / RT5392) support in ral(4).
Ported from FreeBSD by James Hastings.
stsp [Wed, 17 Aug 2016 11:50:52 +0000 (11:50 +0000)]
Add support for RT5390 and RT5392 chipsets to the ral(4) driver.
Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
Ported from FreeBSD by James Hastings.
stsp [Wed, 17 Aug 2016 11:47:57 +0000 (11:47 +0000)]
Update ral(4) firmware for RT2860 family devices.
Required for upcoming RT5390 and RT5392 chipset support.
Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
Ported from FreeBSD by James Hastings.
kevlo confirmed this version of the firmware is still ISC licensed.
dlg [Wed, 17 Aug 2016 11:09:01 +0000 (11:09 +0000)]
use a register variable to get at the curcpu pointer in %g7
this lets us define curcpu(), cpu_number(), etc as derefs of this
variable rather than having to write asm to copy it into another
register for the same derefs.
this provides shorter inlined code that wastes less registers.
ok kettenis@ who notes we use this these on other archs already
stsp [Wed, 17 Aug 2016 11:08:08 +0000 (11:08 +0000)]
wpi(4) scans all bands at once, as far as the net80211 stack is concerned.
So set the appropriate scan capability flags in the ic.
ok sthen@
dlg [Wed, 17 Aug 2016 10:49:09 +0000 (10:49 +0000)]
we have some spare interrupt levels, so move softnet above softclock.
ok kettenis@
stsp [Wed, 17 Aug 2016 10:01:34 +0000 (10:01 +0000)]
regen
stsp [Wed, 17 Aug 2016 10:01:20 +0000 (10:01 +0000)]
Add PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.
Part of a larger patch by James Hastings.
stsp [Wed, 17 Aug 2016 09:43:27 +0000 (09:43 +0000)]
iwn(4) scans all bands at once, as far as the net80211 stack is concerned.
So set the appropriate scan capability flags in the ic.
ok sthen@
stsp [Wed, 17 Aug 2016 09:42:03 +0000 (09:42 +0000)]
If a wireless device or driver scans all bands at once give 5GHz APs
a slight priority in cases where good matches exist in either band.
ok sthen@
stsp [Wed, 17 Aug 2016 09:39:38 +0000 (09:39 +0000)]
If the stack demands protection by setting the USEPROT flag then set the
corresponding bit in the iwm(4) Tx command regardless of frame length.
ok sthen@
phessler [Wed, 17 Aug 2016 08:14:40 +0000 (08:14 +0000)]
pluralize a word
phessler [Wed, 17 Aug 2016 08:13:52 +0000 (08:13 +0000)]
The man page is a bit confusing for how we can control which address
families we support during capabilities negotiation. Re-organize the
man page to be more clear, and explicitly state what the default is.
OK sthen@ benno@
otto [Wed, 17 Aug 2016 05:33:54 +0000 (05:33 +0000)]
wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@
deraadt [Wed, 17 Aug 2016 05:07:13 +0000 (05:07 +0000)]
small bits of header cleanup; ok mlarkin
procter [Wed, 17 Aug 2016 03:24:11 +0000 (03:24 +0000)]
Reintroduce 5.3-style checksum modification to preserve end-to-end checksums
when fiddling with packets but without the mess that motivated Henning to
remove it. Affects only this one aspect of Henning's checksum work. Also tweak
the basic algorithm and supply a correctness argument.
OK dlg@ deraadt@ sthen@; no objection henning@
krw [Wed, 17 Aug 2016 01:17:54 +0000 (01:17 +0000)]
Move to iopool. No voluntary testers after several years of requests so now
everybody gets to test!
krw [Wed, 17 Aug 2016 01:16:11 +0000 (01:16 +0000)]
Move to iopool. No voluntary testers after several years of requests so now
everybody gets to test!
krw [Wed, 17 Aug 2016 01:02:31 +0000 (01:02 +0000)]
Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid
value.
Specs from mikeb@, ok dlg@
krw [Wed, 17 Aug 2016 00:55:33 +0000 (00:55 +0000)]
KNF and clean up many comments.
krw [Wed, 17 Aug 2016 00:38:26 +0000 (00:38 +0000)]
Ansify function definitions.
Diff from Edgar Pettijohn.
dlg [Tue, 16 Aug 2016 23:49:35 +0000 (23:49 +0000)]
splraise() is an MI API now.
ok deraadt@ jmc@ mpi@
vgross [Tue, 16 Aug 2016 22:25:08 +0000 (22:25 +0000)]
Add regression tests for IP_SENDSRCADDR.
vgross [Tue, 16 Aug 2016 22:21:17 +0000 (22:21 +0000)]
Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
IP_SENDSRCADDR == IP_RECVDSTADDR.
OK sthen@ jca@ bluhm@
krw [Tue, 16 Aug 2016 21:57:51 +0000 (21:57 +0000)]
Track SSID in leases file and only consider leases from the current SSID when
starting up dhclient on wifi interfaces. In theory will preserve leases from
other SSID's and speed up obtaining a lease by not wasting time attempting
to re-acquire a lease from a different SSID.
Experimental feature from n2k16 needing some real world testing before g2k16.
natano [Tue, 16 Aug 2016 21:32:58 +0000 (21:32 +0000)]
There is no sense in doing caching in fusefs. In case of a non-local
filesystem the tree can change behind our back, resulting in stale cache
entries. "The only winning move is not to play."
ok tedu beck mpi