svn commit: r328945 - head/sys/sys

2018-02-06 Thread Bjoern A. Zeeb
Author: bz Date: Tue Feb 6 19:14:15 2018 New Revision: 328945 URL: https://svnweb.freebsd.org/changeset/base/328945 Log: Remove a trailing whitspace. Modified: head/sys/sys/bus_dma.h Modified: head/sys/sys/bus_dma.h

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Bjoern A. Zeeb
On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: Author: kib Date: Wed Jan 31 14:36:27 2018 New Revision: 328625 URL: https://svnweb.freebsd.org/changeset/base/328625 Log: IBRS support, AKA Spectre hardware mitigation. For existing processors, you need a microcode update which adds

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: r327968 - head/sys/kern

2018-01-14 Thread Bjoern A. Zeeb
Author: bz Date: Sun Jan 14 15:01:25 2018 New Revision: 327968 URL: https://svnweb.freebsd.org/changeset/base/327968 Log: Remove trailing whitespace. No functional change. Modified: head/sys/kern/kern_fork.c Modified: head/sys/kern/kern_fork.c

svn commit: r327435 - in head: . sys/sys

2017-12-31 Thread Bjoern A. Zeeb
Author: bz Date: Sun Dec 31 16:48:04 2017 New Revision: 327435 URL: https://svnweb.freebsd.org/changeset/base/327435 Log: Happy New Year 2018 my friends! Modified: head/COPYRIGHT head/sys/sys/copyright.h Modified: head/COPYRIGHT

svn commit: r326665 - head/sys/sys

2017-12-07 Thread Bjoern A. Zeeb
Author: bz Date: Thu Dec 7 19:40:46 2017 New Revision: 326665 URL: https://svnweb.freebsd.org/changeset/base/326665 Log: Use correct field in the description for the lock after r319722. Reviewed by: glebius Sponsored by: iXsystems, Inc. Modified: head/sys/sys/socketvar.h Modified:

svn commit: r325813 - head/sys/dev/vnic

2017-11-14 Thread Bjoern A. Zeeb
Author: bz Date: Tue Nov 14 16:47:05 2017 New Revision: 325813 URL: https://svnweb.freebsd.org/changeset/base/325813 Log: Unbreak IPv6. No longer return ENXIO when trying to send an IPv6 packet in nicvf_sq_add_hdr_subdesc(). Restructure the code so that the upper layer protocol parts

svn commit: r324810 - in head/sys: amd64/conf arm/conf arm64/conf conf i386/conf mips/conf net powerpc/conf riscv/conf sparc64/conf

2017-10-20 Thread Bjoern A. Zeeb
Author: bz Date: Fri Oct 20 21:40:59 2017 New Revision: 324810 URL: https://svnweb.freebsd.org/changeset/base/324810 Log: With r181803 on 2008-08-17 23:27:27Z the first VIMAGE commit went into HEAD. Enable VIMAGE in GENERIC kernels and some others (where GENERIC does not exist) on HEAD.

svn commit: r324562 - head/sys/arm/arm

2017-10-12 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 12 15:53:54 2017 New Revision: 324562 URL: https://svnweb.freebsd.org/changeset/base/324562 Log: Add rev16 instruction to the disassembler. Reviewed by: andrew Differential Revision:https://reviews.freebsd.org/D12645 Modified:

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

2017-10-12 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 12 14:32:45 2017 New Revision: 324549 URL: https://svnweb.freebsd.org/changeset/base/324549 Log: Previously there was a VIRT kernel to which I had added these options. With that gone they need to go into GENERIC now. Makes FreeBSD/arm usable on gem5 by default.

Re: svn commit: r323942 - head/sys/net

2017-09-25 Thread Bjoern A. Zeeb
On 25 Sep 2017, at 17:04, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 23:46, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 6:32, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 1:35, Stephen Hurd wrote: Author: shurd Date: Sat Sep 23 01:35

Re: svn commit: r323942 - head/sys/net

2017-09-25 Thread Bjoern A. Zeeb
On 23 Sep 2017, at 23:46, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 6:32, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 1:35, Stephen Hurd wrote: Author: shurd Date: Sat Sep 23 01:35:14 2017 New Revision: 323942 URL: https://svnweb.freebsd.org/changeset

Re: svn commit: r323942 - head/sys/net

2017-09-23 Thread Bjoern A. Zeeb
On 23 Sep 2017, at 6:32, Stephen Hurd wrote: Bjoern A. Zeeb wrote: On 23 Sep 2017, at 1:35, Stephen Hurd wrote: Author: shurd Date: Sat Sep 23 01:35:14 2017 New Revision: 323942 URL: https://svnweb.freebsd.org/changeset/base/323942 Log: Chain mbufs before passing to if_input() Build

Re: svn commit: r323942 - head/sys/net

