CVS: cvs.openbsd.org: src

2018-09-18 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2018/09/18 23:31:12

Modified files:
usr.sbin/smtpd : mta.c smtpd.h 

Log message:
rename the ill-named "flags" member to "as_host" in domain structure.
remove yet another useless relay flag while there.

ok gilles@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/09/18 23:23:16

Modified files:
sys/dev/acpi   : acpicpu.c 

Log message:
Delete checks of the CST bit_width ('vendor') field, as new Ryzen machines
are showing up with vendor 2 and it doesn't seem to mean anything: Linux
doesn't check it at all, so this exhibits all the normal ACPI spec lossage

tested in snaps for a few weeks
shrug kettenis@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/09/18 22:29:21

Modified files:
usr.sbin/vmd   : vioqcow2.c vioraw.c virtio.c virtio.h vm.c 

Log message:
Various clean up items for disks.

- qcow2: general cleanup
- vioraw: check malloc
- virtio: add function to sync disks
- vm: call virtio_shutdown to sync disks when vm is finished executing

Thanks to Ori Bernstein.

Ok miko@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/09/18 20:03:03

Modified files:
usr.bin/ssh: ssh-add.c 

Log message:
Make "ssh-add -q" do what it says on the tin: silence output from
successful operations.

Based on patch from Thijs van Dijk; ok dtucker@ deraadt@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/09/18 14:47:11

Modified files:
sys/kern   : kern_tc.c 

Log message:
Updating time counters without memory barriers is wrong.  Put
membar_producer() into tc_windup() and membar_consumer() into the
uptime functions.  They order the visibility of the time and
generation number updates.
This is a combination of what NetBSD and FreeBSD do.
OK kettenis@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/09/18 14:21:40

Modified files:
lib/libcompiler_rt: CMakeLists.txt adddf3.c addsf3.c ashldi3.c 
ashrdi3.c assembly.h clear_cache.c 
comparedf2.c comparesf2.c cpu_model.c 
divdf3.c divsf3.c divsi3.c emutls.c 
enable_execute_stack.c extendhfsf2.c 
extendsfdf2.c fixdfdi.c fixdfsi.c fixsfdi.c 
fixsfsi.c fixunsdfdi.c fixunsdfsi.c 
fixunssfdi.c fixunssfsi.c floatdidf.c 
floatdisf.c floatsidf.c floatsisf.c 
floatundidf.c floatundisf.c floatunsidf.c 
floatunsisf.c int_endianness.h int_lib.h 
lshrdi3.c muldf3.c muldi3.c mulsf3.c 
negdf2.c negsf2.c subdf3.c subsf3.c 
truncdfhf2.c truncdfsf2.c truncsfhf2.c 
udivsi3.c 
lib/libcompiler_rt/arm: aeabi_cdcmp.S aeabi_cfcmp.S 
aeabi_idivmod.S aeabi_memcmp.S 
aeabi_memcpy.S aeabi_memmove.S 
aeabi_memset.S aeabi_uidivmod.S 
bswapdi2.S bswapsi2.S clzdi2.S clzsi2.S 
comparesf2.S divmodsi4.S divsi3.S 
modsi3.S udivmodsi4.S udivsi3.S 
umodsi3.S 
Added files:
lib/libcompiler_rt/aarch64: chkstk.S 

Log message:
Update to compiler-rt 6.0.0.

tested by naddy@
ok kettenis@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/09/18 14:15:38

src/lib/libcompiler_rt/aarch64

Update of /cvs/src/lib/libcompiler_rt/aarch64
In directory cvs.openbsd.org:/tmp/cvs-serv49719/aarch64

Log Message:
Directory /cvs/src/lib/libcompiler_rt/aarch64 added to the repository



CVS: cvs.openbsd.org: www

2018-09-18 Thread Solene Rapenne
CVSROOT:/cvs
Module name:www
Changes by: sol...@cvs.openbsd.org  2018/09/18 14:14:53

Modified files:
.  : events.html 

Log message:
Replace a long hyphen by a standard hyphen so it displays correctly



CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/09/18 13:40:15

Modified files:
distrib/sets/lists/base: mi 

Log message:
sync



CVS: cvs.openbsd.org: www

2018-09-18 Thread Solene Rapenne
CVSROOT:/cvs
Module name:www
Changes by: sol...@cvs.openbsd.org  2018/09/18 13:26:40

Modified files:
.  : events.html 

Log message:
Add future eurobsdcon2018 event



CVS: cvs.openbsd.org: src

