svn commit: r350024 - head/contrib/elftoolchain/strings

2019-07-15 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Jul 16 04:17:25 2019 New Revision: 350024 URL: https://svnweb.freebsd.org/changeset/base/350024 Log: strings: extends rights The libelf is using mmap if it can, if not it was fall backing to read. Reported by: markj Modified:

svn commit: r350023 - head/sys/powerpc/powerpc

2019-07-15 Thread Justin Hibbits
Author: jhibbits Date: Tue Jul 16 03:55:27 2019 New Revision: 350023 URL: https://svnweb.freebsd.org/changeset/base/350023 Log: powerpc: Fix casueword(9) post-r349951 '=' asm constraint marks a variable as write-only. Because of this, gcc throws away the initialization of 'res', causing

svn commit: r350022 - head/contrib/elftoolchain/strings

2019-07-15 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Jul 16 03:32:21 2019 New Revision: 350022 URL: https://svnweb.freebsd.org/changeset/base/350022 Log: strings: fix entering to the capability mode Reported by: markj Modified: head/contrib/elftoolchain/strings/strings.c Modified:

svn commit: r350021 - head/sys/i386/i386

2019-07-15 Thread Alan Cox
Author: alc Date: Tue Jul 16 03:09:03 2019 New Revision: 350021 URL: https://svnweb.freebsd.org/changeset/base/350021 Log: Revert r349973. Upon further reflection, I realized that the comment deleted by r349973 is still valid on i386. Restore it. Discussed with: markj

svn commit: r350020 - head/sbin/camcontrol

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 23:43:38 2019 New Revision: 350020 URL: https://svnweb.freebsd.org/changeset/base/350020 Log: Use a different approach to range check. gcc hates dt < CC_DT_NONE since it can never be true when dt is an unsigned type. Since that's a compiler choice and may be

svn commit: r350019 - head/lib/libc/tests/net

2019-07-15 Thread Olivier Cochard
Author: olivier (ports committer) Date: Mon Jul 15 23:41:00 2019 New Revision: 350019 URL: https://svnweb.freebsd.org/changeset/base/350019 Log: Fix filename to avoid skipping lib/libc/net/servent test. PR: 239177 Approved by: ngie MFC after:1 month Sponsored by:

Re: svn commit: r349999 - head/sys/netinet

2019-07-15 Thread Michael Tuexen
> On 16. Jul 2019, at 00:55, Oliver Pinter > wrote: > > > > On Monday, July 15, 2019, Michael Tuexen wrote: > Author: tuexen > Date: Mon Jul 15 14:54:04 2019 > New Revision: 34 > URL: https://svnweb.freebsd.org/changeset/base/34 > > Log: > Add support for MSG_EOR and MSG_EOF in

Re: svn commit: r349999 - head/sys/netinet

2019-07-15 Thread Oliver Pinter
On Monday, July 15, 2019, Michael Tuexen wrote: > Author: tuexen > Date: Mon Jul 15 14:54:04 2019 > New Revision: 34 > URL: https://svnweb.freebsd.org/changeset/base/34 > > Log: > Add support for MSG_EOR and MSG_EOF in sendmsg() for SCTP. > > This is an FreeBSD extension, not covered

svn commit: r350018 - head/sbin/camcontrol

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 22:33:37 2019 New Revision: 350018 URL: https://svnweb.freebsd.org/changeset/base/350018 Log: Implement a devtype command. List the device's protocol. The returned value is one of the following: ata direct attach ATA or SATA device satla

Re: svn commit: r349391 - head/sys/kern

2019-07-15 Thread John Baldwin
On 7/14/19 12:08 PM, Conrad Meyer wrote: > Hi Alan, > > This change restores the possible overflow beyond IO_SEQMAX that the > removed conditional prevented. > > On Tue, Jun 25, 2019 at 12:44 PM Alan Somers wrote: >> >> Author: asomers >> Date: Tue Jun 25 19:44:22 2019 >> New Revision: 349391