2017-09-22 Thread Bjoern A. Zeeb
On 23 Sep 2017, at 1:35, Stephen Hurd wrote: > Author: shurd > Date: Sat Sep 23 01:35:14 2017 > New Revision: 323942 > URL: https://svnweb.freebsd.org/changeset/base/323942 > > Log: > Chain mbufs before passing to if_input() > > Build a list of mbufs to pass to if_input() after LRO. Results

svn commit: r321618 - in head: sys/conf sys/net sys/netinet sys/netinet6 usr.bin/netstat

2017-07-27 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jul 27 13:03:36 2017 New Revision: 321618 URL: https://svnweb.freebsd.org/changeset/base/321618 Log: After inpcb route caching was put back in place there is no need for flowtable anymore (as flowtable was never considered to be useful in the forwarding path).

Re: svn commit: r320196 - in head/sys: compat/linuxkpi/common/include/linux dev/mlx4/mlx4_core dev/mlx5/mlx5_core

2017-07-02 Thread Bjoern A. Zeeb
On 2 Jul 2017, at 13:30, Ed Maste wrote: On 21 June 2017 at 14:20, Mark Johnston wrote: Author: markj Date: Wed Jun 21 18:20:17 2017 New Revision: 320196 URL: https://svnweb.freebsd.org/changeset/base/320196 Log: Update io-mapping.h in the LinuxKPI. sparc64 LINT kernel

svn commit: r318015 - head/sys/net

2017-05-09 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 9 08:29:55 2017 New Revision: 318015 URL: https://svnweb.freebsd.org/changeset/base/318015 Log: Adjust a comment. MFC after:3 days Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c

svn commit: r314396 - head/lib/libfetch

2017-02-28 Thread Bjoern A. Zeeb
Author: bz Date: Tue Feb 28 18:10:03 2017 New Revision: 314396 URL: https://svnweb.freebsd.org/changeset/base/314396 Log: Properly indent a default: label and avoid crashing when running under -v but cannot connect due to trying to print an int as %s [1]. Reported by: andrew [1] MFC

Re: svn commit: r308996 - head/lib/libfetch

2017-02-28 Thread Bjoern A. Zeeb
On 22 Nov 2016, at 13:30, Dag-Erling Smørgrav wrote: Author: des Date: Tue Nov 22 13:30:07 2016 New Revision: 308996 URL: https://svnweb.freebsd.org/changeset/base/308996 Log: Refactor fetch_connect() and fetch_bind() to improve readability and avoid repeating the same DNS lookups.

svn commit: r313714 - head/sys/vm

2017-02-13 Thread Bjoern A. Zeeb
Author: bz Date: Tue Feb 14 01:20:03 2017 New Revision: 313714 URL: https://svnweb.freebsd.org/changeset/base/313714 Log: Use %s __func__ to print the actual function name (been looking at the wrong one for too often lately at first), and also use %#lx to get the 0x prefix for the address.

svn commit: r313557 - head/sys/conf

2017-02-10 Thread Bjoern A. Zeeb
Author: bz Date: Fri Feb 10 16:06:14 2017 New Revision: 313557 URL: https://svnweb.freebsd.org/changeset/base/313557 Log: Allow Dtrace to be compiled into the kernel again after r313177. MFC after:1 week Modified: head/sys/conf/files Modified: head/sys/conf/files

svn commit: r312668 - head/sys/arm64/arm64

2017-01-23 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jan 23 16:40:20 2017 New Revision: 312668 URL: https://svnweb.freebsd.org/changeset/base/312668 Log: Remove a static function declaration for a function not implemented. Makes head code compile on 10.3 and cleanup is never wrong. MFC after:3 days Modified:

svn commit: r311950 - head/sys/contrib/ipfilter/netinet

2017-01-11 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jan 12 00:01:02 2017 New Revision: 311950 URL: https://svnweb.freebsd.org/changeset/base/311950 Log: Get rid of a compiler warning which I saw too often. Include netinet/in.h before ip_compat.t which will then check if IPPROTO_IPIP is defined or not. Doing it the other

svn commit: r311876 - head/usr.sbin/crunch/crunchide

2017-01-10 Thread Bjoern A. Zeeb
Author: bz Date: Tue Jan 10 14:40:30 2017 New Revision: 311876 URL: https://svnweb.freebsd.org/changeset/base/311876 Log: Teach crunchide about EM_S390 to make bootstrapping from future releases easier unless someone will fix the PR properly. MFC after:3 days PR: 215940

svn commit: r308748 - head/sys/netgraph

2016-11-17 Thread Bjoern A. Zeeb
Author: bz Date: Thu Nov 17 14:03:44 2016 New Revision: 308748 URL: https://svnweb.freebsd.org/changeset/base/308748 Log: Writing out the L2TP control packet requires 12 bytes of contiguous memory but in one path we did not always guarantee this, thus do a m_pullup() there. PR:

svn commit: r305811 - head/sys/amd64/amd64