2018-09-18 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2018/09/18 13:15:40

Added files:
etc/signify: openbsd-65-pkg.pub 

Log message:
6.5 packages key



CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/09/18 12:48:17

Added files:
etc/signify: openbsd-65-base.pub 

Log message:
6.5 base key



CVS: cvs.openbsd.org: src

2018-09-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/09/18 12:36:27

Modified files:
sys/ddb: db_command.c 

Log message:
whitespace fix; no binary change



CVS: cvs.openbsd.org: src

2018-09-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/09/18 12:25:31

Modified files:
gnu/usr.bin/binutils-2.17/binutils: addr2line.c 
gnu/usr.bin/binutils-2.17/binutils/doc: binutils.texi 

Log message:
Backport support for option -a to addr2line, which will display each address
given as input before the resolved source location. This change was introduced
to bintutils after the switch from GPLv2 but the author Tristan Gingold granted
me permission relicense the diff under GPLv2; thanks!

Taken as is from binutils commit be6f64938f985dfb0eaa2107b99f193bb865ce04

This option is used by the syzkaller kernel fuzzer to produce a human readable
representation of the coverage collected by kcov.

ok deraadt@ jca@ visa@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2018/09/18 11:48:22

Modified files:
bin/csh: alloc.c csh.h error.c extern.h misc.c str.c 

Log message:
Restore the xmalloc(), xcalloc(), xreallocarray() and xstrdup() changes.
OK deraadt@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2018/09/18 11:43:40

Modified files:
distrib/miniroot: install.sub 

Log message:
The dmesg buffer is sufficiently large now that using the accumulated
output from several boots in the dmesg listener can overflow the
ramdisk, so use only one boot's worth of dmesg in the listener.
sed(1) expression from kn@.  ok deraadt@



Re: CVS: cvs.openbsd.org: src

2018-09-18 Thread Todd C. Miller
On Tue, 18 Sep 2018 00:56:09 -0600, Theo de Raadt wrote:

> CVSROOT:  /cvs
> Module name:  src
> Changes by:   dera...@cvs.openbsd.org 2018/09/18 00:56:09
>
> Modified files:
>   bin/csh: alloc.c csh.h dol.c error.c exec.c exp.c 
>extern.h lex.c misc.c parse.c set.c str.c 
>time.c 
>
> Log message:
> backout last week of csh diffs.  They are disasterously broken, on i386
> it becomes entirely unusable.

The problem is that there are callers of any() that pass in a value
that is not in the range [0, 255].  This causes unexpected behavior
with the i386 assembler version of strchr().

To use strchr() here we either need mask the char value with 0xff
or figure out why asyntax() is calling any() with a char value of
-32768.

 - todd



CVS: cvs.openbsd.org: src

2018-09-18 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2018/09/18 10:54:01

Modified files:
usr.sbin/bgpd  : rde_update.c 

Log message:
s/mulitprotocol/multiprotocol/ in error text



Re: CVS: cvs.openbsd.org: src

2018-09-18 Thread Mike Larkin
On Tue, Sep 18, 2018 at 10:02:08AM -0600, Mike Larkin wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   mlar...@cvs.openbsd.org 2018/09/18 10:02:08
> 
> Modified files:
>   sys/arch/amd64/amd64: vmm_support.S 
> 
> Log message:
> vmm(4): Reset host LDTR on exit for SVM
> 
> For SVM machines, the LDT content remains set to that of the guest VM on
> exit (as compared to Intel/VMX which resets the LDTR to 0). This fix
> ensures the LDT is reset to 0 on SVM exits.
> 
> Leaving the LDT set to the guest's choice could allow a malicious process
> to escalate its privileges with the help of a malicious VM that they
> also are able to run on the machine.
> 
> This was reported by Maxime Villard; thanks!
> 

This was also ok deraadt@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/09/18 10:02:08

Modified files:
sys/arch/amd64/amd64: vmm_support.S 

Log message:
vmm(4): Reset host LDTR on exit for SVM

For SVM machines, the LDT content remains set to that of the guest VM on
exit (as compared to Intel/VMX which resets the LDTR to 0). This fix
ensures the LDT is reset to 0 on SVM exits.

Leaving the LDT set to the guest's choice could allow a malicious process
to escalate its privileges with the help of a malicious VM that they
also are able to run on the machine.

This was reported by Maxime Villard; thanks!



CVS: cvs.openbsd.org: src

2018-09-18 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/09/18 09:15:32

