svn commit: r311505 - head/contrib/bsnmp/snmp_mibII

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 07:57:45 2017 New Revision: 311505 URL: https://svnweb.freebsd.org/changeset/base/311505 Log: Remove unnecessary __unused attribute attached to `ctx` in op_begemot_mibII(..) MFC after:3 days Modified: head/contrib/bsnmp/snmp_mibII/mibII_begemot.c Modif

svn commit: r311504 - in head: contrib/xz contrib/xz/src/common contrib/xz/src/liblzma/api/lzma contrib/xz/src/liblzma/check contrib/xz/src/liblzma/common contrib/xz/src/liblzma/delta contrib/xz/sr...

2017-01-05 Thread Xin LI
Author: delphij Date: Fri Jan 6 07:54:53 2017 New Revision: 311504 URL: https://svnweb.freebsd.org/changeset/base/311504 Log: MFV r311477: xz 5.2.3. MFC after:2 weeks Modified: head/contrib/xz/ChangeLog head/contrib/xz/THANKS head/contrib/xz/src/common/tuklib_cpucores.c head/c

svn commit: r311475 - head/sys/net

2017-01-05 Thread Sepherosa Ziehau
Author: sephe Date: Fri Jan 6 05:10:49 2017 New Revision: 311475 URL: https://svnweb.freebsd.org/changeset/base/311475 Log: if: Defer the if_up until the ifnet.if_ioctl is called. This ensures the interface is initialized by the interface driver before it can be used by the rest of the s

svn commit: r311474 - head/sys/compat/linux

2017-01-05 Thread Gleb Smirnoff
Author: glebius Date: Fri Jan 6 04:38:38 2017 New Revision: 311474 URL: https://svnweb.freebsd.org/changeset/base/311474 Log: Use getsock_cap() instead of fgetsock(). Reviewed by: dchagin Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ===

svn commit: r311473 - head/libexec/tftpd

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 04:27:07 2017 New Revision: 311473 URL: https://svnweb.freebsd.org/changeset/base/311473 Log: Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard This will allow the code to stand by itself without libwrap MFC after:2 weeks Modified: hea

svn commit: r311472 - in head/usr.sbin/amd: amd include

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 04:22:25 2017 New Revision: 311472 URL: https://svnweb.freebsd.org/changeset/base/311472 Log: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into amd(8). MFC after:2 weeks Modified: head/usr.sbin/amd/amd/Makefile

svn commit: r311471 - head/usr.sbin/sendmail

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 04:16:03 2017 New Revision: 311471 URL: https://svnweb.freebsd.org/changeset/base/311471 Log: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into sendmail. MFC after:2 weeks Modified: head/usr.sbin/sendmail/Makef

svn commit: r311470 - head/usr.sbin/rpcbind

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 04:13:08 2017 New Revision: 311470 URL: https://svnweb.freebsd.org/changeset/base/311470 Log: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into rpcbind. MFC after:2 weeks Modified: head/usr.sbin/rpcbind/Makefil

svn commit: r311469 - head/usr.sbin/ypserv

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Fri Jan 6 04:10:33 2017 New Revision: 311469 URL: https://svnweb.freebsd.org/changeset/base/311469 Log: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv. MFC after:2 weeks Modified: head/usr.sbin/ypserv/Makefile

svn commit: r311464 - head/sys/mips/mips

2017-01-05 Thread John Baldwin
Author: jhb Date: Fri Jan 6 00:41:30 2017 New Revision: 311464 URL: https://svnweb.freebsd.org/changeset/base/311464 Log: Add uintmax_t casts to silence printf format warnings. The format strings weren't checked when stacksave_subr() used a function pointer for printf instead of directly

svn commit: r311463 - head/sys/mips/ingenic

2017-01-05 Thread Alexander Kabaev
Author: kan Date: Fri Jan 6 00:07:36 2017 New Revision: 311463 URL: https://svnweb.freebsd.org/changeset/base/311463 Log: Remove redundant cache initialization in JZ4780 SMP startup code This was done out of pure paranoia when hunting for bugs in cache and is not really required. Modifi

svn commit: r311462 - in head: sys/conf sys/contrib/dev/acpica sys/contrib/dev/acpica/common sys/contrib/dev/acpica/compiler sys/contrib/dev/acpica/components/debugger sys/contrib/dev/acpica/compon...