svn commit: r350017 - in head: lib/libc/sys sys/kern sys/sys tests/sys/kern

2019-07-15 Thread John Baldwin
Author: jhb Date: Mon Jul 15 21:48:02 2019 New Revision: 350017 URL: https://svnweb.freebsd.org/changeset/base/350017 Log: Add ptrace op PT_GET_SC_RET. This ptrace operation returns a structure containing the error and return values from the current system call. It is only valid when a

svn commit: r350016 - head/sys/dev/iicbus

2019-07-15 Thread Ian Lepore
Author: ian Date: Mon Jul 15 21:47:40 2019 New Revision: 350016 URL: https://svnweb.freebsd.org/changeset/base/350016 Log: In nxprtc(4), use the countdown timer for better timekeeping resolution on PCx2129 chips too. The datasheet for the PCx2129 chips says that there is only a watchdog

svn commit: r350015 - head/sys/dev/iicbus

2019-07-15 Thread Ian Lepore
Author: ian Date: Mon Jul 15 21:40:58 2019 New Revision: 350015 URL: https://svnweb.freebsd.org/changeset/base/350015 Log: Fix nxprtc(4) on systems that support i2c repeat-start correctly. An obscure footnote in the datasheets for the PCx2127, PCx2129, and PCF8523 rtc chips states that

Re: svn commit: r350013 - in head/sys: amd64/amd64 amd64/ia32 arm/arm arm64/arm64 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64

2019-07-15 Thread John Baldwin
On 7/15/19 2:25 PM, John Baldwin wrote: > Author: jhb > Date: Mon Jul 15 21:25:16 2019 > New Revision: 350013 > URL: https://svnweb.freebsd.org/changeset/base/350013 > > Log: > Don't pass error from syscallenter() to syscallret(). > > syscallret() doesn't use error anymore. Fix a few

svn commit: r350014 - head/tests/sys/kern

2019-07-15 Thread John Baldwin
Author: jhb Date: Mon Jul 15 21:26:55 2019 New Revision: 350014 URL: https://svnweb.freebsd.org/changeset/base/350014 Log: Add a test for PT_GET_SC_ARGS. Reviewed by: kib MFC after:1 month Sponsored by: DARPA Differential Revision:https://reviews.freebsd.org/D20899

svn commit: r350013 - in head/sys: amd64/amd64 amd64/ia32 arm/arm arm64/arm64 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64

2019-07-15 Thread John Baldwin
Author: jhb Date: Mon Jul 15 21:25:16 2019 New Revision: 350013 URL: https://svnweb.freebsd.org/changeset/base/350013 Log: Don't pass error from syscallenter() to syscallret(). syscallret() doesn't use error anymore. Fix a few other places to permit removing the return value from

svn commit: r350012 - in head/sys: kern sys

2019-07-15 Thread John Baldwin
Author: jhb Date: Mon Jul 15 21:16:01 2019 New Revision: 350012 URL: https://svnweb.freebsd.org/changeset/base/350012 Log: Always set td_errno to the error value of a system call. Early errors prior to a system call did not set td_errno. This commit sets td_errno for all errors during

svn commit: r350011 - head/sys/netinet

2019-07-15 Thread Michael Tuexen
Author: tuexen Date: Mon Jul 15 20:45:01 2019 New Revision: 350011 URL: https://svnweb.freebsd.org/changeset/base/350011 Log: Don't free read control entries, which are still on the stream queue when adding them the the read queue fails MFC after:1 week Modified:

svn commit: r350010 - stable/11/sys/dev/netmap

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:38:56 2019 New Revision: 350010 URL: https://svnweb.freebsd.org/changeset/base/350010 Log: MFC r349581 netmap: fix two panics with emulated adapter This patch fixes 2 panics. The first one is due to the current VNET not being set in the emulated