Modified files:
regress/usr.sbin/bgpd/unittests: Makefile rde_trie_test.1.out 
 rde_trie_test.2.out 
 rde_trie_test.3.out 
 rde_trie_test.4.check 
 rde_trie_test.4.out 
 rde_trie_test.c 
Added files:
regress/usr.sbin/bgpd/unittests: rde_trie_test.5.check 
 rde_trie_test.5.in 
 rde_trie_test.5.out 

Log message:
Start testing the roa backend (test 5) and cleanup tool in general.



CVS: cvs.openbsd.org: src

2018-09-18 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/09/18 09:14:07

Modified files:
usr.sbin/bgpd  : bgpd.h rde.h rde_trie.c 

Log message:
Backend for roa-sets. This combines as_sets and prefix-set tries to do
proper ROA checking. There is a new match function trie_roa_check which
does a trie traversal and looks for candidates and matches. If prefix
is not covered then ROA_UNKNOWN is returned, if prefix is covered by an
entry it will return ROA_INVALID unless the source-as / maxlen combo is
matching (ROA_VALID).
OK and input sthen@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/09/18 09:14:06

Modified files:
usr.bin/stat   : stat.c 

Log message:
Fix typo in previous: group_from_gid(st->st_gid, 1), not st_uid.
This broke the chmod regression test, as noted and tracked down
by bluhm.

ok millert



Re: CVS: cvs.openbsd.org: src

2018-09-18 Thread Todd C. Miller
On Tue, 18 Sep 2018 16:53:55 +0200, Theo Buehler wrote:

> A typo, sorry for missing this. This fixes the chmod regress.

My bad.  OK millert@

 - todd



Re: CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo Buehler
On Tue, Sep 18, 2018 at 03:07:54PM +0200, Alexander Bluhm wrote:
> On Sat, Sep 15, 2018 at 08:42:19PM -0600, Todd C. Miller wrote:
> > CVSROOT:/cvs
> > Module name:src
> > Changes by: mill...@cvs.openbsd.org 2018/09/15 20:42:19
> > 
> > Modified files:
> > usr.bin/stat   : stat.c 
> > 
> > Log message:
> > Use user_from_uid(3) and group_from_gid(3) to avoid extra passwd
> > and group file lookups.  This required a bit of reordering of the
> > file mode handling bits to deal with the const char *.  OK tb@
> 
> This commit broke regress/bin/chmod.

A typo, sorry for missing this. This fixes the chmod regress.