2017-01-05 Thread Jung-uk Kim
Author: jkim Date: Thu Jan 5 21:28:25 2017 New Revision: 311462 URL: https://svnweb.freebsd.org/changeset/base/311462 Log: Merge ACPICA 20161222. Added: head/sys/contrib/dev/acpica/os_specific/service_layers/osgendbg.c - copied, changed from r310450, vendor-sys/acpica/dist/source/os_sp

Re: svn commit: r311459 - head/contrib/tcp_wrappers

2017-01-05 Thread Dimitry Andric
On 05 Jan 2017, at 22:05, Konstantin Belousov wrote: > > On Thu, Jan 05, 2017 at 08:44:45PM +, Dimitry Andric wrote: >> +extern int hosts_access(struct request_info *); >> /* access control */ >> +extern int hosts_ctl(char *, char *, char *, char *);

svn commit: r311461 - head/contrib/tcp_wrappers

2017-01-05 Thread Dimitry Andric
Author: dim Date: Thu Jan 5 21:17:10 2017 New Revision: 311461 URL: https://svnweb.freebsd.org/changeset/base/311461 Log: Also remove unnecessary extern keywords from tcpd.h. Noticed by: kib X-MFC-With: r311459 Modified: head/contrib/tcp_wrappers/tcpd.h Modified: head/contrib/tcp

Re: svn commit: r311459 - head/contrib/tcp_wrappers

2017-01-05 Thread Konstantin Belousov
On Thu, Jan 05, 2017 at 08:44:45PM +, Dimitry Andric wrote: > +extern int hosts_access(struct request_info *); > /* access control */ > +extern int hosts_ctl(char *, char *, char *, char *); > /* wrapper around request_init() */ The 'extern

svn commit: r311459 - head/contrib/tcp_wrappers

2017-01-05 Thread Dimitry Andric
Author: dim Date: Thu Jan 5 20:44:45 2017 New Revision: 311459 URL: https://svnweb.freebsd.org/changeset/base/311459 Log: Put proper prototypes in tcpd.h Clang 4.0.0 complains about tcpd.h's not-really-prototypes, e.g.: /usr/include/tcpd.h:75:24: error: this function declaration i

svn commit: r311458 - in head/sys/boot/mips/beri: boot2 common loader

2017-01-05 Thread Alexander Kabaev
Author: kan Date: Thu Jan 5 19:17:14 2017 New Revision: 311458 URL: https://svnweb.freebsd.org/changeset/base/311458 Log: Use compiler driver to link BERI boot loaders Do not hardcode elf64-tradbigmips as output format in BERI linker scrips. Unfortunately, in-tree toolchain and external

svn commit: r311455 - head/sys/boot/fdt/dts/arm

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:27:50 2017 New Revision: 311455 URL: https://svnweb.freebsd.org/changeset/base/311455 Log: Add DTS file for Armada 385 DB-AP board Armada38x is already supported in the tree. This commit adds support for DB-AP board. File was taken from Linux v4.8 and acc

svn commit: r311454 - head/sys/boot/fdt/dts/arm

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:25:16 2017 New Revision: 311454 URL: https://svnweb.freebsd.org/changeset/base/311454 Log: Add DTS file for Solidrun ClearFog board ClearFog is equipped with Marvell Armada 388 SoC, which is already supported in FreeBSD. Submitted by: Bartosz Szczepane

svn commit: r311453 - head/sys/netinet

2017-01-05 Thread Hiren Panchasara
Author: hiren Date: Thu Jan 5 17:22:09 2017 New Revision: 311453 URL: https://svnweb.freebsd.org/changeset/base/311453 Log: sysctl net.inet.tcp.hostcache.list in a jail can see connections from other jails and the host. This commit fixes it. PR: 200361 Submitted by: bz (origi

svn commit: r311452 - in head/sys: compat/freebsd32 compat/linux compat/svr4 fs/nfs fs/nfsserver fs/nullfs fs/unionfs i386/ibcs2 kern sys

