svn commit: r328320 - head/sys/kern

2018-01-23 Thread Wojciech Macek
Author: wma Date: Wed Jan 24 07:54:05 2018 New Revision: 328320 URL: https://svnweb.freebsd.org/changeset/base/328320 Log: ULE: provide defaults to ts_cpu Fix a bug when the system has no CPU 0. When created, threads were implicitly assigned to CPU 0. This had no practical effect since

svn commit: r328319 - head/usr.bin/m4

2018-01-23 Thread Eitan Adler
Author: eadler Date: Wed Jan 24 07:01:44 2018 New Revision: 328319 URL: https://svnweb.freebsd.org/changeset/base/328319 Log: m4: add annotations to various functions Explain to the compiler that several functions are either noreturn or take printf like arguments Discussed with:

svn commit: r328318 - head/contrib/tzdata

2018-01-23 Thread Philip Paeps
Author: philip Date: Wed Jan 24 06:48:42 2018 New Revision: 328318 URL: https://svnweb.freebsd.org/changeset/base/328318 Log: Import tzdata 2018c Changes: https://github.com/eggert/tz/blob/2018c/NEWS MFC after:3 days Added: head/contrib/tzdata/pacificnew - copied unchanged

svn commit: r328316 - vendor/tzdata/dist

2018-01-23 Thread Philip Paeps
Author: philip Date: Wed Jan 24 06:45:03 2018 New Revision: 328316 URL: https://svnweb.freebsd.org/changeset/base/328316 Log: Import tzdata 2018c Added: vendor/tzdata/dist/pacificnew Modified: vendor/tzdata/dist/Makefile vendor/tzdata/dist/NEWS vendor/tzdata/dist/README

svn commit: r328317 - vendor/tzdata/tzdata2018c

2018-01-23 Thread Philip Paeps
Author: philip Date: Wed Jan 24 06:45:52 2018 New Revision: 328317 URL: https://svnweb.freebsd.org/changeset/base/328317 Log: Tag import of tzdata 2018c Added: vendor/tzdata/tzdata2018c/ - copied from r328316, vendor/tzdata/dist/ ___

svn commit: r328315 - head/sys/dev/cxgb

2018-01-23 Thread Navdeep Parhar
Author: np Date: Wed Jan 24 05:16:11 2018 New Revision: 328315 URL: https://svnweb.freebsd.org/changeset/base/328315 Log: cxgb(4): Validate offset/len in the GET_EEPROM ioctl. Reported by: Ilja Van Sprundel Modified: head/sys/dev/cxgb/cxgb_main.c Modified:

svn commit: r328314 - in head/sys: netinet netinet6

2018-01-23 Thread Navdeep Parhar
Author: np Date: Wed Jan 24 05:09:21 2018 New Revision: 328314 URL: https://svnweb.freebsd.org/changeset/base/328314 Log: Do not generate illegal mbuf chains during IP fragment reassembly. Only the first mbuf of the reassembled datagram should have a pkthdr. This was discovered with

svn commit: r328313 - head/sys/netpfil/pf

2018-01-23 Thread Kristof Provost
Author: kp Date: Wed Jan 24 04:29:16 2018 New Revision: 328313 URL: https://svnweb.freebsd.org/changeset/base/328313 Log: pf: States have at least two references pf_unlink_state() releases a reference to the state without checking if this is the last reference. It can't be, because

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Wed Jan 24 03:09:56 2018 New Revision: 328312 URL: https://svnweb.freebsd.org/changeset/base/328312 Log: Follow changes in r328307 by using new IIC_RECURSIVE flag. The driver now ensures only one thread at a time is running in the API functions (clock_gettime() and

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Wed Jan 24 03:09:41 2018 New Revision: 328311 URL: https://svnweb.freebsd.org/changeset/base/328311 Log: Follow changes in r328307 by using new IIC_RECURSIVE flag. The driver now ensures only one thread at a time is running in the API functions (clock_gettime() and

svn commit: r328310 - stable/11/usr.bin/clang/lld