svn commit: r350009 - stable/12/sys/dev/netmap

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:25:49 2019 New Revision: 350009 URL: https://svnweb.freebsd.org/changeset/base/350009 Log: MFC r349581 netmap: fix two panics with emulated adapter This patch fixes 2 panics. The first one is due to the current VNET not being set in the emulated

svn commit: r350008 - head/sbin/camcontrol

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 20:25:41 2019 New Revision: 350008 URL: https://svnweb.freebsd.org/changeset/base/350008 Log: Use the more proper term of SATL instead of ATA_BEHIND_SCSI. Most people know SAS attached SATA devices by the name SAT or SATL (with the latter being a little more

svn commit: r350007 - stable/11/sys/dev/netmap

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:14:30 2019 New Revision: 350007 URL: https://svnweb.freebsd.org/changeset/base/350007 Log: MFC r349966 netmap: fix bug introduced by r349752 r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by:lwhsu

svn commit: r350006 - stable/12/sys/dev/netmap

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:12:54 2019 New Revision: 350006 URL: https://svnweb.freebsd.org/changeset/base/350006 Log: MFC r349966 netmap: fix bug introduced by r349752 r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by:lwhsu

svn commit: r350005 - head/sys/kern

2019-07-15 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 19:18:25 2019 New Revision: 350005 URL: https://svnweb.freebsd.org/changeset/base/350005 Log: In do_sem2_wait(), balance umtx_key_get() with umtx_key_release() on retry. Reported by: ler Bisected and reviewed by: markj Sponsored by: The FreeBSD

svn commit: r350004 - in head/sys/arm64: arm64 include

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 17:13:32 2019 New Revision: 350004 URL: https://svnweb.freebsd.org/changeset/base/350004 Log: Implement software access and dirty bit management for arm64. Previously the arm64 pmap did no reference or modification tracking; all mappings were treated as

svn commit: r350003 - head/sys/riscv/riscv

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 15:45:33 2019 New Revision: 350003 URL: https://svnweb.freebsd.org/changeset/base/350003 Log: pmap_clear_modify() needs to clear PTE_W. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/riscv/riscv/pmap.c Modified:

svn commit: r350002 - head/sys/riscv/riscv

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 15:43:15 2019 New Revision: 350002 URL: https://svnweb.freebsd.org/changeset/base/350002 Log: Fix reference counting in pmap_ts_referenced() on RISC-V. pmap_ts_referenced() does not necessarily clear the access bit from all accessed mappings of a given

Re: svn commit: r349996 - in head: sbin/ping usr.bin/telnet usr.sbin/inetd

2019-07-15 Thread Enji Cooper (yaneurabeya)
> On Jul 15, 2019, at 07:19, Warner Losh wrote: > > Author: imp > Date: Mon Jul 15 14:19:39 2019 > New Revision: 349996 > URL: https://svnweb.freebsd.org/changeset/base/349996 > > Log: > Remove all the RELEASE_CRUNCH instances that partially disable IPSEC > > We remove IPSEC only in parts

svn commit: r350001 - head/sys/arm/conf

2019-07-15 Thread Emmanuel Vadot
Author: manu Date: Mon Jul 15 15:07:55 2019 New Revision: 350001 URL: https://svnweb.freebsd.org/changeset/base/350001 Log: Remove duplicated device firmware entry in generic arm kernel config added in r333191 Submitted by: Daniel Engberg (daniel.engberg.li...@pyret.net) MFC after:3

svn commit: r350000 - in head/release/picobsd: bridge qemu

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 15:02:40 2019 New Revision: 35 URL: https://svnweb.freebsd.org/changeset/base/35 Log: Remove RELEASE_CRUNCH here. It's obsolete. Remove RELEASE_CRUNCH here. It's obsolete and hasn't worked in a while. The build options need to be revisited, since

svn commit: r349999 - head/sys/netinet