2017-01-05 Thread Konstantin Belousov
Author: kib Date: Thu Jan 5 17:19:26 2017 New Revision: 311452 URL: https://svnweb.freebsd.org/changeset/base/311452 Log: Do not allocate struct statfs on kernel stack. Right now size of the structure is 472 bytes on amd64, which is already large and stack allocations are indesirable. W

svn commit: r311451 - head/sys/boot/fdt/dts/arm

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:14:56 2017 New Revision: 311451 URL: https://svnweb.freebsd.org/changeset/base/311451 Log: Correct CESA node in armada-38x.dtsi CESA resources were invalid, what caused driver to fail during attach call. Submitted by: Bartosz Szczepanek Obtained fro

Re: svn commit: r311346 - in head/sys: kern sys vm

2017-01-05 Thread Mark Johnston
On Thu, Jan 05, 2017 at 09:16:02AM +, Steven Hartland wrote: > Given the use of the number of CPU's for sizing would this play nice > with hot plug CPU's? > > Regards > Steve Not without some work. I don't think it would be a major obstacle to adding hot-plug CPU support on at leas

svn commit: r311450 - head/sys/boot/fdt/dts/arm

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:12:53 2017 New Revision: 311450 URL: https://svnweb.freebsd.org/changeset/base/311450 Log: Add buffer management entries to armada-38x.dtsi Hardware buffer management entries are not used yet by FreeBSD. They were added for compliance with Linux Armada 38x

svn commit: r311449 - in head/sys: arm/conf conf

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:10:52 2017 New Revision: 311449 URL: https://svnweb.freebsd.org/changeset/base/311449 Log: Include e6000sw driver in ARMADA38X configuration e6000sw Marvell switch driver was added to files and Armada38x kernel configuration file. Submitted by: Bartosz

svn commit: r311448 - head/sys/dev/etherswitch/e6000sw

2017-01-05 Thread Zbigniew Bodek
Author: zbb Date: Thu Jan 5 17:08:10 2017 New Revision: 311448 URL: https://svnweb.freebsd.org/changeset/base/311448 Log: Improve ports handling in e6000sw driver - recognize ports and vlangroups based on DTS file - support multi-chip addresing mode (required in upcoming Armada-388-C

svn commit: r311447 - in head/sys: compat/freebsd32 kern

2017-01-05 Thread Konstantin Belousov
Author: kib Date: Thu Jan 5 17:03:35 2017 New Revision: 311447 URL: https://svnweb.freebsd.org/changeset/base/311447 Log: Some style fixes for getfstat(2)-related code. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_misc.c hea

Re: svn commit: r311343 - head/sys/mips/mips

2017-01-05 Thread John Baldwin
On Thursday, January 05, 2017 12:59:53 AM John Baldwin wrote: > Author: jhb > Date: Thu Jan 5 00:59:53 2017 > New Revision: 311343 > URL: https://svnweb.freebsd.org/changeset/base/311343 > > Log: > Use db_printsym() to display function names in stack traces. > > Previously, the stack unwin

svn commit: r311446 - head/sys/cam/ctl

2017-01-05 Thread Alexander Motin
Author: mav Date: Thu Jan 5 16:30:13 2017 New Revision: 311446 URL: https://svnweb.freebsd.org/changeset/base/311446 Log: Fix bootverbose affecting code logic in r294558. Reported by: Jilles Tjoelker Modified: head/sys/cam/ctl/ctl_ha.c Modified: head/sys/cam/ctl/ctl_ha.c

svn commit: r311445 - head/etc/mtree

2017-01-05 Thread Alan Somers
Author: asomers Date: Thu Jan 5 15:07:04 2017 New Revision: 311445 URL: https://svnweb.freebsd.org/changeset/base/311445 Log: Fix typo from r311349 Reported by: lwhsu Pointy-hat-to:asomers MFC after:4 weeks X-MFC-with: 311349 Modified: head/etc/mtree/BSD.tests.dist

svn commit: r311426 - head/usr.bin/netstat

2017-01-05 Thread Hajimu UMEMOTO
Author: ume Date: Thu Jan 5 11:44:27 2017 New Revision: 311426 URL: https://svnweb.freebsd.org/changeset/base/311426 Log: When displaying netstat details with libxo in JSON or XML modes, the value conversion for tcp6 and udp6 port numbers drops last digit. PR: 215682 MFC af