2018-01-23 Thread Ed Maste
Author: emaste Date: Wed Jan 24 00:52:25 2018 New Revision: 328310 URL: https://svnweb.freebsd.org/changeset/base/328310 Log: MFC r327770: lld: introduce basic man page Upstream lld has no man page. Introduce a basic one for FreeBSD based on ld.lld --help, with a brief introduction and

svn commit: r328309 - in stable: 10/tests/sys/kern 11/tests/sys/kern

2018-01-23 Thread John Baldwin
Author: jhb Date: Wed Jan 24 00:32:02 2018 New Revision: 328309 URL: https://svnweb.freebsd.org/changeset/base/328309 Log: MFC 326953: Catch up to r325719 which makes the kern.proc.pid sysctl "work" for zombies. Some of the ptrace tests need to wait for a child process to become a

svn commit: r328309 - in stable: 10/tests/sys/kern 11/tests/sys/kern

2018-01-23 Thread John Baldwin
Author: jhb Date: Wed Jan 24 00:32:02 2018 New Revision: 328309 URL: https://svnweb.freebsd.org/changeset/base/328309 Log: MFC 326953: Catch up to r325719 which makes the kern.proc.pid sysctl "work" for zombies. Some of the ptrace tests need to wait for a child process to become a

svn commit: r328308 - stable/11/sys/sys

2018-01-23 Thread Pedro F. Giffuni
Author: pfg Date: Wed Jan 24 00:11:46 2018 New Revision: 328308 URL: https://svnweb.freebsd.org/changeset/base/328308 Log: MFC r328221: Define a new __alloc_size2 attribute to complement the existing support. At least on GCC7, calling __alloc_size(x) twice is not equivalent to

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 23:30:19 2018 New Revision: 328307 URL: https://svnweb.freebsd.org/changeset/base/328307 Log: Fix a bug introduced with recursive bus ownership support in r321584. The recursive ownership support added in r321584 was unconditionally in effect all the time --

svn commit: r328306 - head/bin/ps

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 22:48:06 2018 New Revision: 328306 URL: https://svnweb.freebsd.org/changeset/base/328306 Log: Remove some KSE references from ps(1). - Simplify the description of -H to assume 1:1 threading. - Drop 'process' from description of 'lwp' field and the

Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev

2018-01-23 Thread Pedro Giffuni
Hi; On 23/01/2018 17:13, Bryan Drewery wrote: On 1/23/2018 11:40 AM, Pedro Giffuni wrote: Hi; On 23/01/2018 14:08, Conrad Meyer wrote: Hi Pedro, On Sun, Jan 21, 2018 at 7:42 AM, Pedro F. Giffuni wrote: Author: pfg Date: Sun Jan 21 15:42:36 2018 New Revision: 328218 URL:

svn commit: r328305 - head/lib/libcxxrt

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 22:41:13 2018 New Revision: 328305 URL: https://svnweb.freebsd.org/changeset/base/328305 Log: libcxxrt: Move mangled symbols out of extern "C++" in Version.map r260553 added a number of mangled C++ symbols to Version.map inside of an existing `extern

Re: svn commit: r328304 - in head/lib/libc: gen sys

2018-01-23 Thread Bjoern A. Zeeb
On 23 Jan 2018, at 22:18, Kirk McKusick wrote: Author: mckusick Date: Tue Jan 23 22:18:45 2018 New Revision: 328304 URL: https://svnweb.freebsd.org/changeset/base/328304 Modified: head/lib/libc/gen/getgrent.c head/lib/libc/sys/setgroups.2 Modified: head/lib/libc/sys/setgroups.2

svn commit: r328304 - in head/lib/libc: gen sys

2018-01-23 Thread Kirk McKusick
Author: mckusick Date: Tue Jan 23 22:18:45 2018 New Revision: 328304 URL: https://svnweb.freebsd.org/changeset/base/328304 Log: In the C library, the setting up of the group array by various utilities is done by calling gr_addgid() for each group to be added (usually found by traversing

Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev

2018-01-23 Thread Bryan Drewery
On 1/23/2018 11:40 AM, Pedro Giffuni wrote: > Hi; > > > On 23/01/2018 14:08, Conrad Meyer wrote: >> Hi Pedro, >> >> On Sun, Jan 21, 2018 at 7:42 AM, Pedro F. Giffuni >> wrote: >>> Author: pfg >>> Date: Sun Jan 21 15:42:36 2018 >>> New Revision: 328218 >>> URL:

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:36:26 2018 New Revision: 328303 URL: https://svnweb.freebsd.org/changeset/base/328303 Log: Switch to using the bcd_clocktime conversion functions that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:31:43 2018 New Revision: 328302 URL: https://svnweb.freebsd.org/changeset/base/328302 Log: Switch to using the bcd_clocktime conversion functions that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

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

2018-01-23 Thread Ian Lepore
Author: ian Date: Tue Jan 23 21:18:15 2018 New Revision: 328301 URL: https://svnweb.freebsd.org/changeset/base/328301 Log: Switch to using the bcd_clocktime conversion functinos that validate the BCD data without panicking, and have common code for handling AM/PM mode. Modified:

svn commit: r328300 - head/sys/sys

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 20:38:03 2018 New Revision: 328300 URL: https://svnweb.freebsd.org/changeset/base/328300 Log: copyright.h: Update license text to 'THE AUTHOR' This matches the license text at https://www.freebsd.org/copyright/freebsd-license.html Sponsored by: The

svn commit: r328299 - in head/sys: amd64/linux amd64/linux32 i386/linux

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 20:35:43 2018 New Revision: 328299 URL: https://svnweb.freebsd.org/changeset/base/328299 Log: Use BSD-2-Clause-FreeBSD license on linux_support.s These files previously had a 3-clause license and 'THE REGENTS' text. Switch to standard 2-clause text with

svn commit: r328298 - in stable/11/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/cd9660 fs/devfs fs/ext2fs fs/fdescfs fs/fifofs fs/fuse fs/msdosfs fs/nandfs fs/nfsclient fs/smbfs fs/tmpfs fs/u...

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 20:08:25 2018 New Revision: 328298 URL: https://svnweb.freebsd.org/changeset/base/328298 Log: MFC 320900,323882,324224,324226,324228,326986,326988,326989,326990,326993, 326994,326995,327004: Various fixes for pathconf(2). The original change to use

svn commit: r328297 - head/usr.bin/procstat

2018-01-23 Thread Brooks Davis
Author: brooks Date: Tue Jan 23 20:07:51 2018 New Revision: 328297 URL: https://svnweb.freebsd.org/changeset/base/328297 Log: Don't escape '?'s in protocol output. This isn't required by mandoc and is nonfunctional in groff. PR: 224632 Reported by:

svn commit: r328296 - head/sys/netinet6

2018-01-23 Thread Alan Somers
Author: asomers Date: Tue Jan 23 19:40:05 2018 New Revision: 328296 URL: https://svnweb.freebsd.org/changeset/base/328296 Log: sys/netinet6: fix typos in comments. No functional change. MFC after:3 weeks Sponsored by: Spectra Logic Corp Modified: head/sys/netinet6/in6.c

Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev

2018-01-23 Thread Pedro Giffuni
Hi; On 23/01/2018 14:08, Conrad Meyer wrote: Hi Pedro, On Sun, Jan 21, 2018 at 7:42 AM, Pedro F. Giffuni wrote: Author: pfg Date: Sun Jan 21 15:42:36 2018 New Revision: 328218 URL: https://svnweb.freebsd.org/changeset/base/328218 Log: Revert r327828, r327949, r327953,

Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev

2018-01-23 Thread Conrad Meyer
Hi Pedro, On Sun, Jan 21, 2018 at 7:42 AM, Pedro F. Giffuni wrote: > Author: pfg > Date: Sun Jan 21 15:42:36 2018 > New Revision: 328218 > URL: https://svnweb.freebsd.org/changeset/base/328218 > > Log: > Revert r327828, r327949, r327953, r328016-r328026, r328041: > Uses of

