eric [Sat, 28 Sep 2019 11:21:07 +0000 (11:21 +0000)]
correctly handle read(2) return value.
fix issue reported by Mikolaj Kucharski.
ok martijn@ deraadt@
semarie [Sat, 28 Sep 2019 06:25:57 +0000 (06:25 +0000)]
ensure dependency_libs and libdir are defined after parsing .la file.
problem raised with librsvg which use libtool-rust, and our libtool just die if
deplib_list is undef.
tested in bulk by sthen@ and naddy@
"modern" perl practice/syntax suggested by espie@
makes sense sthen@
ok espie@
krw [Fri, 27 Sep 2019 23:07:42 +0000 (23:07 +0000)]
Use consistent idiom/naming convention for the the #include
guards. Spelunkers using grep are easily confused.
jmc [Fri, 27 Sep 2019 20:44:22 +0000 (20:44 +0000)]
fix gary zukav's "acceptance without proof" quote, which just appeared on
my screen.
i don;t have a copy of this book, and a brief search online shows conflicting
punctuation, but i've chosen to replace the comma splice with a full stop,
which is at least grammatically correct, and seems the most likely solution.
whether this quote needs to be in two files escapes me...
jmc [Fri, 27 Sep 2019 20:03:24 +0000 (20:03 +0000)]
fix the DH-GEX text in -a;
because this required a comma, i added a comma to the first part, for balance...
krw [Fri, 27 Sep 2019 17:22:31 +0000 (17:22 +0000)]
Add/tweak #endif comments to make spelunking via grep more rewarding.
krw [Fri, 27 Sep 2019 16:03:45 +0000 (16:03 +0000)]
Shuffle and consolidate SCSIDEBUG declarations into fewer sections in
more intuitive locations.
claudio [Fri, 27 Sep 2019 14:58:07 +0000 (14:58 +0000)]
Make umb(4) add a default route when configuring the interface. This route
has a lower priority than wifi or wired LAN and so should only be used when
no other interface is available. With this using umb(4) becomes less painful
Now ifconfig umb0 up will be enough especially if unwind(8) is used to handle
DNS requests.
OK deraadt@ job@ benno@
claudio [Fri, 27 Sep 2019 14:50:39 +0000 (14:50 +0000)]
Move the rde_send_pftable_commit() our of the prefix_update and withdraw
function and up higher in the call stack. While there also make sure that
flushing announced networks does the pftable dance. This is now also using
prefix_withdraw like most other code. Reshuffle rde_update_dispatch() a bit
so that all returns are before the first update or withdraw call. After that
the code always exits via the end of the function where the commit happens.
OK benno@
claudio [Fri, 27 Sep 2019 10:34:54 +0000 (10:34 +0000)]
Implement 'bgpctl show rib 8.8.8.8 or-shorter' to show all routes covering
8.8.8.8. Additionally add 'or-longer' as an alias for 'all'.
OK job@ sthen@
claudio [Fri, 27 Sep 2019 10:33:06 +0000 (10:33 +0000)]
Implement F_SHORTER in the prefix lookup code for bgpctl. F_SHORTER will
match all prefixes that have a shorter prefixlen than the one in the request.
It will print all routes which cover the specified prefix.
OK job@ sthen@
claudio [Fri, 27 Sep 2019 10:26:32 +0000 (10:26 +0000)]
Move the code to initialize the cluster-id from merge_config() to
parse_config(). The first is not called on startup which results in bgpd
using 0.0.0.0 as cluster-id.
Found and fix provided by Rivo Nurges (Rivo dot Nurges at smit dot ee)
Thanks and OK claudio@
dtucker [Fri, 27 Sep 2019 05:25:12 +0000 (05:25 +0000)]
Test for empty result in expected bits. Remove CRs from log as they
confuse tools on some platforms. Re-enable the 3des-cbc test.
brynet [Fri, 27 Sep 2019 01:26:46 +0000 (01:26 +0000)]
Use a better scale value in ksmn(4), this produces a slightly more
stable result when idle and under some load.
Tested by abieber@ on a R7 PRO 2700U, also by me on a R5 2500U MateBook D,
and a R7 2700X desktop.
Discussed with @nte@bsd.network.
OK abieber@
claudio [Thu, 26 Sep 2019 17:07:30 +0000 (17:07 +0000)]
For whatever reason it is fairly common that a ROA object references a CRL
that is not in the store. Put this paricular error under verbose logging.
Agreed by deraadt@, job@
deraadt [Thu, 26 Sep 2019 16:06:36 +0000 (16:06 +0000)]
sync
brynet [Thu, 26 Sep 2019 13:09:55 +0000 (13:09 +0000)]
Add short manual for ksmn(4) driver.
brynet [Thu, 26 Sep 2019 12:59:01 +0000 (12:59 +0000)]
Add a new driver for getting AMD CPU temperature sensor over the SMN.
This currently supports Family 17h Zen/Zen+/Zen2 CPUs. The are still
some issues with the scaler on certain models that can be fixed later.
AMD Ryzen 2700X:
hw.sensors.ksmn0.temp0=47.50 degC
Tested by several people.
"Make a move" deraadt@
brynet [Thu, 26 Sep 2019 12:56:44 +0000 (12:56 +0000)]
regen
brynet [Thu, 26 Sep 2019 12:55:53 +0000 (12:55 +0000)]
Add "AMD64 17h/3xh Root Complex" device.
tobhe [Thu, 26 Sep 2019 12:08:08 +0000 (12:08 +0000)]
Use SPI_SA() instead of __func__ in all logging calls. Use log_info
instead of log_debug in error cases.
ok bluhm@ sthen@
tobhe [Thu, 26 Sep 2019 07:33:36 +0000 (07:33 +0000)]
Fix leaks by cleaning up after configuration parser.
ok bluhm@
jmatthew [Thu, 26 Sep 2019 03:00:30 +0000 (03:00 +0000)]
enable iavf(4)
ok deraadt@
bluhm [Wed, 25 Sep 2019 21:06:19 +0000 (21:06 +0000)]
Update libexpat to 2.2.8. CVE-2019-15903 has been fixed earlier
in our tree. Relevant is only bug fix #240. Most of the upstream
diff is automated source format change.
OK deraadt@
bluhm [Wed, 25 Sep 2019 20:34:11 +0000 (20:34 +0000)]
When battery state switches to critical, apmd(8) generates an
emergency log message. Then syslogd(8) could select on that and
write a warning to all users.
OK benno@ deraadt@
nicm [Wed, 25 Sep 2019 19:05:59 +0000 (19:05 +0000)]
Style and line length nits.
deraadt [Wed, 25 Sep 2019 17:06:15 +0000 (17:06 +0000)]
sync
deraadt [Wed, 25 Sep 2019 17:04:45 +0000 (17:04 +0000)]
the mentioned .Fn functions are in a another file, so .Xr them
ok jmc
jmc [Wed, 25 Sep 2019 17:02:00 +0000 (17:02 +0000)]
pcap-filter now section 5: adjust Xr
jmc [Wed, 25 Sep 2019 16:59:00 +0000 (16:59 +0000)]
mdoc version of pcap-filter;
conversion suggested by deraadt, as well as renaming
from section 7 to section 5;
ok deraadt
sthen [Wed, 25 Sep 2019 15:35:50 +0000 (15:35 +0000)]
also show peer AS and description in "bgpctl sh nei group XXX terse" output
ok deraadt@ claudio@
florian [Wed, 25 Sep 2019 14:42:52 +0000 (14:42 +0000)]
Let sysupgrade(8) handle cleanup of downloaded sets by filling in
/etc/rc.firsttime in preparation of moving the functionality out of
install.sub.
OK deraadt
florian [Wed, 25 Sep 2019 14:41:40 +0000 (14:41 +0000)]
Do not leak cur_ns in case of malformed lease file.
Found by llvm's scan-build.
OK deraadt, benno
florian [Wed, 25 Sep 2019 14:40:59 +0000 (14:40 +0000)]
Be more robust when dealing with malformed lease files.
Do not assume that required tokens have been generated by strsep.
(toks[0] cannot be NULL but it doesn't hurt to be explicit about it.)
Found by llvm's scan-build.
OK deraadt, kn
kevlo [Wed, 25 Sep 2019 09:30:28 +0000 (09:30 +0000)]
Argument order fix for MCLGETI.
ok claudio@
kettenis [Wed, 25 Sep 2019 09:21:49 +0000 (09:21 +0000)]
Enable interrupts while running interrupt handlers like we do on arm64.
ok patrick@, jsg@
jsg [Wed, 25 Sep 2019 06:24:46 +0000 (06:24 +0000)]
adjust for U-Boot RK3288 changes
jsg [Wed, 25 Sep 2019 06:20:22 +0000 (06:20 +0000)]
Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).
ok kettenis@ patrick@
tobhe [Wed, 25 Sep 2019 05:51:24 +0000 (05:51 +0000)]
Update acces point channel in node list when receiving packets from same
AP on a new channel. Not doing so leads to a disconnect because AP
messages on the new channel are ignored.
nicm [Tue, 24 Sep 2019 20:44:58 +0000 (20:44 +0000)]
Some minor performance improvements - most notably, don't search the
input state table if the next character matches the same state as before.
nicm [Tue, 24 Sep 2019 15:52:14 +0000 (15:52 +0000)]
Couple of bits of minor cleanup.
florian [Tue, 24 Sep 2019 15:21:26 +0000 (15:21 +0000)]
Let sysupgrade(8) create auto_upgrade.conf file in preparation of
moving the functionality out of install.sub.
OK deraadt
nicm [Tue, 24 Sep 2019 14:50:08 +0000 (14:50 +0000)]
Mouse formats don't work in copy mode so don't try to use them.
sthen [Tue, 24 Sep 2019 14:46:09 +0000 (14:46 +0000)]
add the neighbour's address, to disambiguate peers in the output from
"bgpctl sh nei group XX terse". feedback benno@ ok claudio@
visa [Tue, 24 Sep 2019 14:39:43 +0000 (14:39 +0000)]
visa [Tue, 24 Sep 2019 14:38:14 +0000 (14:38 +0000)]
Enable eephy(4) on octeon.
OK deraadt@
visa [Tue, 24 Sep 2019 14:37:03 +0000 (14:37 +0000)]
Recognize Marvell
88E1545.
OK deraadt@
visa [Tue, 24 Sep 2019 14:36:00 +0000 (14:36 +0000)]
regen
visa [Tue, 24 Sep 2019 14:35:22 +0000 (14:35 +0000)]
Add Marvell
88E1545.
OK deraadt@
deraadt [Tue, 24 Sep 2019 12:50:46 +0000 (12:50 +0000)]
identity_file[] should be PATH_MAX, not the arbitrary number 1024
krw [Tue, 24 Sep 2019 12:30:00 +0000 (12:30 +0000)]
Use consistent names for unused flags/quirks when printing same under
SCSIDEBUG.
mlarkin [Tue, 24 Sep 2019 12:14:54 +0000 (12:14 +0000)]
vmd(8): fix memory leak in virtio network TX path.
ok reyk, mpi, benno, tb
mlarkin [Tue, 24 Sep 2019 12:12:46 +0000 (12:12 +0000)]
vmd(8): virtio.c whitespace removal
nicm [Tue, 24 Sep 2019 09:58:58 +0000 (09:58 +0000)]
Make select-pane -P set window-active-style also to match previous
behaviour, reported by Thomas Sattler.
kettenis [Mon, 23 Sep 2019 18:10:43 +0000 (18:10 +0000)]
Implement DVFS support.
ok patrick@
nicm [Mon, 23 Sep 2019 15:41:11 +0000 (15:41 +0000)]
Use the correct size for new windows when window-size is latest,
reported by Vamsi Krishna Avula in GitHub issue 1917.
krw [Mon, 23 Sep 2019 15:21:17 +0000 (15:21 +0000)]
When printing the scsi_link info under SCSIDEBUG show state, luns,
openings, flags and quirks.
bluhm [Mon, 23 Sep 2019 11:00:42 +0000 (11:00 +0000)]
Do more sanity checks when accepting socket addresses in routing
messages from user land. Inspect length field early in rtm_xaddrs().
Strings must be NUL terminated. The socket address type and length
depend on the routing message type. Currently checks are not super
strict to avoid too much user land fallout.
OK mpi@
Reported-by: syzbot+638dbf7851da8e255af5@syzkaller.appspotmail.com
bluhm [Mon, 23 Sep 2019 08:34:07 +0000 (08:34 +0000)]
Add lastcomm(1) test for system call from writeable memory. This
requires that /usr/obj is mounted wxallowed, otherwise the test is
skipped. Split the stack map test into two stack pointer validation
tests, one during syscall and one in the trap handler.
Currently the tests during system call fail on amd64 as the signal
handler is not executed properly. On i386 and arm64 they pass. On
armv7 something else is broken.
kettenis [Sun, 22 Sep 2019 19:13:45 +0000 (19:13 +0000)]
Make the code that calculates the min/max priorities identical to the arm64
version. The divergence was probably an accident and the arm64 code makes
more sense and is better tested.
ok patrick@
kettenis [Sun, 22 Sep 2019 15:17:03 +0000 (15:17 +0000)]
Reduce diffs to arm64 version of this. Mostly whitespace changes.
No functional changes.
kettenis [Sun, 22 Sep 2019 15:05:37 +0000 (15:05 +0000)]
Fix ampintc_cpuinit() prototype.
semarie [Sun, 22 Sep 2019 11:49:53 +0000 (11:49 +0000)]
few corrections on srs grammar
ok gilles@
mlarkin [Sun, 22 Sep 2019 08:47:54 +0000 (08:47 +0000)]
vmm(4): fix a wrong comment in vmmopen()
ajacoutot [Sun, 22 Sep 2019 08:38:57 +0000 (08:38 +0000)]
Add code to handle future sysupgrade(8) change where the tool will be
responsible for creating auto_upgrade.conf.
No behavior change intended.
While here, add missing `-x' to usage().
tested by and ok florian@, ok deraadt@
visa [Sun, 22 Sep 2019 05:16:05 +0000 (05:16 +0000)]
Remove unused register dump lists.
visa [Sun, 22 Sep 2019 05:13:59 +0000 (05:13 +0000)]
Simplify stat register access.
visa [Sun, 22 Sep 2019 04:43:24 +0000 (04:43 +0000)]
Ignore non-host ports silently.
krw [Sun, 22 Sep 2019 01:16:39 +0000 (01:16 +0000)]
Let sysctl(1) work in single-user mode. Same diff applied by florian@
to ps(1).
Noted by kettenis@. florian@'s fix pointed out by maestre@.
ok maestre@
miko [Sun, 22 Sep 2019 00:47:12 +0000 (00:47 +0000)]
Apply a patch from upstream to avoid triggering assert() in sf_pop()
when input contains an unbalanced ')' in the rules section.
ok millert@
kurt [Sat, 21 Sep 2019 22:14:34 +0000 (22:14 +0000)]
Increase datasize limit for ports building on arm64 in preparation
for enabling devel/jdk/11 there.
okay phessler@
kettenis [Sat, 21 Sep 2019 15:57:03 +0000 (15:57 +0000)]
Enable thermal zone handling code.
kettenis [Sat, 21 Sep 2019 15:55:29 +0000 (15:55 +0000)]
Register sxits(4) as a thermal sensor with the thermal zone support code.
kettenis [Sat, 21 Sep 2019 15:36:57 +0000 (15:36 +0000)]
Register sxitemp(4) as a thermal sensor with the thermal zone support code.
From Krystian Lewandowski.
kettenis [Sat, 21 Sep 2019 15:01:26 +0000 (15:01 +0000)]
Implement setting the CPU clock for Allwinner A10/A20 SoCs.
semarie [Sat, 21 Sep 2019 09:04:08 +0000 (09:04 +0000)]
remove dead assignment.
the return code of ssl_check_name() doesn't need to be checked as `match' is
always initialized to 0, and get 1 only on success.
ok gilles@
semarie [Sat, 21 Sep 2019 09:01:52 +0000 (09:01 +0000)]
remove dead assignment
ok gilles@
semarie [Sat, 21 Sep 2019 08:10:44 +0000 (08:10 +0000)]
in report_smtp_broadcast(), the direction is expected to be "smtp-in" or
"smtp-out", but if something else happen, the `struct dict *d' will be
uninitialized when used in `dict_xget(d, event)'.
makes a logic error in smtpd to be visible instead of accessing uninitialized
memory.
ok gilles@
semarie [Sat, 21 Sep 2019 07:46:53 +0000 (07:46 +0000)]
properly initialize errstr before going to fail label.
ok gilles@
semarie [Sat, 21 Sep 2019 06:40:48 +0000 (06:40 +0000)]
there is no need to compute timestamp for SRS1: remove dead assignments.
ok gilles@
schwarze [Sat, 21 Sep 2019 06:04:22 +0000 (06:04 +0000)]
add STANDARDS section;
similar to a diff sent in by <Masanori dot Ogino at gmail dot com>,
but using the up-to-date reference rather than one from 30 years ago;
OK jmc@
jmc [Sat, 21 Sep 2019 05:49:38 +0000 (05:49 +0000)]
tweak previous;
ratchov [Sat, 21 Sep 2019 05:03:34 +0000 (05:03 +0000)]
Fix missing word in -F and -Q descriptions.
ratchov [Sat, 21 Sep 2019 04:52:07 +0000 (04:52 +0000)]
Lower the default audio block size from 20ms to 10ms.
Then new default block size is supported by virtually all devices
which allows switching between devices without further configuration.
The buffer size remains the same, so this change won't affect audio
stability.
ok mpi@
ratchov [Sat, 21 Sep 2019 04:42:46 +0000 (04:42 +0000)]
Allow switching between devices without disconnecting clients.
The new -F option allows alternate device to be specified. If the
device is disconnected, the one given with the last -f or -F options
will be used instead. Similarly, the new -Q option allows an alternate
MIDI port to be specified.
ok mpi@
krw [Sat, 21 Sep 2019 00:12:15 +0000 (00:12 +0000)]
Expand scsi_inquiry_data to 96 bytes to include new fields. If the
device claims to have more than the 36 bytes of SCSI2 data, issue a
2nd INQUIRY (under SCSIDEBUG!) to get up to 96 bytes of data.
Add some length sanity checks to debug output. Print VPD data under
SCSIDEBUG.
kettenis [Fri, 20 Sep 2019 22:42:05 +0000 (22:42 +0000)]
Add A20 GMAC clocks.
bru [Fri, 20 Sep 2019 21:21:47 +0000 (21:21 +0000)]
Extend the identification and validation of elantech-v4 packets to the
"crc-enabled" format.
ok awolk@
kettenis [Fri, 20 Sep 2019 20:46:15 +0000 (20:46 +0000)]
DMA works on the RK3288 as well, so unconditionally enable it.
kettenis [Fri, 20 Sep 2019 20:45:28 +0000 (20:45 +0000)]
Start using the generic clock code on RK3288 as well by switching over the
SDMMC clock.
kettenis [Fri, 20 Sep 2019 19:58:43 +0000 (19:58 +0000)]
Add RK3288 GMAC clock.
jmc [Fri, 20 Sep 2019 18:50:58 +0000 (18:50 +0000)]
new sentence, new line;
jmc [Fri, 20 Sep 2019 18:47:23 +0000 (18:47 +0000)]
tweak previous;
gilles [Fri, 20 Sep 2019 17:46:05 +0000 (17:46 +0000)]
teach smtpd how to do SRS so hosts that act as forwarders don't break SPF.
this basic implementation does SRS0/SRS1 encoding/decoding, validating time
and checksums.
with insight from semarie@, ok eric@ and millert@
cheloha [Fri, 20 Sep 2019 16:44:32 +0000 (16:44 +0000)]
timeout(9): process-context timeouts can be late
Move the check for lateness earlier in the softclock() loop so every
timeout is checked before being run.
While here, remove an unsafe DEBUG printf(9). You can't safely printf(9)
within a mutex, and the print itself isn't even particularly useful.
ok bluhm@
krw [Fri, 20 Sep 2019 15:35:42 +0000 (15:35 +0000)]
Print inquiry and read capacity (10 and 16) data under SCSIDEBUG.
visa [Fri, 20 Sep 2019 15:01:30 +0000 (15:01 +0000)]
Remove an unused function.
visa [Fri, 20 Sep 2019 14:58:52 +0000 (14:58 +0000)]
Pass interface number as an explicit parameter to avoid decoding.
bluhm [Fri, 20 Sep 2019 14:07:13 +0000 (14:07 +0000)]
Improve handling of nosuid mount option, temporary directory and
super user permissions.
bluhm [Fri, 20 Sep 2019 13:20:12 +0000 (13:20 +0000)]
REGRESS_SKIP_TARGETS was spelled incorrectly.
reported by Moritz Buhl