2016-09-14 Thread Bjoern A. Zeeb
Author: bz Date: Wed Sep 14 16:08:23 2016 New Revision: 305811 URL: https://svnweb.freebsd.org/changeset/base/305811 Log: Try to fix LINT builds after r305807. Seems to be a simple s error I missed while reading through the 1st time as well. Modified: head/sys/amd64/amd64/trap.c

Re: svn commit: r305807 - in head/sys: amd64/amd64 i386/i386 x86/include

2016-09-14 Thread Bjoern A. Zeeb
On 14 Sep 2016, at 12:57, Bruce Evans wrote: Author: bde Date: Wed Sep 14 12:57:40 2016 New Revision: 305807 URL: https://svnweb.freebsd.org/changeset/base/305807 Log: Modified: head/sys/amd64/amd64/trap.c breaks all amd64 LINT* kernels:

Re: svn commit: r305468 - in head: contrib/netbsd-tests/kernel/kqueue tests/sys/kqueue

2016-09-06 Thread Bjoern A. Zeeb
On 6 Sep 2016, at 8:50, Ngie Cooper wrote: Author: ngie Date: Tue Sep 6 08:50:21 2016 New Revision: 305468 URL: https://svnweb.freebsd.org/changeset/base/305468 Log: Port contrib/netbsd-tests/kernel/kqueue/... as tests/sys/kqueue/... proc2_test must be skipped because the invariant

svn commit: r305119 - in head/sys/arm/ti: am335x cpsw

2016-08-31 Thread Bjoern A. Zeeb
Author: bz Date: Wed Aug 31 10:45:33 2016 New Revision: 305119 URL: https://svnweb.freebsd.org/changeset/base/305119 Log: After r305113, try to properly replace the magic numbers with proper #defines for this driver (not using the wrong header). Modified:

Re: svn commit: r305113 - in head/sys/arm/ti: am335x cpsw

2016-08-31 Thread Bjoern A. Zeeb
On 31 Aug 2016, at 7:03, Luiz Otavio O Souza wrote: Author: loos Date: Wed Aug 31 07:03:06 2016 New Revision: 305113 URL: https://svnweb.freebsd.org/changeset/base/305113 Log: Replace more magic numbers with the proper register names. Sponsored by: Rubicon Communications, LLC (Netgate)

svn commit: r304956 - head/sys/modules

2016-08-28 Thread Bjoern A. Zeeb
Author: bz Date: Sun Aug 28 12:05:34 2016 New Revision: 304956 URL: https://svnweb.freebsd.org/changeset/base/304956 Log: Back out r304907, Ed had fixed it apparently earlier in the cloudabi* subdirectories. Reported by: np Modified: head/sys/modules/Makefile Modified:

svn commit: r304907 - head/sys/modules

2016-08-27 Thread Bjoern A. Zeeb
Author: bz Date: Sat Aug 27 12:41:15 2016 New Revision: 304907 URL: https://svnweb.freebsd.org/changeset/base/304907 Log: Do not try to build cloudabi32 for pc98. Should unbreak tinderbox. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

Re: svn commit: r304572 - in head: sbin/ipfw sys/conf sys/netinet sys/netinet6

2016-08-21 Thread Bjoern A. Zeeb
On 21 Aug 2016, at 19:08, Slawa Olhovchenkov wrote: On Sun, Aug 21, 2016 at 06:55:30PM +, Bjoern A. Zeeb wrote: Author: bz Date: Sun Aug 21 18:55:30 2016 New Revision: 304572 URL: https://svnweb.freebsd.org/changeset/base/304572 Log: Remove the kernel optoion for IPSEC_FILTERTUNNEL

svn commit: r304572 - in head: sbin/ipfw sys/conf sys/netinet sys/netinet6

2016-08-21 Thread Bjoern A. Zeeb
Author: bz Date: Sun Aug 21 18:55:30 2016 New Revision: 304572 URL: https://svnweb.freebsd.org/changeset/base/304572 Log: Remove the kernel optoion for IPSEC_FILTERTUNNEL, which was deprecated more than 7 years ago in favour of a sysctl in r192648. Modified: head/sbin/ipfw/ipfw.8

Re: svn commit: r304326 - head/sys/dev/usb/net

2016-08-18 Thread Bjoern A. Zeeb
On 18 Aug 2016, at 5:07, Pyun YongHyeon wrote: Author: yongari Date: Thu Aug 18 05:07:02 2016 New Revision: 304326 URL: https://svnweb.freebsd.org/changeset/base/304326 Log: Switch to TX header format rather than directly manipulating header structures. This simplifies mbuf copy operation

svn commit: r304378 - head/sys/netpfil/ipfw/nat64

2016-08-18 Thread Bjoern A. Zeeb
Author: bz Date: Thu Aug 18 10:26:15 2016 New Revision: 304378 URL: https://svnweb.freebsd.org/changeset/base/304378 Log: Try to fix gcc compilation errors (which are right). nat64_getlasthdr() returns an int, which can be -1 in case of error, storing the result in an uint8_t and then