svn commit: r328295 - stable/11/sys/fs/tmpfs

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 19:00:13 2018 New Revision: 328295 URL: https://svnweb.freebsd.org/changeset/base/328295 Log: MFC 323993: Use tmpfs_print for tmpfs FIFOs. Modified: stable/11/sys/fs/tmpfs/tmpfs_fifoops.c stable/11/sys/fs/tmpfs/tmpfs_vnops.c

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-23 Thread Poul-Henning Kamp
In message , Warner Losh writes: >--089e08222b4ce7f8a4056372a0d5 >I'm actually thinking the right thing is to remove the checks everywhere. > >We then create a couple of new simplebus methods: +1 -- Poul-Henning

svn commit: r328294 - in stable: 10/sys/sys 11/sys/sys

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 18:22:41 2018 New Revision: 328294 URL: https://svnweb.freebsd.org/changeset/base/328294 Log: MFC 325835: Use #if instead of #ifdef for __BSD_VISIBLE tests. __BSD_VISIBLE is always defined and it's value instead needs to be tested via #if to determine if

svn commit: r328294 - in stable: 10/sys/sys 11/sys/sys

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 18:22:41 2018 New Revision: 328294 URL: https://svnweb.freebsd.org/changeset/base/328294 Log: MFC 325835: Use #if instead of #ifdef for __BSD_VISIBLE tests. __BSD_VISIBLE is always defined and it's value instead needs to be tested via #if to determine if

svn commit: r328293 - head/stand/fdt

2018-01-23 Thread Kyle Evans
Author: kevans Date: Tue Jan 23 18:03:13 2018 New Revision: 328293 URL: https://svnweb.freebsd.org/changeset/base/328293 Log: stand/fdt: Fallback to `name` + ".dtbo" if we fail to load `name` This behavior also matches a Linux-ism by allowing fdt_overlays to specify names of overlays

svn commit: r328292 - head/stand/common

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 18:01:40 2018 New Revision: 328292 URL: https://svnweb.freebsd.org/changeset/base/328292 Log: There's no tainted data here, tag it as such to avoid the slew of false positives. The files the boot loader reads are assumed to be good. CID:

svn commit: r328290 - head/stand/common

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 18:01:32 2018 New Revision: 328290 URL: https://svnweb.freebsd.org/changeset/base/328290 Log: On malloc failure, be sure to close the include file that triggered it. CID: 1007775 Sponsored by: Netflix Modified: head/stand/common/interp.c Modified:

svn commit: r328291 - head/stand/libsa

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 18:01:36 2018 New Revision: 328291 URL: https://svnweb.freebsd.org/changeset/base/328291 Log: getenv does not return tainted data in the boot loader. Attempt to clue Coverity into that fact. Sponsored by: Netflix Modified: head/stand/libsa/environment.c

svn commit: r328289 - head/stand/common

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 18:01:27 2018 New Revision: 328289 URL: https://svnweb.freebsd.org/changeset/base/328289 Log: Don't leak memory when displaying help. Right now, we'll leak memory when we display a help topic because we don't free t, s, d that we've just used when breaking

svn commit: r328288 - head/stand/common

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 18:01:17 2018 New Revision: 328288 URL: https://svnweb.freebsd.org/changeset/base/328288 Log: Fix some resource leaks. Always free dev and fstyp before strduping new values to assign to them. Free them at the end of the loop. This keeps them from leaking

svn commit: r328287 - in head/etc: . mtree

2018-01-23 Thread Kyle Evans
Author: kevans Date: Tue Jan 23 17:59:06 2018 New Revision: 328287 URL: https://svnweb.freebsd.org/changeset/base/328287 Log: Add /boot/overlays to runtime pkg, fix distrib-dirs METALOG generation /boot/overlays was recently added without belonging to a package. It's only used by

svn commit: r328286 - head/contrib/llvm/tools/lld/ELF

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 17:54:39 2018 New Revision: 328286 URL: https://svnweb.freebsd.org/changeset/base/328286 Log: lld: Don't mark a shared library as needed because of a lazy symbol. Obtained from:LLVM r323221 by Rafael EspĂ­ndola Modified:

svn commit: r328284 - head/release

2018-01-23 Thread Glen Barber
Author: gjb Date: Tue Jan 23 16:48:31 2018 New Revision: 328284 URL: https://svnweb.freebsd.org/changeset/base/328284 Log: Bump Copyright year following r328283. MFC after:3 days MFC with: r328283 Sponsored by: The FreeBSD Foundation Modified: head/release/release.sh

svn commit: r328283 - head/release

2018-01-23 Thread Glen Barber
Author: gjb Date: Tue Jan 23 16:41:31 2018 New Revision: 328283 URL: https://svnweb.freebsd.org/changeset/base/328283 Log: When CHROOTBUILD_SKIP is set, evaluate the existence of /bin/sh within the CHROOTDIR. If it does not exist, unset CHROOTBUILD_SKIP to prevent build failures.

svn commit: r328282 - head/bin/date

2018-01-23 Thread Warner Losh
Author: imp Date: Tue Jan 23 15:34:34 2018 New Revision: 328282 URL: https://svnweb.freebsd.org/changeset/base/328282 Log: Fill in ut_id. While it's not relevant to the {OLD,NEW}_TIME entries, we shouldn't leak stack garbage into the field. Sponsored by: Netflix Modified:

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-23 Thread Warner Losh
On Mon, Jan 22, 2018 at 4:54 PM, John Baldwin wrote: > On Monday, January 22, 2018 11:20:40 PM Poul-Henning Kamp wrote: > > > > In message

Re: svn commit: r328279 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
On Tue, 23 Jan 2018 12:22:58 -0200 Renato Botelho wrote: > On 23/01/18 11:03, Emmanuel Vadot wrote: > > Author: manu > > Date: Tue Jan 23 13:03:47 2018 > > New Revision: 328279 > > URL: https://svnweb.freebsd.org/changeset/base/328279 > > > > Log: > > sockstat: Add -q

svn commit: r328281 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
Author: manu Date: Tue Jan 23 14:33:19 2018 New Revision: 328281 URL: https://svnweb.freebsd.org/changeset/base/328281 Log: sockstat: add break that was forgot in 328279 Reported by: garga@ MFC after:1 week X-MFC With: 328279 Sponsored by: Gandi.net Modified:

Re: svn commit: r328279 - head/usr.bin/sockstat

2018-01-23 Thread Renato Botelho
On 23/01/18 11:03, Emmanuel Vadot wrote: > Author: manu > Date: Tue Jan 23 13:03:47 2018 > New Revision: 328279 > URL: https://svnweb.freebsd.org/changeset/base/328279 > > Log: > sockstat: Add -q option to suppress the header line > > MFC after: 1 week > Sponsored by: Gandi.net >

svn commit: r328280 - head/sys/fs/ext2fs

2018-01-23 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 23 14:17:04 2018 New Revision: 328280 URL: https://svnweb.freebsd.org/changeset/base/328280 Log: extfs: Remove unused variables. Found by: scan-build Reviewed by: fsu Differential Revision:https://reviews.freebsd.org/D14017 Modified:

svn commit: r328279 - head/usr.bin/sockstat

2018-01-23 Thread Emmanuel Vadot
Author: manu Date: Tue Jan 23 13:03:47 2018 New Revision: 328279 URL: https://svnweb.freebsd.org/changeset/base/328279 Log: sockstat: Add -q option to suppress the header line MFC after:1 week Sponsored by: Gandi.net Modified: head/usr.bin/sockstat/sockstat.1

svn commit: r328278 - head/sys/powerpc/powernv

2018-01-23 Thread Wojciech Macek
Author: wma Date: Tue Jan 23 08:07:00 2018 New Revision: 328278 URL: https://svnweb.freebsd.org/changeset/base/328278 Log: PowerNV: send MSI_EOI always after MSI unmask MSI/MSI-x interrupts are edge-triggered. If an interrupt arrives when IRQ line is masked, it will be lost and will

