eric [Wed, 15 May 2019 11:56:19 +0000 (11:56 +0000)]
do not use CRLF when passing data lines to filters.
ok gilles@
kmos [Wed, 15 May 2019 11:53:22 +0000 (11:53 +0000)]
Add the -m flag to the ftp.1 man page.
Adjust the usage message of ftp(1) to reflect its two operating modes
and list missing flags.
OK florian@ jmc@
schwarze [Wed, 15 May 2019 09:49:32 +0000 (09:49 +0000)]
delete some duplicate words
schwarze [Wed, 15 May 2019 09:33:34 +0000 (09:33 +0000)]
re-indent bwscoll() after previous commit; no binary change
bcook [Wed, 15 May 2019 09:13:16 +0000 (09:13 +0000)]
s3 is never NULL since s2 (formerly used for SSLv2) does not exist, so there is
no need to check for it. Fixes COV-165788, identified with help from Alex
Bumstead.
ok jsing@
schwarze [Wed, 15 May 2019 09:07:46 +0000 (09:07 +0000)]
Cleanup:
Delete handling of LC_COLLATE (which has no effect)
and delete support for non-ASCII single-byte encodings,
allowing to replace the condition byte_sort == 1
with sort_mb_cur_max == 1.
Since none of our single-byte character and string functions are
locale dependent, also zap inspection of LC_CTYPE while here.
For know, keep the code supporting multi-byte encodings
even though it is very ugly, it cannot be reached right now,
and we have no plans to enable it any time soon.
OK millert@ tb@
jmatthew [Wed, 15 May 2019 06:56:36 +0000 (06:56 +0000)]
remove some use of uninitialized values pointed out by jsg@
jmatthew [Wed, 15 May 2019 06:54:10 +0000 (06:54 +0000)]
Rework tx path to allow using up to 13 segments per packet, so we don't
have to defrag everything. While working on this I discovered both of
the tx doorbells can be rung once per mcx_start() call, rather than once
per packet. dlg@ helped a lot by making me read the documentation again.
mlarkin [Wed, 15 May 2019 06:52:33 +0000 (06:52 +0000)]
Add support to the BIOS bootloader for random kernel base VA
This diff adds support to be able to load a randomly linked kernel VA
(subject to some range restrictions). This change has been in snaps for
a few days without any fallout.
ok deraadt@
anton [Wed, 15 May 2019 06:12:19 +0000 (06:12 +0000)]
free size for amap; ok visa@
eric [Wed, 15 May 2019 05:02:43 +0000 (05:02 +0000)]
normalize newlines when reading the message
spotted by martijn@
ok martijn@ gilles@
deraadt [Wed, 15 May 2019 04:43:31 +0000 (04:43 +0000)]
When doing the fork+exec'ing for ssh-keysign, rearrange the socket
into fd3, so as to not mistakenly leak other fd forward accidentally.
ok djm
visa [Wed, 15 May 2019 03:17:20 +0000 (03:17 +0000)]
Reduce branch emulation page access protection during setup. The setup
stage does not need execute access, so map the page initially with
read-write protection.
OK miod@
visa [Wed, 15 May 2019 03:16:16 +0000 (03:16 +0000)]
Drop redundant pmap_proc_iflush() call. The needed instruction cache
invalidation is done by mips64 pmap when the branch emulation page is
made executable.
Originally, the pmap_proc_iflush() call was necessary. The instruction
cache invalidation was added in pmap_protect() after the FPU emulation
was introduced.
OK miod@
rob [Wed, 15 May 2019 03:12:49 +0000 (03:12 +0000)]
sync
rob [Wed, 15 May 2019 03:11:52 +0000 (03:11 +0000)]
Split ber.3 into logical parts. Further tweaking will be done in tree.
Discussed with and ok jmc@, schwarze@, claudio@
stsp [Tue, 14 May 2019 21:41:10 +0000 (21:41 +0000)]
Fix athn(4) 9280 1T2R devices; broken since my noisefloor calib commit
Problem reported and fix tested by Stephane Guedon
ok jca@ mpi@
anton [Tue, 14 May 2019 20:48:45 +0000 (20:48 +0000)]
test different buffer sizes
deraadt [Tue, 14 May 2019 18:51:07 +0000 (18:51 +0000)]
do not intermingle direct io (write), and potentially buffered io (stdio)
against the same outputs
ok kmos florian
florian [Tue, 14 May 2019 18:27:37 +0000 (18:27 +0000)]
Document -v
florian [Tue, 14 May 2019 18:25:31 +0000 (18:25 +0000)]
-v forces verbose mode even if stdin is not a terminal
Found the hard way by bluhm
Debugged with deraadt & bluhm
benno [Tue, 14 May 2019 16:47:30 +0000 (16:47 +0000)]
make "bgpctl sh rib detail *out*" look less confusing
ok claudio@
bluhm [Tue, 14 May 2019 16:43:26 +0000 (16:43 +0000)]
Remove the REGRESS_MAXTIME feature from regress framework. The
timeout based on CPU seconds is pretty useless, most hanging tests
sleep and do not spin. The timeout could not be distinguished from
failure. Only 3 tests used it.
OK anton@ schwarze@ cheloha@ otto@
beck [Tue, 14 May 2019 15:40:44 +0000 (15:40 +0000)]
Correct missing test to determine if length is in bytes or in bits.
Issue found by Guido Vranken <guidovranken@gmail.com>
ok tedu@ tb@
jan [Tue, 14 May 2019 15:19:06 +0000 (15:19 +0000)]
Add free(9) sizes to ahc(4)
From Miod
OK tedu@
naddy [Tue, 14 May 2019 15:00:37 +0000 (15:00 +0000)]
document CONFIGURE_STYLE=autoreconf; ok espie@
florian [Tue, 14 May 2019 14:51:31 +0000 (14:51 +0000)]
Move common config passing code into a function.
OK pamela
ajacoutot [Tue, 14 May 2019 14:27:49 +0000 (14:27 +0000)]
Revert my recent sysupgrade changes; it broke unattended upgrades for
espie@. Need to look deeper.
jsg [Tue, 14 May 2019 13:44:45 +0000 (13:44 +0000)]
armv7 and arm64 also have ci_idepth
ok anton@
tedu [Tue, 14 May 2019 13:44:25 +0000 (13:44 +0000)]
allow specifying a cmdfile instead of trying to pipe in commands for -ef.
ok deraadt
schwarze [Tue, 14 May 2019 13:17:09 +0000 (13:17 +0000)]
minor macro cleanup
schwarze [Tue, 14 May 2019 12:55:54 +0000 (12:55 +0000)]
minor wording improvement from Stephen Gregoratto
schwarze [Tue, 14 May 2019 12:47:17 +0000 (12:47 +0000)]
Delete some .Sx macros that were used in a wrong way.
Part of a patch from Stephen Gregoratto <dev at sgregoratto dot me>.
eric [Tue, 14 May 2019 12:08:54 +0000 (12:08 +0000)]
fix typos in log messages
nicm [Tue, 14 May 2019 07:37:50 +0000 (07:37 +0000)]
Fix sizing of main-vertical and main-horizontal layouts, GitHub issue 1736.
anton [Tue, 14 May 2019 06:05:45 +0000 (06:05 +0000)]
Add support for `boot device' to vm.conf grammar which is the `-B device'
counterpart from vmctl.
ok mlarkin@
jca [Tue, 14 May 2019 05:58:36 +0000 (05:58 +0000)]
Enable TLSv1.0 and TLSv1.1
Like the old ftp. Discussed with at least with tedu@ "We should match
existing behavior at least for now"
bluhm [Tue, 14 May 2019 05:48:58 +0000 (05:48 +0000)]
Use propper regress target to integrate better into test framework.
visa [Tue, 14 May 2019 03:27:43 +0000 (03:27 +0000)]
Add lock order checking for smr_barrier(9). This is similar to the
checking done in taskq_barrier(9) and timeout_barrier(9).
OK mpi@
sunil [Tue, 14 May 2019 03:20:11 +0000 (03:20 +0000)]
Remove leftover elf.c
sunil [Tue, 14 May 2019 03:16:55 +0000 (03:16 +0000)]
Use elf(3) api instead of an ad-hoc elf parser.
Ok mpi@
sunil [Tue, 14 May 2019 02:32:08 +0000 (02:32 +0000)]
Remove an unused and leftover label.
sunil [Tue, 14 May 2019 02:30:00 +0000 (02:30 +0000)]
tls_write(3): Handle short writes.
Ok jca@
naddy [Mon, 13 May 2019 23:18:21 +0000 (23:18 +0000)]
Add tee(1) to the ramdisk filesystem and use it to provide both a
moving progress bar during auto upgrade/install and a clean log
afterwards. ok deraadt@
florian [Mon, 13 May 2019 23:13:24 +0000 (23:13 +0000)]
Remove strict mode for now, it is in the way.
tedu [Mon, 13 May 2019 22:58:52 +0000 (22:58 +0000)]
print a newline for attach. from f holop
beck [Mon, 13 May 2019 22:55:27 +0000 (22:55 +0000)]
Add a kernel implementation of realpath() as __realpath().
We want this so that we can stop allowing readlink() on traversed
vnodes in unveil().
This includes all the kernel side and the system call.
This is not yet used in libc for realpath, so nothing calls this yet.
The libc wrapper will be committed later.
Testing by many, and ports build by naddy@
ok deraadt@
bcook [Mon, 13 May 2019 22:48:30 +0000 (22:48 +0000)]
Remove unused pad check, which is handled by tls1_cbc_remove_padding() now.
Fixes COV-174858
ok tb@
bcook [Mon, 13 May 2019 22:36:01 +0000 (22:36 +0000)]
Acquire mutex before incrementing the refcount. Fixes COV-186144
ok tb@
tb [Mon, 13 May 2019 22:25:27 +0000 (22:25 +0000)]
Add missing word in comment.
jsg [Mon, 13 May 2019 21:50:50 +0000 (21:50 +0000)]
enable in_irq() based check
beck [Mon, 13 May 2019 21:47:09 +0000 (21:47 +0000)]
Document our currently incosnsistent behaviour and our current
sins which have been judged by Dr Posix as sinful...
jsg [Mon, 13 May 2019 21:44:13 +0000 (21:44 +0000)]
add in_irq() in_interrupt() in_task()
in_irq() uses ci_idepth on archs that have it
in_interrupt() is the same as in_irq() for now, linux has in_irq() for
hard interrupt context and in_interrupt() is also for soft interrupt
and nmi context.
mpi [Mon, 13 May 2019 21:29:28 +0000 (21:29 +0000)]
free(9) sizes.
From Jan Klemkow, ok tedu@
mpi [Mon, 13 May 2019 21:27:59 +0000 (21:27 +0000)]
free(9) sizes.
From miod@
claudio [Mon, 13 May 2019 21:13:04 +0000 (21:13 +0000)]
Don't use a hardcoded list of how attribute are dumped and instead move
to a loop-switch construct in up_generate_attr(). This way attributes
are always dumped in ascending order as suggested by the RFC and adding
special attributes is simpler than in the current way.
The MP attributes are a special case since those are handled at a later
stage of creating UPDATE messages.
OK benno@
drahn [Mon, 13 May 2019 20:55:22 +0000 (20:55 +0000)]
Move idepth tracking out of interrupt controller into common layer.
'looks good' kettenis@
claudio [Mon, 13 May 2019 20:47:19 +0000 (20:47 +0000)]
KERN_PFSTATUS is not handled by sysctl so warn about it if requested but
ignore if sysctl -a is used.
OK bluhm@
nicm [Mon, 13 May 2019 20:10:23 +0000 (20:10 +0000)]
Add support for overline (SGR 53), from Ricardo Banffy.
nicm [Mon, 13 May 2019 20:07:02 +0000 (20:07 +0000)]
Always include Lock in the menu.
guenther [Mon, 13 May 2019 20:00:32 +0000 (20:00 +0000)]
Move 'how this works' details from namespace.h to DETAILS
bluhm [Mon, 13 May 2019 19:42:28 +0000 (19:42 +0000)]
Link regress sigpthread to build.
bluhm [Mon, 13 May 2019 19:40:22 +0000 (19:40 +0000)]
Test the interaction of signals with multiple posix threads. It
covers blocking with signal mask, killing process or thread, invoking
handler or waiting for signal.
bluhm [Mon, 13 May 2019 19:21:31 +0000 (19:21 +0000)]
When killing a process, the signal is handled by any thread that
does not block the signal. If all threads block the signal, we
delivered it to the main thread. This does not conform to POSIX.
If any thread unblocks the signal, it should be delivered immediately
to this thread.
Mark such signals pending at the process instead of a single thread.
Then any thread can handle it later.
OK kettenis@ guenther@
mpi [Mon, 13 May 2019 18:20:13 +0000 (18:20 +0000)]
Do not check for IFF_RUNNING inside bstp_initialization().
This allows to set such flag after completing the initialization of a
bridge and still have bstp_tick() be scheduled from the begining.
Fix a regression reported by and ok markus@
mpi [Mon, 13 May 2019 18:14:05 +0000 (18:14 +0000)]
Deal with the case where bridge_getbif() can return NULL.
Since `bif' are removed from the interface list before calling smr_barrier()
and the hash queue is cleaned up afterward, it is possible to find an ifidx
with bridge_rtlookup() that won't match to any `bif'.
Fix a panic reported by Hrvoje Popovski, ok visa@
deraadt [Mon, 13 May 2019 17:31:51 +0000 (17:31 +0000)]
dup2(n,n) would rlimit check before handling the n==n shortcut,
and incorrectly return EBADF when n>curlim.
ok millert guenther tedu
guenther [Mon, 13 May 2019 17:18:10 +0000 (17:18 +0000)]
The fd used by nlist() isn't application visible, so mark it close-on-exec
to avoid leaking it
ok deraadt@
schwarze [Mon, 13 May 2019 17:00:12 +0000 (17:00 +0000)]
Delete tentacles of LC_NUMERIC support.
Our libc doesn't support that now and won't in the future.
Minus ~90 lines of code, no functional change.
OK tb@
jsg [Mon, 13 May 2019 16:23:15 +0000 (16:23 +0000)]
add idr_is_empty()
tb [Mon, 13 May 2019 16:04:49 +0000 (16:04 +0000)]
ephermal -> ephemeral
From Hiltjo Posthuma
pd [Mon, 13 May 2019 15:40:34 +0000 (15:40 +0000)]
vmm: add host side pvclock
Emulate kvm pvclock in vmm(4). Compatible with pvclock(4) in OpenBSD. Linux
does not attach to this (yet).
Fixes by reyk@ and tested extensively by reyk@, tb@ and phessler@
ok mlarkin@ phessler@ reyk@
reyk [Mon, 13 May 2019 15:19:16 +0000 (15:19 +0000)]
Add Connection: close when switching to "unlimited" reading mode.
Ask the server to close the connection after the request since we
don't read any further request headers. This fixes an issue with
OPTIONS and optional body, as well as similar cases.
Reported and tested by Rivo Nurges
OK benno@
schwarze [Mon, 13 May 2019 14:11:20 +0000 (14:11 +0000)]
explicitly mention that RES_NOALIASES has no effect;
jmc@ noticed that the text wasn't completely clear;
OK jmc@
denis [Mon, 13 May 2019 13:47:36 +0000 (13:47 +0000)]
fix export default-route.
OK claudio@
abieber [Mon, 13 May 2019 12:31:56 +0000 (12:31 +0000)]
regen (missed this when I did the colemak update)
rob [Mon, 13 May 2019 10:00:29 +0000 (10:00 +0000)]
Hookup ber regress.
ok bluhm@
reyk [Mon, 13 May 2019 09:54:07 +0000 (09:54 +0000)]
Fix filter rules with "forward to" statement in persistent connections.
OK bentley@ mikeb@
nicm [Mon, 13 May 2019 08:56:07 +0000 (08:56 +0000)]
Fix column width for copy mode commands.
martijn [Mon, 13 May 2019 07:33:23 +0000 (07:33 +0000)]
According to RFC3414 section 4 applications should be able to discover the
snmpEngineBoots and snmpEngineTime by sending an AuthPriv request with the
requested values set to zero and with a valid user.
Move the engine_boots and engine_time down after the user check and remove
the 0-check, so we can reply with the appropriate usmStatsNotInTimeWindows.
This allows us to use p5-Net-SNMP against snmpd with seclevel enc.
OK rob@
martijn [Mon, 13 May 2019 07:24:50 +0000 (07:24 +0000)]
According to RFC3414 section 4 applications should be able to discover the
snmpEngineID by sending a noAuthNoPriv request. Move the seclevel check to
after the usm_decode phase, so we can reply with the mandatory
usmStatsUnknownEngineIDs instead of usmStatsUnsupportedSecLevels.
This brings us one step closer to using p5-Net-SNMP with seclevel enc.
OK tb@, rob@
otto [Mon, 13 May 2019 06:04:55 +0000 (06:04 +0000)]
Mention introduction of *_conceal.
patrick [Mon, 13 May 2019 03:13:29 +0000 (03:13 +0000)]
Add the needed ICC_PMR_EL1 register bit defines for the previous
commit to unbreak the build.
from kettenis@
ok drahn@
bluhm [Mon, 13 May 2019 02:54:54 +0000 (02:54 +0000)]
The call to fseek(fp, -1, SEEK_END) also sets the reported size to
this value. To match the expectation of the test again, move this
line before the the code that sets the final position.
OK yasuoka@
ajacoutot [Mon, 13 May 2019 02:26:42 +0000 (02:26 +0000)]
Fix usage() (missing '-x').
Adapt to recent sysupgrade(8) change
ok florian@ kmos@ kn@
ajacoutot [Mon, 13 May 2019 02:25:16 +0000 (02:25 +0000)]
Use the same heuristic as the installer to find a proper prefetch area for the
sets instead of hardcoding /home. This leads the way to a knob for manually
choosing a sets directory if we want that.
Create /auto_upgrade.conf that will get picked up by the installer for the
unattended upgrade mode.
Similar inputs from naddy@ and kn@
ok florian@ kmos@ kn@
guenther [Mon, 13 May 2019 00:07:05 +0000 (00:07 +0000)]
Add support for -znoretpolineplt and make -zretpolineplt the default.
Affects i386 and amd64 only.
ok deraadt@ kettenis@
guenther [Sun, 12 May 2019 23:32:42 +0000 (23:32 +0000)]
Indentation fix
tb [Sun, 12 May 2019 22:48:03 +0000 (22:48 +0000)]
Fix double free by nulling out pointers after free.
from florian, ok jca
guenther [Sun, 12 May 2019 22:23:38 +0000 (22:23 +0000)]
Delete cpu_idle_{enter,leave}_fcn() as unused. Add RETGUARD checks to
cpu_idle_cycle()
ok mpi@ kettenis@
rob [Sun, 12 May 2019 22:17:25 +0000 (22:17 +0000)]
Add an enum test. Modify some output.
rob [Sun, 12 May 2019 22:12:16 +0000 (22:12 +0000)]
Use .OBJDIR.
kmos [Sun, 12 May 2019 21:56:27 +0000 (21:56 +0000)]
Make the "xx bytes received in y time" message go to the right place
by using the login_info() function the other messages use.
OK florian@
espie [Sun, 12 May 2019 21:49:52 +0000 (21:49 +0000)]
zap confusing unneeded parameters
okay jca@, jasper@
jca [Sun, 12 May 2019 21:30:48 +0000 (21:30 +0000)]
Repair ftp -o - and thus pkg_add: print informational messages on stderr
ok florian@ espie@
guenther [Sun, 12 May 2019 21:27:47 +0000 (21:27 +0000)]
s/availible/available/
florian [Sun, 12 May 2019 21:03:17 +0000 (21:03 +0000)]
It will show up in 6.6.
tedu [Sun, 12 May 2019 21:01:46 +0000 (21:01 +0000)]
remove .PATH. this was used in previous eras to build bpf compiler stuff,
that's all used via libpcap now.
found by deraadt ok tb
jasper [Sun, 12 May 2019 20:58:19 +0000 (20:58 +0000)]
add rcs ids
pd [Sun, 12 May 2019 20:56:34 +0000 (20:56 +0000)]
vmm: add a x86 page table walker
Add a first cut of x86 page table walker to vmd(8) and vmm(4). This function is
not used right now but is a building block for future features like HPET, OUTSB
and INSB emulation, nested virtualisation support, etc.
With help from Mike Larkin
ok mlarkin@