CVS: cvs.openbsd.org: src

2018-08-12 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/08/13 00:36:29

Modified files:
regress/sys/kern/kqueue: Makefile kqueue-regress.c main.c main.h 

Log message:
Add a test covering the recently fixed issue with dangling knote references upon
closing a kqueue file descriptor.



CVS: cvs.openbsd.org: src

2018-08-12 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/08/12 23:54:13

Modified files:
sbin/ifconfig  : ifconfig.8 

Log message:
consistent macros;



CVS: cvs.openbsd.org: src

2018-08-12 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/08/12 20:41:05

Modified files:
usr.bin/ssh: compat.c compat.h sshconnect2.c sshd.c 

Log message:
revert compat.[ch] section of the following change. It causes
double-free under some circumstances.

--

date: 2018/07/31 03:07:24;  author: djm;  state: Exp;  lines: +33 -18;  
commitid: f7g4UI8eeOXReTPh;
fix some memory leaks spotted by Coverity via Jakub Jelen in bz#2366
feedback and ok dtucker@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/08/12 17:50:31

Modified files:
sbin/ifconfig  : ifconfig.8 ifconfig.c 
share/man/man4 : trunk.4 
sys/net: if_trunk.h if_trunk.c trunklacp.h trunklacp.c 

Log message:
Add administrative options to LACP trunk implementation.

The trunk driver now has a new ioctl (SIOCxTRUNKOPTS), which for now only
has options for LACP:
* Mode - Active or Passive (default Active)
* Timeout - Fast or Slow (default Slow)
* System Priority - 1(high) to 65535(low) (default 32768/0x8000)
* Port Priority - 1(high) to 65535(low) (default 32768/0x8000)
* IFQ Priority - 0 to NUM_QUEUES (default 6)

At the moment, ifconfig only has options for lacpmode and lacptimeout
plumbed as those are the immediate need.

The approach taken for the options was to make them on a "trunk" vs a
"port" as what's typically seen on various NOSes (JunOS, NXOS, etc...)
as it's uncommon for a host to have one link "Passive" and the other
"Active" in a given trunk.

Just like on a NOS, when applying lacpmode or lacptimeout, the settings
are immediately applied to all existing ports in the trunk and to all
future ports brought into the trunk.

Tested by many on a plethora of NIC drivers and switches.

Ok remi@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Rob Pierce
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/08/12 16:04:09

Modified files:
usr.bin/ldap   : aldap.c ber.c ber.h 
usr.sbin/ldapd : ber.c ber.h ldape.c 
usr.sbin/snmpd : ber.3 ber.c ber.h usm.c 
usr.sbin/ypldap: aldap.c ber.c ber.h 

Log message:
Change ber_write_elements() to return ssize_t instead of int.

ok claudio@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/08/12 14:19:13

Modified files:
usr.bin/ssh: readconf.c servconf.c 

Log message:
better diagnosics on alg list assembly errors; ok deraadt@ markus@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/08/12 13:05:38

Modified files:
sys/dev/pci/drm: drm_linux.c 

Log message:
Drop reference to dmabuf "file" as fnew() returns one that has two
references.

ok visa@, deraadt@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/08/12 12:33:55

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
Make ifconfig's -joinlist command work as advertised.
ok deraadt phessler



CVS: cvs.openbsd.org: src

2018-08-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/08/12 12:32:18

Modified files:
sys/dev/ic : pluart.c 

Log message:
Really overwrite the major of com(4) instead of the hardcoded 12.
Should have been part of the earlier commit that unified armv7 and arm64.



CVS: cvs.openbsd.org: src

2018-08-12 Thread Todd Mortimer
CVSROOT:/cvs
Module name:src
Changes by: morti...@cvs.openbsd.org2018/08/12 11:15:10

Modified files:
lib/libc/arch/aarch64/gen: byte_swap_2.S byte_swap_4.S 
lib/libc/arch/aarch64/sys: Ovfork.S brk.S cerror.S sbrk.S 
   sigpending.S sigprocmask.S 
   sigsuspend.S tfork_thread.S 
sys/arch/arm64/arm64: copy.S copystr.S cpufunc_asm.S support.S 
sys/arch/arm64/include: asm.h 

Log message:
Add retguard macros for arm64 asm and apply them in the straightforward
cases in kernel and libc.
ok deraadt@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Todd Mortimer
CVSROOT:/cvs
Module name:src
Changes by: morti...@cvs.openbsd.org2018/08/12 11:07:00

Modified files:
gnu/llvm/lib/Target/AArch64: AArch64AsmPrinter.cpp 
 AArch64FrameLowering.cpp 
 AArch64FrameLowering.h 
 AArch64InstrInfo.td 
gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp 
gnu/usr.bin/clang/libLLVMAArch64CodeGen: Makefile 
Added files:
gnu/llvm/lib/Target/AArch64: AArch64ReturnProtectorLowering.cpp 
 AArch64ReturnProtectorLowering.h 

Log message:
Add retguard for arm64.
ok deraadt@



CVS: cvs.openbsd.org: src

2018-08-12 Thread Todd Mortimer
CVSROOT:/cvs
Module name:src
Changes by: morti...@cvs.openbsd.org2018/08/12 10:59:31

Modified files:
gnu/llvm/include/llvm/CodeGen: MachineFrameInfo.h 
   TargetFrameLowering.h 
gnu/llvm/lib/CodeGen: PrologEpilogInserter.cpp 
gnu/llvm/lib/Target/X86: X86FrameLowering.cpp X86FrameLowering.h 
gnu/usr.bin/clang/libLLVMCodeGen: Makefile 
gnu/usr.bin/clang/libLLVMX86CodeGen: Makefile 
Added files:
gnu/llvm/include/llvm/CodeGen: ReturnProtectorLowering.h 
gnu/llvm/lib/CodeGen: ReturnProtectorLowering.cpp 
gnu/llvm/lib/Target/X86: X86ReturnProtectorLowering.cpp 
 X86ReturnProtectorLowering.h 

Log message:
Refactor retguard to make adding additional arches easier.



CVS: cvs.openbsd.org: src

2018-08-12 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/08/12 06:40:25

Modified files:
sbin/ifconfig  : ifconfig.8 

Log message:
add missing markup;