svn commit: r341006 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
Author: eugen Date: Tue Nov 27 04:05:38 2018 New Revision: 341006 URL: https://svnweb.freebsd.org/changeset/base/341006 Log: ng_source(4): correction after the change r340617 tv_usec has "long" type for all architecture in FreeBSD and follows __LP64__. However, this is not true for

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 10:22, Warner Losh пишет: > > > On Mon, Nov 26, 2018 at 8:18 PM Eugene Grosbein > wrote: > > 27.11.2018 7:15, Warner Losh wrote: > > > time_t is 64-bits in FreeBSD for all architectures regardless of > __LP64__, except it's 32-bits on i386. >

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Warner Losh
On Mon, Nov 26, 2018 at 8:18 PM Eugene Grosbein wrote: > 27.11.2018 7:15, Warner Losh wrote: > > > time_t is 64-bits in FreeBSD for all architectures regardless of > __LP64__, except it's 32-bits on i386. > > > > Warner > > sys/powerpc/include/_types.h defines time_t being 32 or 64 bit depending

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 7:15, Warner Losh wrote: > time_t is 64-bits in FreeBSD for all architectures regardless of __LP64__, > except it's 32-bits on i386. > > Warner sys/powerpc/include/_types.h defines time_t being 32 or 64 bit depending on __LP64__ just like sys/x86/include/_types.h does. Does

svn commit: r341005 - head/sys/cam