Re: svn commit: r303963 - head/sys/powerpc/include

2016-08-11 Thread Bjoern A. Zeeb
On Thu, 11 Aug 2016, John Baldwin wrote: On Thursday, August 11, 2016 03:06:13 PM Bjoern A. Zeeb wrote: Author: bz Date: Thu Aug 11 15:06:12 2016 New Revision: 303963 URL: https://svnweb.freebsd.org/changeset/base/303963 Log: Revert r303890 for now here as camdd fails to build on powerpc

Re: svn commit: r303890 - in head/sys: contrib/ncsw/user/env contrib/octeon-sdk dev/auxio dev/bktr dev/e1000 dev/ixgb dev/ixgbe dev/ixl dev/netmap dev/pci dev/sound/sbus dev/tpm kern mips/nlm/dev/net

2016-08-11 Thread Bjoern A. Zeeb
On 10 Aug 2016, at 11:02, Konstantin Belousov wrote: On Tue, Aug 09, 2016 at 07:32:06PM +, Jean-S??bastien P??dron wrote: Author: dumbbell Date: Tue Aug 9 19:32:06 2016 New Revision: 303890 URL: https://svnweb.freebsd.org/changeset/base/303890 Log: Consistently use `device_t`

svn commit: r303963 - head/sys/powerpc/include

2016-08-11 Thread Bjoern A. Zeeb
Author: bz Date: Thu Aug 11 15:06:12 2016 New Revision: 303963 URL: https://svnweb.freebsd.org/changeset/base/303963 Log: Revert r303890 for now here as camdd fails to build on powerpc* due to device_t only being available under _KERNEL. Reported by: bde (_KERNEL in general), kib (build

svn commit: r303560 - head/usr.sbin/uathload

2016-07-30 Thread Bjoern A. Zeeb
Author: bz Date: Sat Jul 30 20:39:39 2016 New Revision: 303560 URL: https://svnweb.freebsd.org/changeset/base/303560 Log: Rename devname to udevname after including stdlib.h in r303445 as gcc trips over the devname(3) and reports 'shadows a global declaration'. This should unbreak gcc

svn commit: r303559 - head/sys/dev/pci

2016-07-30 Thread Bjoern A. Zeeb
Author: bz Date: Sat Jul 30 20:31:12 2016 New Revision: 303559 URL: https://svnweb.freebsd.org/changeset/base/303559 Log: Try to declare _hw_pci for all sysctl cases needed after r303497. MFC after:5 days X-MFC with: r303497 Modified: head/sys/dev/pci/pci_pci.c Modified:

svn commit: r302370 - head/sys/contrib/ipfilter/netinet

2016-07-06 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jul 6 10:29:29 2016 New Revision: 302370 URL: https://svnweb.freebsd.org/changeset/base/302370 Log: Only set the ipfilter running state to 'not running' if we are doing the teardown. ipf_destroy_all() may free ipfmain in case of ipf_dynamic_softc being true, thus we

svn commit: r302302 - head/sys/netpfil/ipfw

2016-06-30 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 30 19:32:45 2016 New Revision: 302302 URL: https://svnweb.freebsd.org/changeset/base/302302 Log: In case of the global eventhandler make sure the current VNET is still operational before doing any work; otherwise we might run into, e.g., destroyed locks. PR:

svn commit: r302298 - head/sys/contrib/ipfilter/netinet

2016-06-30 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 30 15:01:07 2016 New Revision: 302298 URL: https://svnweb.freebsd.org/changeset/base/302298 Log: Virtualise ipfilter. Split initializzation an teardown into module (global state) and VNET (per virtual network stack) parts. Virtualise global state, which is not

svn commit: r302290 - head/sys/netpfil/ipfw

2016-06-29 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 30 01:33:14 2016 New Revision: 302290 URL: https://svnweb.freebsd.org/changeset/base/302290 Log: Move the ipfw_log_bpf() calls from global module initialisation to per-VNET initialisation and virtualise the interface cloning to allow a dedicated ipfw log interface

svn commit: r302289 - head/sys/contrib/ipfilter/netinet

2016-06-29 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 30 01:32:12 2016 New Revision: 302289 URL: https://svnweb.freebsd.org/changeset/base/302289 Log: Remove unused global variables as well as unused memory allocations from ipfilter in preparation for VNET support. Suggested by: cy (see D7000) Sponsored

svn commit: r302258 - head/sys/net

2016-06-28 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jun 29 05:21:25 2016 New Revision: 302258 URL: https://svnweb.freebsd.org/changeset/base/302258 Log: Several device drivers call if_alloc() and then do further checks and will cal if_free() in case of conflict, error, .. if_free() however sets the VNET instance from the

svn commit: r302204 - head/sys/conf

2016-06-25 Thread Bjoern A. Zeeb
Author: bz Date: Sat Jun 25 22:24:16 2016 New Revision: 302204 URL: https://svnweb.freebsd.org/changeset/base/302204 Log: Unbreak building of LINT kernels after r302163. Approved by: re (gjb) Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES

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