Re: svn commit: r311287 - head/lib/libc/x86/sys

2017-01-05 Thread Ngie Cooper (yaneurabeya)
> On Jan 4, 2017, at 08:10, Konstantin Belousov wrote: > > Author: kib > Date: Wed Jan 4 16:10:52 2017 > New Revision: 311287 > URL: https://svnweb.freebsd.org/changeset/base/311287 > > Log: > __vdso_gettc(): be extra careful with /dev/hpet mappings, never unmap > the mapping which might be

svn commit: r311394 - head/contrib/bsnmp/snmp_usm

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 09:46:36 2017 New Revision: 311394 URL: https://svnweb.freebsd.org/changeset/base/311394 Log: op_usm_users: don't deref uusers if it's NULL when SETting the value Add an XXX comment to note that the conditional seems suspect given how it's handled elsewhere i

svn commit: r311393 - head/usr.sbin/bsnmpd/modules/snmp_hostres

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 09:28:38 2017 New Revision: 311393 URL: https://svnweb.freebsd.org/changeset/base/311393 Log: OS_getSystemUptime: use nitems for calculating the number of elements in a sysctl mib instead of hardcoding the number 2 MFC after:3 days Modified: head/usr.s

svn commit: r311392 - head/usr.bin/netstat

2017-01-05 Thread Xin LI
Author: delphij Date: Thu Jan 5 09:23:54 2017 New Revision: 311392 URL: https://svnweb.freebsd.org/changeset/base/311392 Log: Use strlcpy and snprintf in netstat(1). Expand inet6name() line buffer to NI_MAXHOST and use strlcpy/snprintf in various places. Reported by: Anton Yuzhanin

Re: svn commit: r311346 - in head/sys: kern sys vm

2017-01-05 Thread Steven Hartland
Given the use of the number of CPU's for sizing would this play nice with hot plug CPU's? Regards Steve On 05/01/2017 01:44, Mark Johnston wrote: Author: markj Date: Thu Jan 5 01:44:12 2017 New Revision: 311346 URL: https://svnweb.freebsd.org/changeset/base/311346 Log: Add a small

svn commit: r311390 - head/contrib/bsnmp/lib

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 08:49:06 2017 New Revision: 311390 URL: https://svnweb.freebsd.org/changeset/base/311390 Log: snmp_table_fetch_async: don't leak `work` if snmp_pdu_send(..) fails MFC after:1 week Reported by: Coverity CID: 1017276 Modified: head/contrib/bs

Re: svn commit: r311283 - head/sys/cam/ctl

2017-01-05 Thread Edward Tomasz Napierała
Dnia 04.01.2017 o godz. 16:38 Ryan Stone napisał(a): >> On Wed, Jan 4, 2017 at 7:50 AM, Edward Tomasz Napierala >> wrote: >> + refcount_release(&cs->cs_outstanding_ctl_pdus); > > Shouldn't the return value of refcount_release() be checked? Not in this case. The destruction of cfumass

svn commit: r311384 - head/contrib/bsnmp/snmp_usm

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 08:27:23 2017 New Revision: 311384 URL: https://svnweb.freebsd.org/changeset/base/311384 Log: op_usm_users: fix indentation in SNMP_OP_SET block MFC after:3 days Modified: head/contrib/bsnmp/snmp_usm/usm_snmp.c Modified: head/contrib/bsnmp/snmp_usm/usm_

svn commit: r311382 - head/contrib/bsnmp/snmpd

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 08:17:17 2017 New Revision: 311382 URL: https://svnweb.freebsd.org/changeset/base/311382 Log: Use calloc instead of malloc + memset(.., 0, ..) MFC after:3 days Modified: head/contrib/bsnmp/snmpd/trans_lsock.c Modified: head/contrib/bsnmp/snmpd/trans_lso

svn commit: r311381 - head/contrib/bsnmp/snmpd

2017-01-05 Thread Ngie Cooper
Author: ngie Date: Thu Jan 5 08:14:20 2017 New Revision: 311381 URL: https://svnweb.freebsd.org/changeset/base/311381 Log: lsock_init_port: address issues with initializing sockaddr_un object - Use strlcpy to ensure p->name doesn't overflow sa.sun_path [*]. - Use SUN_LEN(..) instead of s