Index: usr.bin/stat/stat.c
===
RCS file: /var/cvs/src/usr.bin/stat/stat.c,v
retrieving revision 1.22
diff -u -p -r1.22 stat.c
--- usr.bin/stat/stat.c 16 Sep 2018 02:42:19 -  1.22
+++ usr.bin/stat/stat.c 18 Sep 2018 14:46:18 -
@@ -598,7 +598,7 @@ format1(const struct stat *st,
case SHOW_st_gid:
small = (sizeof(st->st_gid) == 4);
data = st->st_gid;
-   sdata = group_from_gid(st->st_uid, 1);
+   sdata = group_from_gid(st->st_gid, 1);
if (sdata == NULL) {
snprintf(sid, sizeof(sid), "(%ld)", (long)st->st_gid);
sdata = sid;



CVS: cvs.openbsd.org: src

2018-09-18 Thread Denis Fondras
CVSROOT:/cvs
Module name:src
Changes by: de...@cvs.openbsd.org   2018/09/18 07:55:28

Modified files:
regress/usr.sbin/bgpd/unittests: rde_trie_test.c 

Log message:
fix a crash when prefix length is not specified



CVS: cvs.openbsd.org: src

2018-09-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/09/18 07:53:09

Modified files:
sbin/disklabel : editor.c 

Log message:
Increase minimum size for /usr/obj partition to 5 Gig.  This allows
to run make build and make regress after a default install.
OK deraadt@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/09/18 07:45:09

Modified files:
sys/arch/arm64/conf: RAMDISK 
etc/etc.arm64  : disktab 

Log message:
grow arm64 ramdisk



CVS: cvs.openbsd.org: xenocara

2018-09-18 Thread Theo de Raadt
CVSROOT:/cvs
Module name:xenocara
Changes by: dera...@cvs.openbsd.org 2018/09/18 07:30:35

Modified files:
distrib/sets/lists/xbase: md.hppa 

Log message:
sync



Re: CVS: cvs.openbsd.org: src

2018-09-18 Thread Alexander Bluhm
On Sat, Sep 15, 2018 at 08:42:19PM -0600, Todd C. Miller wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   mill...@cvs.openbsd.org 2018/09/15 20:42:19
> 
> Modified files:
>   usr.bin/stat   : stat.c 
> 
> Log message:
> Use user_from_uid(3) and group_from_gid(3) to avoid extra passwd
> and group file lookups.  This required a bit of reordering of the
> file mode handling bits to deal with the const char *.  OK tb@

This commit broke regress/bin/chmod.

root@ot1:.../chmod# make chgrp_name
chgrp nobody
*** Error 1 in /usr/src/regress/bin/chmod (Makefile:252 'chgrp_name': @[ `id 
-u` != 0 ] || [ `/usr/bin/stat -f '%Sg' regress/file` ==  'nobo...)

Group name of file in stat(1) output is wrong.

root@ot1:.../chmod# ls -la obj/regress/file  
--  1 root  nobody  0 Sep 18 15:05 obj/regress/file
root@ot1:.../chmod# stat obj/regress/file
1033 571842 -- 1 root wheel 0 0 "Sep 18 15:05:17 2018" "Sep 18 15:05:17 
2018" "Sep 18 15:05:17 2018" 16384 0 0 obj/regress/file

bluhm



CVS: cvs.openbsd.org: src

2018-09-18 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/09/18 06:55:19

Modified files:
sbin/pfctl : pfctl.8 pfctl.c 

Log message:
fix table commands under anchors

With r1.358 I simplified anchor handling but also broke semantics with
regard to tables:

# pfctl -a aname -t tname -T show
pfctl: anchors apply to -f, -F and -s only

Unbreak this by checking for table commands as well.

OK bluhm



CVS: cvs.openbsd.org: src

2018-09-18 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/09/18 06:49:10

Modified files:
share/man/man1 : dpb.1 

Log message:
document parallel2



CVS: cvs.openbsd.org: www

2018-09-18 Thread Anthony J . Bentley
CVSROOT:/cvs
Module name:www
Changes by: bent...@cvs.openbsd.org 2018/09/18 02:04:04

Modified files:
faq: current.html faq1.html faq10.html faq11.html 
 faq13.html faq14.html faq15.html faq4.html 
 faq5.html faq6.html faq7.html faq8.html 
 index.html upgrade35.html upgrade36.html 
 upgrade37.html upgrade38.html upgrade39.html 
 upgrade40.html upgrade41.html upgrade42.html 
 upgrade43.html upgrade44.html upgrade45.html 
 upgrade46.html upgrade47.html upgrade48.html 
 upgrade49.html upgrade50.html upgrade51.html 
 upgrade52.html upgrade53.html upgrade54.html 
 upgrade55.html upgrade56.html upgrade57.html 
 upgrade58.html upgrade59.html upgrade60.html 
 upgrade61.html upgrade62.html upgrade63.html 
faq/pf : anchors.html authpf.html carp.html config.html 
 example1.html filter.html ftp.html index.html 
 logging.html macros.html nat.html options.html 
 perf.html pools.html rdr.html shortcuts.html 
 tables.html tagging.html 
faq/ports  : differences.html guide.html index.html 
 ports.html specialtopics.html testing.html 

Log message:
Convert FAQ to HTML5.

ok tj@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/09/18 01:21:49

Modified files:
sys/dev/pci: if_bnxt.c 

Log message:
cast HWRM_NA_SIGNATURE when shortening it to keep gcc happy, prodded by jsg@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/09/18 00:56:09

Modified files:
bin/csh: alloc.c csh.h dol.c error.c exec.c exp.c 
 extern.h lex.c misc.c parse.c set.c str.c 
 time.c 

Log message:
backout last week of csh diffs.  They are disasterously broken, on i386
it becomes entirely unusable.



CVS: cvs.openbsd.org: src

2018-09-18 Thread Ricardo Mestre
CVSROOT:/cvs
Module name:src
Changes by: mes...@cvs.openbsd.org  2018/09/18 00:36:18

Modified files:
sys/net80211   : ieee80211_node.c 

Log message:
fix memory leak in ieee80211_end_scan()

OK phessler@ jsg@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Michael Mikonos
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/09/18 00:21:45

Modified files:
usr.sbin/smtpd : smtpctl.8 

Log message:
ellapsed -> elapsed; ok jmc@



CVS: cvs.openbsd.org: src

2018-09-18 Thread Michael Mikonos
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/09/18 00:05:45

Modified files:
usr.bin/sndiod : dsp.c 

Log message:
i forgot to sync sndiod with aucat/dsp.c rev 1.12