2016-06-24 Thread Bjoern A. Zeeb
Author: bz Date: Fri Jun 24 11:53:12 2016 New Revision: 302173 URL: https://svnweb.freebsd.org/changeset/base/302173 Log: The void isn't void. Unbreak sparc64 and powerpc builds. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation MFC after:12 days Modified:

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

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 22:31:44 2016 New Revision: 302160 URL: https://svnweb.freebsd.org/changeset/base/302160 Log: Proerply virtualize pfsync for bringup after pf is initialized and teardown of VNETs once pf(4) has been shut down. Properly split resources into VNET_SYS(UN)INITs and

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

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 22:31:10 2016 New Revision: 302159 URL: https://svnweb.freebsd.org/changeset/base/302159 Log: Make sure pflog is attached after pf is initializaed so we can borrow pf's lock, and also make sure pflog goes after pf is gone in order to avoid callouts in VNETs to an

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

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 21:42:43 2016 New Revision: 302157 URL: https://svnweb.freebsd.org/changeset/base/302157 Log: PFSTATE_NOSYNC goes onto state_flags, not sync_state; this prevents: panic: pfsync_delete_state: unexpected sync state 8 Reviewed by: kp Approved by:

svn commit: r302156 - in head/sys: net netpfil/pf

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 21:34:38 2016 New Revision: 302156 URL: https://svnweb.freebsd.org/changeset/base/302156 Log: Update pf(4) and pflog(4) to survive basic VNET testing, which includes proper virtualisation, teardown, avoiding use-after-free, race conditions, no longer creating a

svn commit: r302155 - head/sys/netinet

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 21:32:52 2016 New Revision: 302155 URL: https://svnweb.freebsd.org/changeset/base/302155 Log: Try to avoid a 2nd conditional by re-writing the loop, pause, and escape clause another time. Submitted by: jhb Approved by: re (gjb) MFC after:12 days

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

2016-06-23 Thread Bjoern A. Zeeb
On 23 Jun 2016, at 8:17, Marko Zec wrote: > On Thu, 23 Jun 2016 00:34:03 + > "Bjoern A. Zeeb" <b...@freebsd.org> wrote: > >> Author: bz >> Date: Thu Jun 23 00:34:03 2016 >> New Revision: 302099 >> URL: https://svnweb.freebs

svn commit: r302140 - head/sys/netinet

2016-06-23 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 11:55:15 2016 New Revision: 302140 URL: https://svnweb.freebsd.org/changeset/base/302140 Log: In VNET TCP teardown Do not sleep unconditionally but only if we have any TCP connections left. Submitted by: zec Approved by: re (hrs) MFC

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

2016-06-22 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 05:41:46 2016 New Revision: 302117 URL: https://svnweb.freebsd.org/changeset/base/302117 Log: Import a fix for and old security issue (CVE-2010-3830) in pf which was not relevant to FreeBSD as only root could open /dev/pf by default. With VIMAGE this is will

svn commit: r302099 - head/sys/netinet

2016-06-22 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 00:34:03 2016 New Revision: 302099 URL: https://svnweb.freebsd.org/changeset/base/302099 Log: Check the V_tcbinfo.ipi_count to hit 0 before doing the full TCP cleanup. That way timers can finish cleanly and we do not gamble with a DELAY(). Reviewed by:

svn commit: r302098 - head/sys/netinet

2016-06-22 Thread Bjoern A. Zeeb
Author: bz Date: Thu Jun 23 00:32:58 2016 New Revision: 302098 URL: https://svnweb.freebsd.org/changeset/base/302098 Log: No longer mark TCP TW zone NO_FREE. Timewait code does a proper cleanup after itself. Reviewed by: gnn Approved by: re (gjb) Obtained from:

svn commit: r302086 - head/sys/net

2016-06-22 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jun 22 12:53:10 2016 New Revision: 302086 URL: https://svnweb.freebsd.org/changeset/base/302086 Log: Add more fields to if_debug.c for ddb(4) 'show ifnet'; resort some fields to match the order in the struct. Especially needed if_pf_kif to do pf(4) VNET debugging.

svn commit: r302083 - head/sys/net

2016-06-22 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jun 22 11:45:30 2016 New Revision: 302083 URL: https://svnweb.freebsd.org/changeset/base/302083 Log: After r302054 unloading an network interface driver on a kernel without VIMAGE support would dereference a NULL point unconditionally leading to a panic. Wrap the

Re: svn commit: r302054 - in head/sys: contrib/ipfilter/netinet dev/usb/net kern net netgraph netinet netinet6 netipsec netpfil/ipfw netpfil/pf

2016-06-22 Thread Bjoern A. Zeeb
On Tue, 21 Jun 2016, Navdeep Parhar wrote: This causes a panic when a NIC driver module is unloaded from a kernel without VIMAGE. if_vnet is NULL and if_detach_internal tries to dereference it. whoops; I'll try this patch in a few minutes but if it works for you let me know and I'll get it

