CVS: cvs.openbsd.org: src

2019-09-06 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/06 20:30:40

Modified files:
sys/scsi   : st.c 

Log message:
Tweak some comments and code layout to make MTSETBSIZE and MTSETDENSITY
cases look the same.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/06 20:07:08

Modified files:
sys/scsi   : st.c 

Log message:
ST_USER_BLKSIZE and ST_QUIRK_BLKSIZE are only tested as an or'd pair.
Ditto for ST_USER_DENSITY and ST_QUIRK_DENSITY. Thus the origin of the
value stored in the mode is irrelevant. Just use two flags
(ST_MODE_BLKSIZE and ST_MODE_DENSITY) instead of the existing four.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/06 19:47:48

Modified files:
sys/scsi   : st.c 

Log message:
ST_Q_FORCE_BLKSIZE is superfluous since it is only used in combination with
a non-zero value of blksize in the quirkdata. So just check for non-zero
value of blksize, as is already done for density.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/06 19:27:02

Modified files:
sys/scsi   : st.c 

Log message:
Nuke unused flag ST_BLOCK_SET.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2019/09/06 19:23:24

Modified files:
sys/conf   : param.c 
sys/sys: kernel.h 

Log message:
Remove tz, the kernel timezone.

After removing timezone support from date(1), msdosfs, gettimeofday(2),
settimeofday(2), boot_config(8), config(8), and introducing kern.utc_offset
sysctl(2) to replace the DST/TIMEZONE options(4) to support running the RTC
at an offset from UTC, the kernel timezone is unused and we can delete it.

With this commit the kernel timezone now appears to be extinct in
upstream BSD, though it does survive in XNU:

https://github.com/opensource-apple/xnu/blob/0a798f6738bc1db01281fc08ae024145e84df927/bsd/conf/param.c#L83

Prompted by tedu@ some time back, and inspired by NetBSD and FreeBSD's
work in this area.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/06 19:15:41

Modified files:
sys/scsi   : st.c 

Log message:
Various struct/variables "modes" -> "mode" since there is only one.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/06 18:51:40

Modified files:
sys/dev/pci/drm/i915: i915_drv.c 

Log message:
drm/i915: Call dma_set_max_seg_size() in i915_driver_hw_probe()

>From Lyude Paul
68b58d3924645356415ae4f6922da8fa14ea1642 in linux 4.19.y/4.19.70
32f0a982650b123bdab36865617d3e03ebcacf3b in mainline linux



CVS: cvs.openbsd.org: src

2019-09-06 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/06 18:48:55

Modified files:
sys/dev/pci/drm/include/linux: dma-mapping.h 

Log message:
define away dma_set_max_seg_size()
needed for a future linux 4.19 change



CVS: cvs.openbsd.org: src

2019-09-06 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/06 18:43:05

Modified files:
sys/dev/pci/drm/i915: i915_vgpu.c 

Log message:
drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest

>From Xiong Zhang
c7615333645de572cae573da0a92dd3fc8e099e0 in linux 4.19.y/4.19.70
0a3dfbb5cd9033752639ef33e319c2f2863c713a in mainline linux



CVS: cvs.openbsd.org: src

2019-09-06 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/06 18:39:30

Modified files:
sys/dev/pci/drm/i915: intel_device_info.c 

Log message:
drm/i915: fix broadwell EU computation

>From Lionel Landwerlin
a3eb2eba2f79950b788342562604d36c5a260da7 in linux 4.19.y/4.19.70
63ac3328f0d1d37f286e397b14d9596ed09d7ca5 in mainline linux



CVS: cvs.openbsd.org: src

2019-09-06 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2019/09/06 15:30:32

Modified files:
usr.sbin/config: cmd.c ukcutil.c ukc.h config.8 
sys/kern   : subr_userconf.c 
share/man/man4 : options.4 
share/man/man8 : boot_config.8 

Log message:
options(4), config(8): drop dst/timezone knobs; ok kettenis@ deraadt@ jca@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/06 13:25:08