2018-11-26 Thread Warner Losh
Author: imp Date: Tue Nov 27 00:36:35 2018 New Revision: 341005 URL: https://svnweb.freebsd.org/changeset/base/341005 Log: NVME trim clocking Add the ability to set two goals for trims in the I/O scheduler. The first goal is the number of BIO_DELETEs to accumulate

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 7:15, Warner Losh wrote: > I'm not sure I get it right: do you mean there is a difference for some > platform we have? > > time_t is 64-bits in FreeBSD for all architectures regardless of __LP64__, > except it's 32-bits on i386. Now I've got it :-) thanks.

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Warner Losh
On Mon, Nov 26, 2018 at 4:29 PM Eugene Grosbein wrote: > 27.11.2018 4:26, John Baldwin wrote: > > >> /* Parse type for timeval */ > >> static const struct ng_parse_struct_field > ng_source_timeval_type_fields[] = { > >> +#ifdef __LP64__ > >> +{ "tv_sec", _parse_int64_type},

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Ian Lepore
On Tue, 2018-11-27 at 06:45 +0700, Eugene Grosbein wrote: > 27.11.2018 6:35, Ian Lepore wrote: > > > > > > > > > > > > > > #ifdef __LP64__ > > > > { "tv_usec",_parse_int32_type }, > > > > #else > > > > { "tv_usec",_parse_int64_type }, > > > > #endif > > > I'm not sure I

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 6:35, Ian Lepore wrote: >>> #ifdef __LP64__ >>> { "tv_usec",_parse_int32_type }, >>> #else >>> { "tv_usec",_parse_int64_type }, >>> #endif >> I'm not sure I get it right: do you mean there is a difference for >> some platform we have? > > I think there's a typo

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Ian Lepore
On Tue, 2018-11-27 at 06:29 +0700, Eugene Grosbein wrote: > 27.11.2018 4:26, John Baldwin wrote: > > > > > > > > >  /* Parse type for timeval */ > > >  static const struct ng_parse_struct_field > > > ng_source_timeval_type_fields[] = { > > > +#ifdef __LP64__ > > > + { "tv_sec",

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread Eugene Grosbein
27.11.2018 4:26, John Baldwin wrote: >> /* Parse type for timeval */ >> static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = >> { >> +#ifdef __LP64__ >> +{ "tv_sec", _parse_int64_type}, >> +{ "tv_usec",_parse_int64_type}, >> +#else

svn commit: r341004 - head/lib/libufs

2018-11-26 Thread Kirk McKusick
Author: mckusick Date: Mon Nov 26 23:09:45 2018 New Revision: 341004 URL: https://svnweb.freebsd.org/changeset/base/341004 Log: Bring up to date with recently added functions berase(3), getinode(3), putinode(3), sbget(3), and sbput(3). Sponsored by: Netflix Modified:

svn commit: r341003 - head/sys/cam

2018-11-26 Thread Warner Losh
Author: imp Date: Mon Nov 26 22:50:30 2018 New Revision: 341003 URL: https://svnweb.freebsd.org/changeset/base/341003 Log: Minor tweaks to the formatting Tweak the format of the trim + read bias code. Add similar debug to the read + writes case. Spondored by: Netflix Modified:

svn commit: r341002 - head/sys/conf

2018-11-26 Thread Mark Murray
Author: markm Date: Mon Nov 26 22:45:58 2018 New Revision: 341002 URL: https://svnweb.freebsd.org/changeset/base/341002 Log: Add dependency to allow if_muge device to be only ethernet device in stripped-down RPI3 kernel. Modified: head/sys/conf/files Modified: head/sys/conf/files

svn commit: r341001 - head/sys/dev/cxgbe/cxgbei

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 22:42:52 2018 New Revision: 341001 URL: https://svnweb.freebsd.org/changeset/base/341001 Log: Check for an allocation failure before dereferencing the pointer. Reported by: Ilja Van Sprundel Reviewed by: np MFC after:1 week Sponsored by: The

svn commit: r340997 - head/lib/libarchive

2018-11-26 Thread Martin Matuska
Author: mm Date: Mon Nov 26 21:45:27 2018 New Revision: 340997 URL: https://svnweb.freebsd.org/changeset/base/340997 Log: libarchive configuration changes - move HAVE_BZLIB_H, HAVE_LIBLZMA and HAVE_LZMA_H to config_freebsd.h - activate support for multi-threaded lzma encoding [1] PR:

Re: svn commit: r340617 - head/sys/netgraph

2018-11-26 Thread John Baldwin
On 11/18/18 11:27 PM, Eugene Grosbein wrote: > Author: eugen > Date: Mon Nov 19 07:27:50 2018 > New Revision: 340617 > URL: https://svnweb.freebsd.org/changeset/base/340617 > > Log: > Unbreak ng_source(4) for 64-bit platforms including amd64. > > Modified: > head/sys/netgraph/ng_source.c >

svn commit: r340996 - in head/sys: amd64/amd64 amd64/ia32 i386/i386 kern

2018-11-26 Thread Eric van Gyzen
Author: vangyzen Date: Mon Nov 26 20:56:05 2018 New Revision: 340996 URL: https://svnweb.freebsd.org/changeset/base/340996 Log: Remove superfluous bzero in getcontext/swapcontext/sendsig We zero the whole structure; we don't need to zero the __spare__ field again. Remove trailing

svn commit: r340995 - in head/sys: arm/arm arm64/arm64 riscv/riscv

2018-11-26 Thread Eric van Gyzen
Author: vangyzen Date: Mon Nov 26 20:52:53 2018 New Revision: 340995 URL: https://svnweb.freebsd.org/changeset/base/340995 Log: Prevent kernel stack disclosure in signal delivery On arm64 and riscv platforms, sendsig() failed to zero the signal frame before copying it out to userspace.

svn commit: r340994 - in head/sys: amd64/ia32 mips/mips powerpc/powerpc

2018-11-26 Thread Eric van Gyzen
Author: vangyzen Date: Mon Nov 26 20:50:55 2018 New Revision: 340994 URL: https://svnweb.freebsd.org/changeset/base/340994 Log: Prevent kernel stack disclosure in getcontext/swapcontext Expand r338982 to cover freebsd32 interfaces on amd64, mips, and powerpc. MFC after:2 days

Re: svn commit: r340676 - in head/sys: kern sys

2018-11-26 Thread John Baldwin
On 11/22/18 9:28 AM, Mateusz Guzik wrote: > diff --git a/sys/sys/systm.h b/sys/sys/systm.h > index a1b98c5660c..fab94ee7979 100644 > --- a/sys/sys/systm.h > +++ b/sys/sys/systm.h > @@ -523,7 +523,11 @@ int alloc_unr_specific(struct unrhdr *uh, u_int item); > int alloc_unrl(struct unrhdr *uh); >

svn commit: r340993 - head/sys/dev/acpica

2018-11-26 Thread Ben Widawsky
Author: bwidawsk Date: Mon Nov 26 19:41:13 2018 New Revision: 340993 URL: https://svnweb.freebsd.org/changeset/base/340993 Log: acpi/ec: Fix regression caused by r340644 After r340644 there were two things wrong in cases where there is both an ECDT, and an EC device exposed via acpica.

svn commit: r340992 - in head: etc/mtree share/colldef share/ctypedef share/monetdef share/msgdef share/numericdef share/timedef tools/tools/locale tools/tools/locale/etc

2018-11-26 Thread Yuri Pankov
Author: yuripv Date: Mon Nov 26 19:39:49 2018 New Revision: 340992 URL: https://svnweb.freebsd.org/changeset/base/340992 Log: Add ga_IE.UTF-8 locale. PR: 228587 Submitted by: Micil (LC_TIME) Reviewed by: bapt Approved by: kib (mentor, implicit) MFC after:3 days

svn commit: r340991 - head/stand/i386/libi386

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 19:29:18 2018 New Revision: 340991 URL: https://svnweb.freebsd.org/changeset/base/340991 Log: stand/i386/libi386: rename .s file to .S to use Clang IAS As part of the migration away from obsolete binutils we want to retire GNU as. Most assembly files used

svn commit: r340990 - head/stand/i386/btx/lib

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 19:14:33 2018 New Revision: 340990 URL: https://svnweb.freebsd.org/changeset/base/340990 Log: btx: rename .s files to .S to use Clang IAS As part of the migration away from obsolete binutils we want to retire GNU as. Most assembly files used on amd64 have

svn commit: r340989 - head/sys/dev/extres/regulator

2018-11-26 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 26 18:46:15 2018 New Revision: 340989 URL: https://svnweb.freebsd.org/changeset/base/340989 Log: regulator_fixed: Do not disable fixed regulator at probe If the regulator is unused it will be disabled by the regulator_shutdown sysinit. Tested on pinebook

svn commit: r340988 - head/sys/kern

2018-11-26 Thread Alan Somers
Author: asomers Date: Mon Nov 26 18:31:00 2018 New Revision: 340988 URL: https://svnweb.freebsd.org/changeset/base/340988 Log: vfs_aio.c: rename "physio" symbols to "bio". aio has two paths: an asynchronous "physio" path and a synchronous path. Confusingly, physio(9) isn't actually used

svn commit: r340987 - head/sys/arm64/conf

2018-11-26 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 26 17:59:25 2018 New Revision: 340987 URL: https://svnweb.freebsd.org/changeset/base/340987 Log: arm64: Add evdev support to GENERIC Modified: head/sys/arm64/conf/GENERIC Modified: head/sys/arm64/conf/GENERIC

svn commit: r340986 - head

2018-11-26 Thread Ed Maste
functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20181126: + On amd64, arm64 and armv7 (architectures that install LLVM's ld.lld + linker as /usr/bin/ld) GNU ld is no longer installed as ld.bfd, as + it produces broken binaries when ifuncs

svn commit: r340985 - head/share/man/man5

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 17:11:50 2018 New Revision: 340985 URL: https://svnweb.freebsd.org/changeset/base/340985 Log: src.conf.5: regen after r340984 (and r340841) Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r340984 - in head: gnu/usr.bin/binutils tools/build/mk tools/build/options

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 17:07:35 2018 New Revision: 340984 URL: https://svnweb.freebsd.org/changeset/base/340984 Log: Do not install GNU ld if lld is /usr/bin/ld GNU binutils ld.bfd 2.17.50 does not support ifuncs and produces broken binaries when ifuncs are in use. When

svn commit: r340983 - head/release/tools

2018-11-26 Thread Glen Barber
Author: gjb Date: Mon Nov 26 17:00:39 2018 New Revision: 340983 URL: https://svnweb.freebsd.org/changeset/base/340983 Log: Fix NTP query on GCE due to unresolved hostname. PR: 232456 Submitted by: Lucas Kanashiro MFC after:3 days Sponsored by: The FreeBSD Foundation

svn commit: r340981 - in head/release: arm64 tools

2018-11-26 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 26 16:38:39 2018 New Revision: 340981 URL: https://svnweb.freebsd.org/changeset/base/340981 Log: release: arm64: Add PINEBOOK config Add a configuration for PINEBOOK image. Pinebook is a arm64 laptop based on a Pine64 board. Since the usb trackpad need a

svn commit: r340979 - head/sbin/ipfw

2018-11-26 Thread Eugene Grosbein
Author: eugen Date: Mon Nov 26 16:10:20 2018 New Revision: 340979 URL: https://svnweb.freebsd.org/changeset/base/340979 Log: Small language fix after r340978. MFC after:3 days Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8

svn commit: r340978 - head/sbin/ipfw

2018-11-26 Thread Eugene Grosbein
Author: eugen Date: Mon Nov 26 16:02:17 2018 New Revision: 340978 URL: https://svnweb.freebsd.org/changeset/base/340978 Log: ipfw.8: add new section to EXAMPLES: SELECTIVE MIRRORING If your network has network traffic analyzer connected to your host directly via dedicated

svn commit: r340976 - head/contrib/nvi/common

2018-11-26 Thread Yuri Pankov
Author: yuripv Date: Mon Nov 26 15:33:55 2018 New Revision: 340976 URL: https://svnweb.freebsd.org/changeset/base/340976 Log: vi: fix UTF-8 detection. PR: 202290 Submitted by: la...@fit.vutbr.cz Reviewed by: bapt Approved by: kib (mentor, implicit) MFC after:3 days

svn commit: r340974 - head/sbin/bectl

2018-11-26 Thread Yuri Pankov
Author: yuripv Date: Mon Nov 26 15:11:32 2018 New Revision: 340974 URL: https://svnweb.freebsd.org/changeset/base/340974 Log: bectl: sync usage with man page, removing stray multibyte characters in the process. PR: 233526 Submitted by: tigersha...@gmail.com (original version)

svn commit: r340975 - head/usr.bin/clang/llvm-objdump

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 15:12:58 2018 New Revision: 340975 URL: https://svnweb.freebsd.org/changeset/base/340975 Log: llvm-objdump.1: fix igor / mandoc -Tlint warnings Accidentally omitted from r340972. Modified: head/usr.bin/clang/llvm-objdump/llvm-objdump.1 Modified:

svn commit: r340973 - head/usr.bin/clang/llvm-objdump

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 14:45:58 2018 New Revision: 340973 URL: https://svnweb.freebsd.org/changeset/base/340973 Log: llvm-objdump.1: remove invalid options Some options appear in llvm-objdump's usage information as a side effect of its option parsing implementation and are not

svn commit: r340972 - head/usr.bin/clang/llvm-objdump

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 14:34:30 2018 New Revision: 340972 URL: https://svnweb.freebsd.org/changeset/base/340972 Log: llvm-objdump: initial man page Based on llvm-objdump's online documentation and usage information. This serves as a starting point; additional detail and cleanup

svn commit: r340971 - head/sys/arm/allwinner

2018-11-26 Thread Emmanuel Vadot
Author: manu Date: Mon Nov 26 14:27:13 2018 New Revision: 340971 URL: https://svnweb.freebsd.org/changeset/base/340971 Log: aw_usbphy: Do not error if it's not phy 0 Only phy0 can switch between host/otg, do not error if we request host mode on phy != 0. MFC after:1 month

svn commit: r340969 - head/lib/libc

2018-11-26 Thread Ed Maste
Author: emaste Date: Mon Nov 26 13:56:19 2018 New Revision: 340969 URL: https://svnweb.freebsd.org/changeset/base/340969 Log: revert r340640 "libc: forcibly disable BIND_NOW" When immediate bind mode is requested, as of r340675 rtld processes irelocs in PLT immediately after other PLT

svn commit: r340968 - head/sys/net

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 13:42:18 2018 New Revision: 340968 URL: https://svnweb.freebsd.org/changeset/base/340968 Log: Plug routing sysctl leaks. Various structures exported by sysctl_rtsock() contain padding fields which were not being zeroed. Reported by: Thomas Barabosch,

svn commit: r340939 - in head/contrib/libarchive/libarchive: . test

2018-11-26 Thread Martin Matuska
Author: mm Date: Mon Nov 26 11:04:35 2018 New Revision: 340939 URL: https://svnweb.freebsd.org/changeset/base/340939 Log: MFV r340938: Sync libarchive with vendor. Relevant vendor changes: Issue #1096: Support extracting ACLs with in-entry comments (GNU tar) PR #1023: Support

svn commit: r340933 - head/lib/libedit

2018-11-26 Thread Baptiste Daroussin
Author: bapt Date: Mon Nov 26 08:16:33 2018 New Revision: 340933 URL: https://svnweb.freebsd.org/changeset/base/340933 Log: libedit: improve multibyte support Until this commit libedit only supported UTF-8 for multibyte charset Improve it to support other multibyte charsets Tested