svn commit: r302054 - in head/sys: contrib/ipfilter/netinet dev/usb/net kern net netgraph netinet netinet6 netipsec netpfil/ipfw netpfil/pf

2016-06-21 Thread Bjoern A. Zeeb
Author: bz Date: Tue Jun 21 13:48:49 2016 New Revision: 302054 URL: https://svnweb.freebsd.org/changeset/base/302054 Log: Get closer to a VIMAGE network stack teardown from top to bottom rather than removing the network interfaces first. This change is rather larger and convoluted as the

svn commit: r301533 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 22:59:58 2016 New Revision: 301533 URL: https://svnweb.freebsd.org/changeset/base/301533 Log: After tearing down the interface per-"domain" bits, set the data area to NULL to avoid it being mis-treated on a possible re-attach but also to get a clean NULL pointer

svn commit: r301528 - head/sys/netinet6

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 22:34:12 2016 New Revision: 301528 URL: https://svnweb.freebsd.org/changeset/base/301528 Log: Make KASSERT message more useful by printing the variables on which we assert. Obtained from:projects/vnet MFC after:2 weeks Sponsored by: The FreeBSD

svn commit: r301527 - in head: share/man/man4 sys/netinet

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 22:26:18 2016 New Revision: 301527 URL: https://svnweb.freebsd.org/changeset/base/301527 Log: Add a `show igi_list` command to DDB to debug IGMP state. Obtained from:projects/vnet MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r301522 - in head: share/man/man4 sys/kern

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 20:57:24 2016 New Revision: 301522 URL: https://svnweb.freebsd.org/changeset/base/301522 Log: Implement a `show panic` command to DDB which will helpfully print the panic string again if set, in case it scrolled out of the active window. This avoids having to

svn commit: r301514 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 16:23:02 2016 New Revision: 301514 URL: https://svnweb.freebsd.org/changeset/base/301514 Log: Similarly to r301505 protect the removal of the ifa from the if_addrhead by a lock (as well as the check that the list is not empty). Obtained from:

svn commit: r301508 - head/sys/netinet6

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 14:01:09 2016 New Revision: 301508 URL: https://svnweb.freebsd.org/changeset/base/301508 Log: Move the callout_reset() to the end of the work not having it stick before we do anything. Obtained from:projects/vnet MFC after:2 week Sponsored by:

svn commit: r301505 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 13:17:25 2016 New Revision: 301505 URL: https://svnweb.freebsd.org/changeset/base/301505 Log: In if_purgeaddrs() we cannot hold the lock over the entire loop due to called functions (as in other parts of the stack, leave a comment). Put around a lock the removal

svn commit: r301504 - head/sys/netinet

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 13:04:22 2016 New Revision: 301504 URL: https://svnweb.freebsd.org/changeset/base/301504 Log: Destroy the mutex last. In this case it should not matter, but generally cleanup code might still acquire it thus try to be consistent destroying locks late.

svn commit: r301503 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 13:01:57 2016 New Revision: 301503 URL: https://svnweb.freebsd.org/changeset/base/301503 Log: SYSINIT functions do not return a value; switch to void, remove the return value, and mark the unused argument __unused. Obtained from:projects/vnet MFC

svn commit: r301502 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 12:49:47 2016 New Revision: 301502 URL: https://svnweb.freebsd.org/changeset/base/301502 Log: Provide a public interface to rt_flushifroutes which takes the address family as an argument as well. This will be used to cleanup individual protocols during VNET

svn commit: r301498 - head/sys/net

2016-06-06 Thread Bjoern A. Zeeb
Author: bz Date: Mon Jun 6 10:13:48 2016 New Revision: 301498 URL: https://svnweb.freebsd.org/changeset/base/301498 Log: Make the KASSERT message more helpful by also printing the ifp information which we are asserting. Obtained from:projects/vnet MFC after:2 weeks

svn commit: r301270 - in head: share/man/man9 sys/net sys/netinet sys/netinet6

2016-06-03 Thread Bjoern A. Zeeb
Author: bz Date: Fri Jun 3 13:57:10 2016 New Revision: 301270 URL: https://svnweb.freebsd.org/changeset/base/301270 Log: Introduce a per-VNET flag to enable/disable netisr prcessing on that VNET. Add accessor functions to toggle the state per VNET. The base system (vnet0) will always

svn commit: r301114 - in head: share/man/man9 sys/kern sys/netinet sys/netinet6 sys/sys

2016-06-01 Thread Bjoern A. Zeeb
Author: bz Date: Wed Jun 1 10:14:04 2016 New Revision: 301114 URL: https://svnweb.freebsd.org/changeset/base/301114 Log: The pr_destroy field does not allow us to run the teardown code in a specific order. VNET_SYSUNINITs however are doing exactly that. Thus remove the VIMAGE conditional