2019-07-15 Thread Michael Tuexen
Author: tuexen Date: Mon Jul 15 14:54:04 2019 New Revision: 34 URL: https://svnweb.freebsd.org/changeset/base/34 Log: Add support for MSG_EOR and MSG_EOF in sendmsg() for SCTP. This is an FreeBSD extension, not covered by Posix. This issue was found by running syzkaller.

svn commit: r349998 - head/sys/netinet

2019-07-15 Thread Michael Tuexen
Author: tuexen Date: Mon Jul 15 14:52:52 2019 New Revision: 349998 URL: https://svnweb.freebsd.org/changeset/base/349998 Log: Fix socket state handling when freeing an SCTP endpoint. This issue was found by runing syzkaller. MFC after:1 week Modified:

svn commit: r349997 - head/usr.sbin/ngctl

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 14:23:51 2019 New Revision: 349997 URL: https://svnweb.freebsd.org/changeset/base/349997 Log: Replace complicated expression to disable libedit when no libthr is being built with a simpler one. Modified: head/usr.sbin/ngctl/Makefile Modified:

svn commit: r349996 - in head: sbin/ping usr.bin/telnet usr.sbin/inetd

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 14:19:39 2019 New Revision: 349996 URL: https://svnweb.freebsd.org/changeset/base/349996 Log: Remove all the RELEASE_CRUNCH instances that partially disable IPSEC We remove IPSEC only in parts of the tree, and not others. RELEASE_CRUNCH to disable it has not

Re: svn commit: r349989 - head/sys/kern

2019-07-15 Thread Bruce Evans
On Sun, 14 Jul 2019, Michael Tuexen wrote: Log: Improve the input validation for l_linger. When using the SOL_SOCKET level socket option SO_LINGER, the structure struct linger is used as the option value. The component l_linger is of type int, but internally copied to the field so_linger of

svn commit: r349995 - head/sys/kern

2019-07-15 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 08:39:52 2019 New Revision: 349995 URL: https://svnweb.freebsd.org/changeset/base/349995 Log: In do_lock_pi(), do not return prematurely. If umtxq_check_susp() indicates an exit, we should clean the resources before returning. Do it by breaking out of the

svn commit: r349994 - head/sys/kern

2019-07-15 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 08:38:01 2019 New Revision: 349994 URL: https://svnweb.freebsd.org/changeset/base/349994 Log: Correctly check for casueword(9) success in do_set_ceiling(). After r349951, the return code must be checked instead of old == new comparision. Reviewed by:

svn commit: r349993 - stable/11/share/man/man9

2019-07-15 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 08:21:49 2019 New Revision: 349993 URL: https://svnweb.freebsd.org/changeset/base/349993 Log: MFC r349950: Style: avoid long lines by using .Fo instead of .Fn. Modified: stable/11/share/man/man9/casuword.9 Directory Properties: stable/11/ (props changed)

svn commit: r349992 - stable/12/share/man/man9

2019-07-15 Thread Konstantin Belousov
Author: kib Date: Mon Jul 15 08:21:21 2019 New Revision: 349992 URL: https://svnweb.freebsd.org/changeset/base/349992 Log: MFC r349950: Style: avoid long lines by using .Fo instead of .Fn. Modified: stable/12/share/man/man9/casuword.9 Directory Properties: stable/12/ (props changed)

svn commit: r349991 - in head/usr.sbin: ntp wpa

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 07:39:28 2019 New Revision: 349991 URL: https://svnweb.freebsd.org/changeset/base/349991 Log: MK_OPENSSL makes RELEASE_CRUNCH redundant here Since these things are more completely controlled by the MK_OPENSSL knob, remove RELEASE_CRUNCH here. It's no longer

svn commit: r349990 - head/bin/ls

2019-07-15 Thread Warner Losh
Author: imp Date: Mon Jul 15 07:35:46 2019 New Revision: 349990 URL: https://svnweb.freebsd.org/changeset/base/349990 Log: Now that we have MK_LS_COLORS, we don't need RELEASE_CRUNCH check here. The RELEASE_CRUNCH check is redundant here. We don't need it for releases anymore, and