Modified files:
bin/chmod  : chown.8 
usr.bin/dc : dc.1 
usr.bin/mail   : mail.1 
usr.bin/mesg   : mesg.1 
usr.bin/nm : nm.1 
sbin/umount: umount.8 
usr.bin/write  : write.1 
lib/libc/compat-43: creat.3 
lib/libc/sys   : write.2 
lib/libm/man   : cos.3 
share/man/man5 : core.5 utmp.5 
usr.bin/sort   : sort.1 

Log message:
More Version 1 AT UNIX history.
This became possible because copies of the original v1 manuals
have shown up on the Internet some time ago.
Reminded by Sevan Janiyan .



CVS: cvs.openbsd.org: src

2019-09-06 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/09/06 13:18:24

Modified files:
share/man/man4 : iic.4 

Log message:
Mention imxiic(4), mviic(4), rkiic(4), sxitwi(4) and mcprtc(4).

Requested by and ok jmc@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2019/09/06 11:59:25

Modified files:
lib/libcrypto  : Makefile 
lib/libcrypto/ec: ec.h ec_err.c ec_pmeth.c 

Log message:
Add various macros and controls for EC_PKEY_CTX.

These are needed for the upcoming EC CMS support (nothing else appears
to use them). This largely syncs our ec_pmeth.c with OpenSSL 1.1.1b.

With input from inoguchi@ and tb@.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2019/09/06 11:41:05

Modified files:
lib/libcrypto/pem: pem_lib.c 

Log message:
Handle CMS PEM headers.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/09/06 10:22:41

Modified files:
sys/arch/mips64/mips64: trap.c 

Log message:
Do not stop prologue scan at branch instructions. This lets stack trace
saving work with the twisted code that clang occasionally emits; stack
frame setup can happen very late after blocks of conditional code.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/09/06 10:06:30

Modified files:
sys/arch/mips64/mips64: trap.c 

Log message:
Stop stack trace saving if the current subroutine is u_general or u_intr
because the next frame is in userspace.



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 09:22:24

Modified files:
sys/dev/fdt: if_dwxe.c 

Log message:
missing ;
found by wilfried meindl
ok kettenis



CVS: cvs.openbsd.org: src

2019-09-06 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/09/06 09:07:19

Modified files:
distrib/sets/lists/base: md.armv7 
distrib/sets/lists/comp: gcc.armv7 md.armv7 
share/mk   : bsd.own.mk 

Log message:
disable base-gcc on armv7, sets from deraadt@; ok deraadt@ kettenis@ jca@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 08:50:23

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

Log message:
sync



CVS: cvs.openbsd.org: src

2019-09-06 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/09/06 08:45:34

Modified files:
usr.bin/ssh: kex.c readconf.c servconf.c ssh.c ssh_config.5 
 sshd_config.5 

Log message:
Allow prepending a list of algorithms to the default set by starting
the list with the '^' character, e.g.

HostKeyAlgorithms ^ssh-ed25519
Ciphers ^aes128-...@openssh.com,aes256-...@openssh.com

ok djm@ dtucker@



CVS: cvs.openbsd.org: src

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

Modified files:
sys/arch/powerpc/powerpc: trap.c 

Log message:
delete two decades of debugging code and further simplify the main
trap() switch statement
ok kettenis



CVS: cvs.openbsd.org: src

2019-09-06 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/09/06 07:10:44

Modified files:
sys/arch/amd64/amd64: tsc.c 

Log message:
Only do the timecounter initialization on the primary CPU.  Avoids using a
bogus CPU frequency from a secondary CPU to set the TSC frequency.

ok deraadt@, mikeb@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 06:55:26

Modified files:
sys/arch/powerpc/powerpc: trap.c 

Log message:
oops the label is actually out:



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 06:23:49

Modified files:
sys/arch/powerpc/powerpc: trap.c 

Log message:
oops incorrect goto label



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 06:22:01