Re: svn commit: r300973 - head/usr.sbin/rpcbind

2016-05-29 Thread Bjoern A. Zeeb
> On 29 May 2016, at 20:28 , Garrett Cooper wrote: > > Author: ngie > Date: Sun May 29 20:28:01 2016 > New Revision: 300973 > URL: https://svnweb.freebsd.org/changeset/base/300973 > > Log: > Follow up to r300932 > > In the event MK_INET6 != no in userspace, but is disabled

Re: svn commit: r300854 - in head/sys: netinet netinet6

2016-05-27 Thread Bjoern A. Zeeb
> On 28 May 2016, at 00:02 , Gleb Smirnoff wrote: > > On Fri, May 27, 2016 at 02:27:45PM -0700, Adrian Chadd wrote: > A> Hm, doesnt this make sense to do as part of RO_RTFREE? > > I agree that it looks messy, but for now we just need to fix instapanic. > > I will either

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

2016-05-26 Thread Bjoern A. Zeeb
> On 26 May 2016, at 18:35 , John Baldwin wrote: > > Author: jhb > Date: Thu May 26 18:35:37 2016 > New Revision: 300764 > URL: https://svnweb.freebsd.org/changeset/base/300764 > > Log: > Don't reuse the source mbuf in tcp_respond() if it is not writable. > > Not all mbufs

svn commit: r300619 - head/sys/cddl/dev/dtrace/aarch64

2016-05-24 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 24 17:38:27 2016 New Revision: 300619 URL: https://svnweb.freebsd.org/changeset/base/300619 Log: Try to unbreak the build after r300611 by including the header defining VM_MIN_KERNEL_ADDRESS. Sponsored by: DARPA/AFRL Modified:

svn commit: r300208 - head/sys/mips/conf

2016-05-19 Thread Bjoern A. Zeeb
Author: bz Date: Thu May 19 14:19:01 2016 New Revision: 300208 URL: https://svnweb.freebsd.org/changeset/base/300208 Log: Exclude BCM from universe build until it compiles again. Modified: head/sys/mips/conf/BCM Modified: head/sys/mips/conf/BCM

Re: svn commit: r300113 - in head/sys: conf kern net sys

2016-05-19 Thread Bjoern A. Zeeb
> On 18 May 2016, at 04:35 , Scott Long wrote: > > Author: scottl > Date: Wed May 18 04:35:58 2016 > New Revision: 300113 > URL: https://svnweb.freebsd.org/changeset/base/300113 > > Log: > Import the 'iflib' API library for network drivers. From the author: > > "iflib

svn commit: r300164 - head/sys/net

2016-05-18 Thread Bjoern A. Zeeb
Author: bz Date: Wed May 18 20:06:45 2016 New Revision: 300164 URL: https://svnweb.freebsd.org/changeset/base/300164 Log: Rather than having the if_vmove() code intermixed in the vnet_destroy() function in vnet.c move it to if.c where it logically belongs and put it under a VNET_SYSUNINIT()

Re: svn commit: r300154 - head/sys/net

2016-05-18 Thread Bjoern A. Zeeb
> On 18 May 2016, at 17:32 , Ian Lepore wrote: > > On Wed, 2016-05-18 at 10:14 -0700, Nathan Whitehorn wrote: >> >> On 05/18/16 08:50, Justin Hibbits wrote: >>> On Wed, 18 May 2016 15:45:12 + (UTC) >>> Scott Long wrote: >>> Author: scottl

svn commit: r300155 - head/sys/net

2016-05-18 Thread Bjoern A. Zeeb
Author: bz Date: Wed May 18 15:50:52 2016 New Revision: 300155 URL: https://svnweb.freebsd.org/changeset/base/300155 Log: Add a "vnet_state" field to struct vnet. This is set to the SI_SUB_* value before executing any VNET_SYSINIT or VNET_SYSUNINT. While good for debugging especially VNET

svn commit: r300151 - head/sys/net

2016-05-18 Thread Bjoern A. Zeeb
Author: bz Date: Wed May 18 15:25:19 2016 New Revision: 300151 URL: https://svnweb.freebsd.org/changeset/base/300151 Log: Add a dummy VNET_SYSINIT that will make sure all VNETs started will always end on SI_SUB_VNET_DONE. Obtained from:projects/vnet Sponsored by: The FreeBSD

svn commit: r300148 - in head: share/man/man4 sys/net

2016-05-18 Thread Bjoern A. Zeeb
Author: bz Date: Wed May 18 14:43:17 2016 New Revision: 300148 URL: https://svnweb.freebsd.org/changeset/base/300148 Log: Split 'show vnets' into 'show vnet' and 'show all vnets'. While here adjust some db_printf format string. Document the two show commands in ddb.4. Sponsored by:

svn commit: r300147 - head/sys/net

