tedu [Mon, 29 May 2017 13:30:35 +0000 (13:30 +0000)]
zap scanio.h, found by deraadt
claudio [Mon, 29 May 2017 13:10:40 +0000 (13:10 +0000)]
After some consideration, revert last commit and don't abuse rde_dump_done.
IMSG_CTL_SHOW_RIB_PREFIX case is not using rib_dump_r and so should not use
rde_dump_done, instead send the IMSG_CTL_END msg and free the ctx directly.
This is easier to understand.
tb [Mon, 29 May 2017 13:09:17 +0000 (13:09 +0000)]
Change the mmap(2)-based binary history file with lots of magic and a
tendency for corruption to a simpler plaintext version.
To convert your current ksh history to plaintext, issue
fc -ln 1 | sed 's/^ //' > ~/ksh_hist.txt
before upgrading and use ksh_hist.txt as HISTFILE after the upgrade.
Original patch by marco in 2011. Ported to current during g2k16 by me.
Testing, bugfixes and improvements in joint work with natano.
Additional testing by anton and mestre. Includes some tweaks by anton.
Committing now to shake out remaining bugs before 6.2 is cut.
ok deraadt, mestre, anton, sthen
jmatthew [Mon, 29 May 2017 12:58:37 +0000 (12:58 +0000)]
Add hibernate support for nvme(4). This creates a separate IO queue that is
only active during hibernation, preallocating the the submission and completion
queues during attach as they need to be page-aligned.
tested on an x270 that successfully hibernates now.
ok dlg@
benno [Mon, 29 May 2017 12:56:26 +0000 (12:56 +0000)]
sync proc.c changes from relayd/httpd
espie [Mon, 29 May 2017 12:54:05 +0000 (12:54 +0000)]
do not whine if installpath is undef.
florian [Mon, 29 May 2017 12:51:56 +0000 (12:51 +0000)]
hook up slaacd and slaacctl.
OK naddy, deraadt
jmc [Mon, 29 May 2017 12:50:33 +0000 (12:50 +0000)]
tweak previous to read a little better;
claudio [Mon, 29 May 2017 12:48:11 +0000 (12:48 +0000)]
Fix crash in IMSG_CTL_SHOW_RIB_PREFIX handling. The ctx is not added to
the list in that case so don't try to LIST_REMOVE it.
Problem found by benno@
jmc [Mon, 29 May 2017 12:41:57 +0000 (12:41 +0000)]
avoid Xr to self;
espie [Mon, 29 May 2017 12:28:54 +0000 (12:28 +0000)]
Refactor locator code so it's a proper object.
allow fw_update to short-circuit entirely, thus the specific
treatment of paths is actually less of a special case,
and the code that reaches into /etc/installurl is no longer used
at all in that case.
problem noticed by mlarkin@
tedu [Mon, 29 May 2017 12:16:50 +0000 (12:16 +0000)]
rm xr mailaddr.7
tedu [Mon, 29 May 2017 12:15:39 +0000 (12:15 +0000)]
remove mention of Berknet and mailaddr.7
tedu [Mon, 29 May 2017 12:13:50 +0000 (12:13 +0000)]
remove mailaddr.7 and its many lies.
ok gilles jmc mpi
tedu [Mon, 29 May 2017 12:12:35 +0000 (12:12 +0000)]
clang has builtin_memmove. ok deraadt
tedu [Mon, 29 May 2017 12:10:51 +0000 (12:10 +0000)]
scanner support died some time ago, the header can be removed too.
a gift from miod
sf [Mon, 29 May 2017 11:59:32 +0000 (11:59 +0000)]
Re-add line continuation \ that went missing in the previous commit
visa [Mon, 29 May 2017 11:46:49 +0000 (11:46 +0000)]
Invalidate OCTEON icache after TLB ASID wraparound, otherwise userspace
might execute stale instructions. The cache is virtually tagged and does
not seem to pick up TLB alterations automatically.
jmc [Mon, 29 May 2017 11:13:09 +0000 (11:13 +0000)]
sort SEE ALSO;
jmc [Mon, 29 May 2017 11:10:29 +0000 (11:10 +0000)]
sort SEE ALSO;
sf [Mon, 29 May 2017 11:01:16 +0000 (11:01 +0000)]
Regress test for sparse files & mmap with different FSs
This test creates a file with a hole in the middle and then checks that
when reading or mmaping the whole file, the data is correct.
This catches the bug introduced by the
"Implement VFS read clustering for MSDOSFS" commit that hat to be
reverted.
For now, we run the test with FAT16, FAT32, FFS
With much advice from bluhm@
sf [Mon, 29 May 2017 11:00:04 +0000 (11:00 +0000)]
Regress test for sparse files & mmap with different FSs
This test creates a file with a hole in the middle and then checks that
when reading or mmaping the whole file, the data is correct.
This catches the bug introduced by the
"Implement VFS read clustering for MSDOSFS" commit that hat to be
reverted.
For now, we run the test with FAT16, FAT32, FFS
With much advice from bluhm@
claudio [Mon, 29 May 2017 10:55:34 +0000 (10:55 +0000)]
PFKEY version 2 is the only pfkey version supported. No need for extra
abstraction. First step of making PF_KEY a bit more like PF_ROUTE.
OK mpi@
florian [Mon, 29 May 2017 10:24:06 +0000 (10:24 +0000)]
rc.d(8) for slaacd
OK phessler, deraadt
benno [Mon, 29 May 2017 09:56:33 +0000 (09:56 +0000)]
change bgpd's control socket from /var/run/bgpd.sock to
/var/run/bgpd.sock.<rdomain> in both bgpd and bgpctl. makes life
easier for admins.
ok phessler, claudio, henning, feedback from Job Snijders
deraadt [Mon, 29 May 2017 09:44:01 +0000 (09:44 +0000)]
Randomize link-order of libcrypto as we do with libc. This library
has many small functions without significant local storage, therefore
less tail protection from -fstack-protector-strong to prevent their use
as ROP gadgets. It is used in security contexts. Also many functions
dribble pointers onto the stack, allowing discovery of gadgets via the
fixed relative addresses, so let's randomly bias those.
ok tedu jsing
The rc script will soon need a strategy for skipping this step on
machines with poor IO performance. Or maybe do it less often? However,
I don't see many more libraries we'll do this with, these are the two
most important ones.
deraadt [Mon, 29 May 2017 09:40:13 +0000 (09:40 +0000)]
sync
deraadt [Mon, 29 May 2017 09:40:02 +0000 (09:40 +0000)]
It is distasteful to have manual pages which don't refer to real
function calls, but instead a "class" of functions like "sigsetops".
Rename to sigaddset", and while at it improve documentation in sigprocmask(2)
to point to it.
ok tedu
deraadt [Mon, 29 May 2017 09:37:33 +0000 (09:37 +0000)]
sync
florian [Mon, 29 May 2017 08:59:42 +0000 (08:59 +0000)]
clang points out that the first argument to setproctitle is a format
string. Not really an issue since we are eventually passing in a
string literal...
While here don't set the proctitle for the main process to play nicer
with rc.d(8)
florian [Mon, 29 May 2017 08:15:38 +0000 (08:15 +0000)]
Compare the l2 address from which the slaac address was formed with
the current interface l2 address. Only update the address lifetime if
they are the same. This way we get a new address on ifconfig lladdr
random.
nicm [Mon, 29 May 2017 07:58:33 +0000 (07:58 +0000)]
Do not factor in screen_hsize() for the visible copy mode screen when
adjusting the selection, it should never have any useful history (and
when it does, after resize, we shouldn't use it). From Michal Mazurek.
florian [Mon, 29 May 2017 07:54:46 +0000 (07:54 +0000)]
only send router solicitation on RTM_NEWADDR if the l2 address changed
phessler [Mon, 29 May 2017 07:49:27 +0000 (07:49 +0000)]
remove the file permission check for bgpd.conf
OK deraadt@, henning@, sthen@, and everyone who has ever been annoyed
krw [Mon, 29 May 2017 07:47:13 +0000 (07:47 +0000)]
To prevent anyone else from stumbling on this (now) archaic bit of
history, nuke all mentions of XS_NO_CCB and the #define.
2006 - 2017. R.I.P.
ok kettenis@ inferred ok dlg@
nicm [Mon, 29 May 2017 07:46:32 +0000 (07:46 +0000)]
Tweak text to mention initial size, from John Hood.
mlarkin [Mon, 29 May 2017 07:15:22 +0000 (07:15 +0000)]
vmd(8): prevent crashing when presented with a vm name argument to
"vmctl stop" that doesn't exist.
Diff from Pratik Vyas, thanks!
mpi [Mon, 29 May 2017 06:44:54 +0000 (06:44 +0000)]
Pass SIOCGIFMEDIA to vlan's parent interface.
ok krw@, dlg@
mpi [Mon, 29 May 2017 06:14:10 +0000 (06:14 +0000)]
Pass the symbol instead of its name when looking for CTF infos.
ok jasper@
mpi [Mon, 29 May 2017 06:08:21 +0000 (06:08 +0000)]
Do not try to grab the NET_LOCK() while holding an ifp reference.
Fix a deadlock with a thread trying to detach the corresponding interface.
ok sashan@, bluhm@
mpi [Mon, 29 May 2017 06:06:52 +0000 (06:06 +0000)]
copyin32 implementation from miod@
ok kettenis@
mlarkin [Mon, 29 May 2017 05:59:45 +0000 (05:59 +0000)]
vmm(4): Enable support for AMD-V (SVM) CPUs.
Tested on the following CPUs:
AMD C-60 APU
AMD GX-412TC SOC (PCEngines APU2C4)
AMD Opteron(tm) Processor 6128
... and various others via bochs/simulators, on a variety of different
guest VM types. Also verified no regressions on my x230 Intel machine
since this diff slightly changes CPUID behaviour WRT cache information.
ok deraadt@
deraadt [Mon, 29 May 2017 04:40:35 +0000 (04:40 +0000)]
do not need dev[] wasting bss space
henning [Mon, 29 May 2017 00:05:28 +0000 (00:05 +0000)]
mlarkin and airport.7 say "must have been there", not "flown there".
Add XFW, Hamburg-Finkenwerder (the Airbus factory)
ok mlarkin fcambus
mlarkin [Sun, 28 May 2017 23:56:13 +0000 (23:56 +0000)]
SVM: add some exit types
Also, fix a comment that wasn't applicable anymore, and change a format
from decimal to hex
mlarkin [Sun, 28 May 2017 23:50:19 +0000 (23:50 +0000)]
rename some fields
nicm [Sun, 28 May 2017 23:23:40 +0000 (23:23 +0000)]
Support OSC 10 and 11 to set foreground and background colours, from
"bertnp" in GitHub issue 942.
tedu [Sun, 28 May 2017 22:27:10 +0000 (22:27 +0000)]
remove some escapes that are unnecessary/harmful. ok jmc schwarze
tedu [Sun, 28 May 2017 21:59:56 +0000 (21:59 +0000)]
when copying curvy files from ssh, an extra one snuck in.
signify doesn't do any kex stuff and doesn't need scalarmult.
mlarkin [Sun, 28 May 2017 21:57:19 +0000 (21:57 +0000)]
fix broken include on previous pipex commit
ok deraadt
bluhm [Sun, 28 May 2017 21:23:47 +0000 (21:23 +0000)]
Now that pf looks behind IPv4 authentication headers, disable the
transport mode tests that fail because of floating states. At least
IPv4 and IPv6 are in sync now.
ajacoutot [Sun, 28 May 2017 21:21:00 +0000 (21:21 +0000)]
Add BND, I've been there many times.
zhuk [Sun, 28 May 2017 21:18:21 +0000 (21:18 +0000)]
Add ZIA, even given that I didn't visit it after it actually became ZIA
instead of Ramenskoe Airfield.
approved by deraadt@
tedu [Sun, 28 May 2017 21:13:39 +0000 (21:13 +0000)]
remove unused macro
tedu [Sun, 28 May 2017 21:09:24 +0000 (21:09 +0000)]
there are no bugs; i fixed them
naddy [Sun, 28 May 2017 21:05:54 +0000 (21:05 +0000)]
only mark privacy addresses as such instead of all configured addresses
ok florian@
tedu [Sun, 28 May 2017 21:01:13 +0000 (21:01 +0000)]
if your dying scream would escape the death field, realign to stay within
yasuoka [Sun, 28 May 2017 20:48:29 +0000 (20:48 +0000)]
Process packets immediately without queuing since pipex is believed MP safe
already, for PPPoE case as first step.
ok mpi
florian [Sun, 28 May 2017 20:40:13 +0000 (20:40 +0000)]
removed if 0'ed code; it gets in the way of grepping for things
tedu [Sun, 28 May 2017 20:34:33 +0000 (20:34 +0000)]
high scores printed too far to the right, move it left a little
mlarkin [Sun, 28 May 2017 20:20:00 +0000 (20:20 +0000)]
typo in comment
claudio [Sun, 28 May 2017 20:15:02 +0000 (20:15 +0000)]
Print when we send or recv an EOR marker.
Req by and OK benno@
claudio [Sun, 28 May 2017 20:14:15 +0000 (20:14 +0000)]
Introduce log_peer_info() and make log_peer_warn() log at LOG_ERR instead
of LOG_CRIT (which should only be used for fatal).
OK benno@
claudio [Sun, 28 May 2017 20:10:59 +0000 (20:10 +0000)]
Close imsg pipes later in the process. The shutdown code still tires to
send imsgs and so the SE and RDE crashed because of this late in shutdown.
OK benno@ phessler@
florian [Sun, 28 May 2017 19:57:38 +0000 (19:57 +0000)]
set autoconfprivacy flag; prodding naddy
nicm [Sun, 28 May 2017 19:46:55 +0000 (19:46 +0000)]
Change so that sessions created detached (-d or no client) are always
80x24 and the status line is not applied until they attach. Also make -x
and -y work for control clients whether the session is detached or not.
benno [Sun, 28 May 2017 19:44:52 +0000 (19:44 +0000)]
install new manpage, noted by tb@
benno [Sun, 28 May 2017 19:42:26 +0000 (19:42 +0000)]
please read operator(7) for this information.
benno [Sun, 28 May 2017 19:26:33 +0000 (19:26 +0000)]
document /usr/share/misc/airport contents and rules, after lengthy
hackroom discussion about train stations.
ok mlarkin, feedback deraadt
mlarkin [Sun, 28 May 2017 19:15:18 +0000 (19:15 +0000)]
typo
naddy [Sun, 28 May 2017 19:13:13 +0000 (19:13 +0000)]
pasto, typos, spelling; ok florian@
nicm [Sun, 28 May 2017 19:00:52 +0000 (19:00 +0000)]
Also recalculate session sizes when refreh-client -C is used. GitHub
issue 947.
tedu [Sun, 28 May 2017 18:57:40 +0000 (18:57 +0000)]
The High Council of Deciders has determined that railway stations, even
those with IATA codes, are not airports and therefore do not qualify for
inclusion in this file.
yasuoka [Sun, 28 May 2017 18:55:25 +0000 (18:55 +0000)]
Check also whether the interfaces is matched when pipex check PPPoE
packets. This fixes the problem when pipex connects with pppoe(4)
through pair(4).
ajacoutot [Sun, 28 May 2017 18:51:27 +0000 (18:51 +0000)]
Move check later to mitigate a possible race.
yasuoka [Sun, 28 May 2017 18:43:51 +0000 (18:43 +0000)]
Use interface index and if_{put,get} instead of ifnet pointer.
yasuoka [Sun, 28 May 2017 18:42:00 +0000 (18:42 +0000)]
Use interface index instead of ifnet pointer.
mlarkin [Sun, 28 May 2017 18:35:58 +0000 (18:35 +0000)]
add HWD - Hayward Executive Airport. After extensive discussion, the
decision was made that a missed approach at the DH counts as "being at
the airport"
ok phessler, deraadt
tedu [Sun, 28 May 2017 18:31:35 +0000 (18:31 +0000)]
convert to UTF-8
visa [Sun, 28 May 2017 17:12:48 +0000 (17:12 +0000)]
Do not allow NULL callback at rendezvous and clear callback
pointer at the end to catch errors faster.
joris [Sun, 28 May 2017 17:11:34 +0000 (17:11 +0000)]
Let opencvs show ignored files on import, not showing them is just confusing.
ok stsp@
joris [Sun, 28 May 2017 17:01:10 +0000 (17:01 +0000)]
Don't allow opencvs to commit towards tags that are not branches.
Gets rid of the old logic that wasn't working and replaced it with
a simplified version.
ok stsp@
joris [Sun, 28 May 2017 16:58:54 +0000 (16:58 +0000)]
Teach opencvs status to display the sticky tag according to what it really
represents if it is a branch or a revision.
ok stsp@
joris [Sun, 28 May 2017 16:57:01 +0000 (16:57 +0000)]
Bring the opencvs log message template inline with other cvs implementations.
ok stsp@
bluhm [Sun, 28 May 2017 16:55:54 +0000 (16:55 +0000)]
Limit the nested header chain for IPv6 extensions headers and for
authentication headers in the IPv4 case. This prevents spending
excessive cpu time on crafted packets.
OK henning@
jmc [Sun, 28 May 2017 16:52:27 +0000 (16:52 +0000)]
tweak previous;
bluhm [Sun, 28 May 2017 16:43:45 +0000 (16:43 +0000)]
Fix bad white spaces, wrap long lines, kill some empty lines.
florian [Sun, 28 May 2017 16:36:53 +0000 (16:36 +0000)]
get a new privacy address before the old one expires
florian [Sun, 28 May 2017 15:58:02 +0000 (15:58 +0000)]
No need to constantly re-add the default route. It will not expire
like the prefixes. We might want to check if someone deleted the
route by hand though.
jmatthew [Sun, 28 May 2017 15:48:49 +0000 (15:48 +0000)]
Fix checks for seconds and timezones in generalized times.
Fixing the CHECK_RANGE macro in r1.4 revealed that the seconds check
accidentally relied on the macro being broken. While looking into this I
noticed that the timezone check was also wrong, treating the timezone as
optional for generalized times.
investigation and diff mostly by Seiya Kawashima.
visa [Sun, 28 May 2017 15:46:06 +0000 (15:46 +0000)]
Use fast path if remote call is not needed.
Note that rendezvous calls are no longer necessarily
serialized systemwide.
anton [Sun, 28 May 2017 15:36:45 +0000 (15:36 +0000)]
Remove a redundant assignment introduced in revision 1.219 but favor the
assignment outside of the conditional.
ok stsp@
henning [Sun, 28 May 2017 15:16:52 +0000 (15:16 +0000)]
we're not hardcoded to table 0 any more
henning [Sun, 28 May 2017 15:16:33 +0000 (15:16 +0000)]
so far, bgpd was hardcoded to use rtable 0 for nexthop verification.
instead, use the rtable bgpd was started in (route -T <n> exec / rc.d
daemon_rtable) for nexthop verification and as default Adj-RIB-In and
Loc-RIB. This allows multiple bgpds in different rdomains on the same
machine - bgp router virtualization if you like buzzwords.
initial version written under contract more than a year ago, it took us
a while to wrap our brains around the bgpd <-> rdomain interactions -
1) RIBs, 2) nexthop verification and 3) tcp sockets.
ok & input phessler claudio benno
visa [Sun, 28 May 2017 15:16:08 +0000 (15:16 +0000)]
mips64_multicast_ipi() excludes current CPU.
The caller does not have to do that.
akfaew [Sun, 28 May 2017 15:15:21 +0000 (15:15 +0000)]
Don't check np->port for NULL - it's an array, it's never NULL.
OK bluhm@
mpi [Sun, 28 May 2017 15:03:53 +0000 (15:03 +0000)]
Add missing NET_UNLOCK() in error path.
Spotted by sashan@
bluhm [Sun, 28 May 2017 14:54:00 +0000 (14:54 +0000)]
Pf was handling IPv4 and IPv6 differently regarding AH extension
headers. pf_walk_header6() steps over it and detects the real
protocol. So to implement a minimal header walking function
pf_walk_header() for IPv4. It does the header checks and jumps
over AH. Then pf does not understand AH as a protocol, it is just
an extension that authenticates the packet. Move some header and
option checks to pf_walk_header() for consistency with IPv6. This
also improves the header check for IPv4 packets in ICMP payload.
OK henning@
krw [Sun, 28 May 2017 14:37:48 +0000 (14:37 +0000)]
Elegant and reliable link status checking courtesy of mpi@.
Less of unreliable ioctl(SIOCGIFMEDIA), more getifaddrs().
ok mpi@
mpi [Sun, 28 May 2017 14:26:38 +0000 (14:26 +0000)]
trunk_port_destroy() needs the NET_LOCK().
It brings the interface down and restore the original lladdr.
Found by Hrvoje Popovski