Modified files:
sys/arch/alpha/alpha: trap.c 
sys/arch/amd64/amd64: trap.c 
sys/arch/arm64/arm64: trap.c 
sys/arch/hppa/hppa: trap.c 
sys/arch/i386/i386: trap.c 
sys/arch/m88k/m88k: trap.c 
sys/arch/mips64/mips64: trap.c 
sys/arch/powerpc/powerpc: trap.c 
sys/arch/sh/sh : trap.c 
sys/arch/sparc64/sparc64: trap.c 
sys/arch/arm/arm: fault.c 

Log message:
If uvm_map_inentry returns false then a signal has been delivered, and
userret() must be called on trap() exit to deliver it, rather than
repeating the same cause infinitely.  discovered by George Koehler
ok kettenis bluhm visa



CVS: cvs.openbsd.org: src

2019-09-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/09/06 06:13:41

Modified files:
sys/arch/amd64/amd64: cpu.c 

Log message:
fpuinit() comments should precede cpu_init() call



CVS: cvs.openbsd.org: src

2019-09-06 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2019/09/06 03:40:59

Modified files:
usr.sbin/rad   : rad.8 

Log message:
this bit about soii and link-local addresses is no longer needed since
florian@ removed soii for link-local adresses in
sys/netinet6/in6_ifattach.c rev 1.114
ok florian@ sthen@ kn@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/09/06 03:38:19

Modified files:
share/man/man4 : Makefile 
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/i2c: files.i2c 
Added files:
share/man/man4 : mcprtc.4 
sys/dev/i2c: mcp794xx.c 

Log message:
mcprtc(4), a driver for the Microchip MCP79400 RTC and similar variants.

ok kettenis@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/09/06 02:45:37

Modified files:
share/man/man4 : Makefile 
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/fdt: files.fdt 
Added files:
share/man/man4 : mviic.4 
sys/dev/fdt: mviic.c 

Log message:
Add mviic(4), a driver to support the I2C controller on the
Armada 3700 SoC.

With feedback from and ok kettenis@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/09/06 02:44:21

Modified files:
sys/dev/fdt: mvclock.c 

Log message:
Add I2C clock gates.

ok kettenis@



CVS: cvs.openbsd.org: src

2019-09-06 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2019/09/06 02:39:27

Modified files:
lib/libc/sys   : fcntl.2 

Log message:
Correct the description of EINTR and EINVAL. This looks like a mis-merge
in revision 1.30.

ok deraadt@ tb@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/09/06 02:23:56

Modified files:
usr.sbin/smtpd : lka_filter.c lka_proc.c lka_report.c parse.y 
 smtpd.conf.5 smtpd.h 

Log message:
Add support for filter-reports. These allow filters to send freetext
reports to other filters/report handlers.
Builtin filters work via the new "report" keyword.
Proc filters can send reports via:
"report||smtp-in||"
Subscribing to these reports can be done via the the "filter-report"
keyword.
The reports themselves contain the usual elements followed by:
||
Type can be builtin or proc.
Name is the process name for type proc and the filter name for type builtin.

OK gilles@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/06 01:53:40

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

Log message:
key conversion should fail for !openssl builds, not fall through to
the key generation code



CVS: cvs.openbsd.org: src

2019-09-06 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/09/06 00:40:54

Modified files:
sys/dev/fdt: if_dwxe.c 

Log message:
zero hash bits early in dwxe_iff()
ok kettenis@



CVS: cvs.openbsd.org: src

2019-09-06 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/06 00:08:11

Modified files:
usr.bin/ssh: dh.c 

Log message:
typo in previous



CVS: cvs.openbsd.org: src

2019-09-06 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/09/05 23:59:41

Modified files:
usr.bin/ssh: Makefile.inc 
usr.bin/ssh/ssh-agent: Makefile 
usr.bin/ssh/ssh-keygen: Makefile 
usr.bin/ssh/ssh-pkcs11-helper: Makefile 

Log message:
avoid compiling certain files that deeply depend on libcrypto when
WITH_OPENSSL isn't set