2016-05-18 Thread Bjoern A. Zeeb
Author: bz Date: Wed May 18 14:18:03 2016 New Revision: 300147 URL: https://svnweb.freebsd.org/changeset/base/300147 Log: Make compile without INET or without IP support in the kernel by hiding variables and lro function calls behind approriate #ifdefs. Also move the #includes for

Re: svn commit: r300113 - in head/sys: conf kern net sys

2016-05-18 Thread Bjoern A. Zeeb
t/mp_ring.c: In function 'ifmp_ring_enqueue': /scratch/tmp/bz/head.svn/sys/net/mp_ring.c:456: warning: implicit declaration of function 'atomic_cmpset_rel_64' /scratch/tmp/bz/head.svn/sys/net/mp_ring.c:456: warning: nested extern declaration of 'atomic_cmpset_rel_64' [-Wnested-externs] --- mp_ring.o --- *** [mp_ri

Re: svn commit: r299994 - in head/sys/mips: broadcom conf

2016-05-17 Thread Bjoern A. Zeeb
.broadcom:dev/bhnd/bcma/bcma_nexus.c standard bz@zoo:/tank/users/bz/head.svn% find sys/ -name bcma_nexus.c bz@zoo:/tank/users/bz/head.svn% /bz — Bjoern A. Zeeb Charles Haddon Spurgeon: "Friendship is one of the swee

svn commit: r300051 - in head/sys: arm/arm arm64/arm64

2016-05-17 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 17 13:12:26 2016 New Revision: 300051 URL: https://svnweb.freebsd.org/changeset/base/300051 Log: The GIC (v2 at least) has a bit in the TYPER register to indicate whether the GIC supports the Security Extensions or not. This bit is not the same as the CPU one.

svn commit: r300001 - head/sys/net

2016-05-16 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 17 00:32:36 2016 New Revision: 31 URL: https://svnweb.freebsd.org/changeset/base/31 Log: Mark the unused arguments of various SYSINIT functions __unused. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/net/vnet.c

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

2016-05-16 Thread Bjoern A. Zeeb
Author: bz Date: Mon May 16 19:07:58 2016 New Revision: 299963 URL: https://svnweb.freebsd.org/changeset/base/299963 Log: Add HWPMC_HOOKS to std.armv6 to make them available so the module could be loaded. Discussed with: andrew Reviewed by: andrew Sponsored by: DARPA/AFRL

svn commit: r299740 - in head/sys/modules/gpio: . gpiokeys

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 09:39:21 2016 New Revision: 299740 URL: https://svnweb.freebsd.org/changeset/base/299740 Log: Revert r299739. That did not make it better. Instead disconnect gpiokeys from the build until it's fixed and buildable; the SUBDIR list was not ordered properly anyway

svn commit: r299739 - head/sys/modules/gpio/gpiokeys

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 09:18:50 2016 New Revision: 299739 URL: https://svnweb.freebsd.org/changeset/base/299739 Log: Blind long shot. Add ofw_gpiobus.c to the SRCS list in the hope to make the remaining MIPS kernels compile which set MODULES_OVERRIDE="gpio..." Modified:

svn commit: r299738 - head/sys/conf

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 08:55:15 2016 New Revision: 299738 URL: https://svnweb.freebsd.org/changeset/base/299738 Log: Update file list for sfgxe(4) again and hey, my amd64 kernels compile again. Modified: head/sys/conf/files.amd64 Modified: head/sys/conf/files.amd64

svn commit: r299737 - head/sys/net80211

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 08:54:34 2016 New Revision: 299737 URL: https://svnweb.freebsd.org/changeset/base/299737 Log: Revert parts of r299575 in order to make more MIPS kernels build again hopefully. Rather than blindly removing a supposedly unused variable as reported by the Clang

svn commit: r299726 - head/sys/conf

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 06:09:01 2016 New Revision: 299726 URL: https://svnweb.freebsd.org/changeset/base/299726 Log: Remove more files from sfxge(4) which are no longer in the tree in order to make the universe a more happy place. Modified: head/sys/conf/files.amd64 Modified:

svn commit: r299681 - head/sys/conf

2016-05-13 Thread Bjoern A. Zeeb
Author: bz Date: Fri May 13 15:32:16 2016 New Revision: 299681 URL: https://svnweb.freebsd.org/changeset/base/299681 Log: hunt_ev.c was deleted with r299596. Remove it from the files list to (hopefully) unbreak amd64 LINT kernels. MFC after:1 week Modified:

svn commit: r299680 - head/sys/x86/x86

2016-05-13 Thread Bjoern A. Zeeb
Author: bz Date: Fri May 13 15:29:40 2016 New Revision: 299680 URL: https://svnweb.freebsd.org/changeset/base/299680 Log: Remove the extra _RD as _RDTUN already includes it. Submitted by: emaste MFC after:2 weeks Modified: head/sys/x86/x86/mca.c Modified: head/sys/x86/x86/mca.c

<    1   2   3   4   5   6   7   8   9   10   >