svn commit: r328274 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet

2018-01-23 Thread Cy Schubert
Author: cy Date: Tue Jan 23 04:01:48 2018 New Revision: 328274 URL: https://svnweb.freebsd.org/changeset/base/328274 Log: MFC r327718: When growing the state, also grow the seed array. Otherwise memory that was not allocated will be accessed. This necessitated refactoring state seed

Re: svn commit: r319971 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src include lib/libc/stdlib/jemal

2018-01-23 Thread Alexey Dokuchaev
On Mon, Jan 22, 2018 at 10:50:06AM -0800, John Baldwin wrote: > On Monday, January 22, 2018 06:32:10 AM Alexey Dokuchaev wrote: > > ... > > I've just found out that similar bug was already reported back in July: > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220767 > > I wonder if

svn commit: r328277 - stable/10/sys/netpfil/pf

2018-01-23 Thread Kristof Provost
Author: kp Date: Tue Jan 23 05:03:26 2018 New Revision: 328277 URL: https://svnweb.freebsd.org/changeset/base/328277 Log: MFC r327675 pf: Avoid integer overflow issues by using mallocarray() iso. malloc() pfioctl() handles several ioctl that takes variable length input, these

svn commit: r328274 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet

2018-01-23 Thread Cy Schubert
Author: cy Date: Tue Jan 23 04:01:48 2018 New Revision: 328274 URL: https://svnweb.freebsd.org/changeset/base/328274 Log: MFC r327718: When growing the state, also grow the seed array. Otherwise memory that was not allocated will be accessed. This necessitated refactoring state seed

svn commit: r328273 - head/share/man/man4

2018-01-23 Thread Xin LI
Author: delphij Date: Tue Jan 23 03:36:49 2018 New Revision: 328273 URL: https://svnweb.freebsd.org/changeset/base/328273 Log: Document how to load nmdm(4) from a kernel module. Submitted by: kevlo MFC after:2 weeks Modified: head/share/man/man4/nmdm.4 Modified:

svn commit: r328271 - in head/sys: net netinet

2018-01-23 Thread Ryan Stone
Author: rstone Date: Tue Jan 23 03:15:39 2018 New Revision: 328271 URL: https://svnweb.freebsd.org/changeset/base/328271 Log: Reduce code duplication for inpcb route caching Add a new macro to clear both the L3 and L2 route caches, to hopefully prevent future instances where only the L3

svn commit: r328272 - head/sys/net

2018-01-23 Thread Ryan Stone
Author: rstone Date: Tue Jan 23 03:15:44 2018 New Revision: 328272 URL: https://svnweb.freebsd.org/changeset/base/328272 Log: Increment the route table gen count after a modify Increment the route table generation count after modifying a route. This signals back to TCP connections that

svn commit: r328270 - head/sys/net

2018-01-23 Thread Ryan Stone
Author: rstone Date: Tue Jan 23 03:15:35 2018 New Revision: 328270 URL: https://svnweb.freebsd.org/changeset/base/328270 Log: Invalidate inpcb LLE cache if cached route is invalidated When the inpcb route cache is invalidated after a change to the routing tables, we need to invalidate

svn commit: r328275 - stable/11/sys/netpfil/pf

2018-01-23 Thread Kristof Provost
Author: kp Date: Tue Jan 23 04:30:46 2018 New Revision: 328275 URL: https://svnweb.freebsd.org/changeset/base/328275 Log: MFC r327675 pf: Avoid integer overflow issues by using mallocarray() iso. malloc() pfioctl() handles several ioctl that takes variable length input, these

svn commit: r328276 - in stable/10: share/man/man9 sys/kern sys/sys

2018-01-23 Thread Kristof Provost
Author: kp Date: Tue Jan 23 04:37:31 2018 New Revision: 328276 URL: https://svnweb.freebsd.org/changeset/base/328276 Log: MFC r327674, r327796 Introduce mallocarray() in the kernel Similar to calloc() the mallocarray() function checks for integer overflows before allocating memory.