svn commit: r343858 - head/sys/vm

2019-02-06 Thread Gleb Smirnoff
Author: glebius Date: Thu Feb 7 03:55:05 2019 New Revision: 343858 URL: https://svnweb.freebsd.org/changeset/base/343858 Log: Now that there is only one way to allocate a slab, remove uz_slab method. Discussed with: jeff Modified: head/sys/vm/uma_core.c head/sys/vm/uma_int.h Mo

svn commit: r343857 - head/sys/vm

2019-02-06 Thread Gleb Smirnoff
Author: glebius Date: Thu Feb 7 03:32:45 2019 New Revision: 343857 URL: https://svnweb.freebsd.org/changeset/base/343857 Log: Report cache zones in UMA stats sysctl, that 'vmstat -z' uses. This should had been part of r251826. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_cor

svn commit: r343707 - head/sys/net

2019-02-03 Thread Gleb Smirnoff
Author: glebius Date: Sun Feb 3 08:28:02 2019 New Revision: 343707 URL: https://svnweb.freebsd.org/changeset/base/343707 Log: Teach pfil_ioctl() about VIMAGE. Submitted by: gallatin Modified: head/sys/net/pfil.c Modified: head/sys/net/pfil.c

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

2019-02-02 Thread Gleb Smirnoff
Author: glebius Date: Sat Feb 2 05:49:05 2019 New Revision: 343678 URL: https://svnweb.freebsd.org/changeset/base/343678 Log: Return PFIL_CONSUMED if packet was consumed. While here gather all the identical endings of pf_check_*() into single function. PR: 235411 Modified:

svn commit: r343646 - head/sys/netinet

2019-02-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Feb 1 08:10:26 2019 New Revision: 343646 URL: https://svnweb.freebsd.org/changeset/base/343646 Log: Repair siftr(4): PFIL_IN and PFIL_OUT are defines of some value, relying on them having particular values can break things. Modified: head/sys/netinet/siftr.c Modi

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

2019-02-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Feb 1 07:48:37 2019 New Revision: 343645 URL: https://svnweb.freebsd.org/changeset/base/343645 Log: Unbreak call to ipf_check(): it expects the out parameter to be 0 or 1. Pointy hat to:glebius Reported by: cy Modified: head/sys/contrib/ipfilter/neti

svn commit: r343636 - head/sbin/pfilctl

2019-01-31 Thread Gleb Smirnoff
Author: glebius Date: Fri Feb 1 00:34:18 2019 New Revision: 343636 URL: https://svnweb.freebsd.org/changeset/base/343636 Log: Hopefully fix compilation by other compilers. Modified: head/sbin/pfilctl/pfilctl.c Modified: head/sbin/pfilctl/pfilctl.c ===

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

2019-01-31 Thread Gleb Smirnoff
Author: glebius Date: Fri Feb 1 00:33:17 2019 New Revision: 343635 URL: https://svnweb.freebsd.org/changeset/base/343635 Log: Fix build without INET6. Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c ==

svn commit: r343631 - in head: . sbin sbin/pfilctl share/man/man9 sys/contrib/ipfilter/netinet sys/net sys/netinet sys/netinet6 sys/netpfil/ipfw sys/netpfil/pf

2019-01-31 Thread Gleb Smirnoff
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sbin/pfilctl/pfilctl.8 Thu Jan 31 23:01:03 2019(r343631) @@ -0,0 +1,117 @@ +.\" Copyright (c) 2019 Gleb Smirnoff +.\" +.\" Redistribution and use in source a

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

2019-01-31 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 31 22:37:28 2019 New Revision: 343627 URL: https://svnweb.freebsd.org/changeset/base/343627 Log: Add new m_ext type for data for M_NOFREE mbufs, which doesn't actually do anything except several assertions. This type is going to be used for temporary on stack m

svn commit: r343619 - in head/sys: net netpfil/ipfw

2019-01-31 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 31 21:04:50 2019 New Revision: 343619 URL: https://svnweb.freebsd.org/changeset/base/343619 Log: Revert r316461: Remove "IPFW static rules" rmlock, and use pfil's global lock. The pfil(9) system is about to be converted to epoch(9) synchronization, so we need

svn commit: r343616 - head/sys/vm

2019-01-31 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 31 17:52:48 2019 New Revision: 343616 URL: https://svnweb.freebsd.org/changeset/base/343616 Log: In zone_alloc_bucket() max argument was calculated based on uz_count. Then bucket_alloc() also selects bucket size based on uz_count. However, since zone lock is dro

svn commit: r343101 - head/sys/kern

2019-01-16 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 16 20:20:38 2019 New Revision: 343101 URL: https://svnweb.freebsd.org/changeset/base/343101 Log: Fix mistake in r343030: move nswbuf calculation back to kern_vfs_bio_buffer_alloc(), because in init_param2() nbuf isn't really initialized yet. Pointed out by:

svn commit: r343100 - head/sys/vm

2019-01-16 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 16 20:14:16 2019 New Revision: 343100 URL: https://svnweb.freebsd.org/changeset/base/343100 Log: Do not reserve KVA for paging bufs in vm_ksubmap_init(), since now they allocate it in pbuf_init(). This should have been done together with r343030. Modified: he

svn commit: r343080 - head/sys/vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 16 04:02:08 2019 New Revision: 343080 URL: https://svnweb.freebsd.org/changeset/base/343080 Log: Whitespace. Modified: head/sys/vm/uma_int.h Modified: head/sys/vm/uma_int.h == --- head/s

Re: svn commit: r343058 - in head/sys: compat/linuxkpi/common/src vm

2019-01-15 Thread Gleb Smirnoff
On Tue, Jan 15, 2019 at 01:20:14PM -0700, Ian Lepore wrote: I> On Tue, 2019-01-15 at 12:06 -0800, Gleb Smirnoff wrote: I> > On Tue, Jan 15, 2019 at 01:46:23PM -0600, Justin Hibbits wrote: I> > J> Why not #include counter.h in the relevant vm_machdep.c files I> > instead?

Re: svn commit: r343058 - in head/sys: compat/linuxkpi/common/src vm

2019-01-15 Thread Gleb Smirnoff
les just need counter_u64_t size, and they don't use counter(9) KPI. The fact that vm_machdep or Linux KPI want to look into internal type uma_zone_t is also ugly. -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org

svn commit: r343058 - in head/sys: compat/linuxkpi/common/src vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 19:33:47 2019 New Revision: 343058 URL: https://svnweb.freebsd.org/changeset/base/343058 Log: Fix compilation failures on different arches that have vm_machdep.c not aware of counter_u64_t by including counter.h into uma_int.h. I'm not happy about this inclus

svn commit: r343055 - head/sys/vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 18:50:11 2019 New Revision: 343055 URL: https://svnweb.freebsd.org/changeset/base/343055 Log: style(9): break long line. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c

svn commit: r343054 - head/sys/vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 18:49:31 2019 New Revision: 343054 URL: https://svnweb.freebsd.org/changeset/base/343054 Log: Remove harmless leftover from code that cycles over zone's kegs. Just use + instead of +=. There is no functional change. Modified: head/sys/vm/uma_core.c Modified

svn commit: r343053 - head/lib/libmemstat

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 18:47:19 2019 New Revision: 343053 URL: https://svnweb.freebsd.org/changeset/base/343053 Log: This was missed in r343051: make uz_allocs, uz_frees and uz_fails counter(9). Modified: head/lib/libmemstat/memstat_uma.c Modified: head/lib/libmemstat/memstat_uma.c

svn commit: r343052 - head/sys/vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 18:32:26 2019 New Revision: 343052 URL: https://svnweb.freebsd.org/changeset/base/343052 Log: Only do uz_items accounting for zones that have a limit set in uz_max_items. This reduces amount of locking required for these zones. Also, for cache only zones (

svn commit: r343051 - in head/sys: compat/linuxkpi/common/src vm

2019-01-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 18:24:34 2019 New Revision: 343051 URL: https://svnweb.freebsd.org/changeset/base/343051 Log: Make uz_allocs, uz_frees and uz_fails counter(9). This removes some atomic updates and reduces amount of data protected by zone lock. During startup point these f

Re: svn commit: r343030 - in head/sys: cam conf dev/md dev/nvme fs/fuse fs/nfsclient fs/smbfs kern sys ufs/ffs vm

2019-01-15 Thread Gleb Smirnoff
he finish line! P> > P> It appears to be very impressive! Plans for MFC? Nope. I'm very conservative about stable branch being stable branch :) -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinf

svn commit: r343037 - head/sys/vm

2019-01-14 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 03:43:46 2019 New Revision: 343037 URL: https://svnweb.freebsd.org/changeset/base/343037 Log: Fix compilation on 32-bit. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c

svn commit: r343031 - in head: . share/man/man9

2019-01-14 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 01:19:29 2019 New Revision: 343031 URL: https://svnweb.freebsd.org/changeset/base/343031 Log: Remove pbuf(9) manual page that is now nearly 100% outdated. Deleted: head/share/man/man9/pbuf.9 Modified: head/ObsoleteFiles.inc head/share/man/man9/Makefile Mo

svn commit: r343030 - in head/sys: cam conf dev/md dev/nvme fs/fuse fs/nfsclient fs/smbfs kern sys ufs/ffs vm

2019-01-14 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 01:02:16 2019 New Revision: 343030 URL: https://svnweb.freebsd.org/changeset/base/343030 Log: Allocate pager bufs from UMA instead of 80-ish mutex protected linked list. o In vm_pager_bufferinit() create pbuf_zone and start accounting on how many pbufs a

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

2019-01-14 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 00:35:19 2019 New Revision: 343027 URL: https://svnweb.freebsd.org/changeset/base/343027 Log: Add flag LK_NEW for lockinit() that is converted to LO_NEW and passed down to lock_init(). This allows for lockinit() on a not prezeroed memory. Modified: head/s

svn commit: r343026 - in head: lib/libmemstat sys/vm

2019-01-14 Thread Gleb Smirnoff
Author: glebius Date: Tue Jan 15 00:02:06 2019 New Revision: 343026 URL: https://svnweb.freebsd.org/changeset/base/343026 Log: o Move zone limit from keg level up to zone level. This means that now two zones sharing a keg may have different limits. Now this is going to work: zone

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

2019-01-14 Thread Gleb Smirnoff
(r343005) J> @@ -886,6 +886,8 @@ solisten_wakeup(struct socket *sol) J> } J> SOLISTEN_UNLOCK(sol); J> wakeup_one(&sol->sol_comp); J> +if ((sol->so_state & SS_ASYNC) && sol->so_sigio != NULL) J> +pgsigio(&s

svn commit: r342923 - head/sys/net

2019-01-10 Thread Gleb Smirnoff
Author: glebius Date: Fri Jan 11 00:45:22 2019 New Revision: 342923 URL: https://svnweb.freebsd.org/changeset/base/342923 Log: Remove recursive NET_EPOCH_ENTER() from sysctl_ifmalist(), missed in r342872. Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c ===

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

2019-01-10 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 10 23:27:29 2019 New Revision: 342922 URL: https://svnweb.freebsd.org/changeset/base/342922 Log: Remove support for FreeBSD 9 kernel, which used to change byte order of packet headers. Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Modified: head

Re: svn commit: r342908 - head/sys/netpfil/ipfw

2019-01-09 Thread Gleb Smirnoff
mits/pfil Soon to reach FreeBSD head :) -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r342907 - head/sys/netinet6

2019-01-09 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 10 00:52:06 2019 New Revision: 342907 URL: https://svnweb.freebsd.org/changeset/base/342907 Log: Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements, so won't be compiled in. Modified: head/sys/netinet6/in6_mcast.c Modified: head/sys/ne

svn commit: r342906 - head/sys/net

2019-01-09 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 10 00:37:14 2019 New Revision: 342906 URL: https://svnweb.freebsd.org/changeset/base/342906 Log: Bring the comment up to date. Modified: head/sys/net/if_vlan.c Modified: head/sys/net/if_vlan.c =

svn commit: r342905 - head/sys/kern

2019-01-09 Thread Gleb Smirnoff
Author: glebius Date: Thu Jan 10 00:25:12 2019 New Revision: 342905 URL: https://svnweb.freebsd.org/changeset/base/342905 Log: Simplify sosetopt() so that function has single return point. No functional change. Modified: head/sys/kern/uipc_socket.c Modified: head/sys/kern/uipc_socket.c ===

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

2019-01-08 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 9 05:53:59 2019 New Revision: 342877 URL: https://svnweb.freebsd.org/changeset/base/342877 Log: Timer interval is correctly counted in ticks (1/100 s) in mibif_reset_hc_timer(). Multiplication by 10 is erroneous and is probably a blind copy and paste from next

svn commit: r342872 - in head/sys: compat/linuxkpi/common/include/linux dev/wtap net net/altq netinet netinet/netdump netinet6 netpfil/pf ofed/drivers/infiniband/core ofed/drivers/infiniband/ulp/ipoib

2019-01-08 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 9 01:11:19 2019 New Revision: 342872 URL: https://svnweb.freebsd.org/changeset/base/342872 Log: Mechanical cleanup of epoch(9) usage in network stack. - Remove macros that covertly create epoch_tracker on thread stack. Such macros a quite unsafe, e.g. will

svn commit: r342870 - head/sys/net

2019-01-08 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 9 00:38:16 2019 New Revision: 342870 URL: https://svnweb.freebsd.org/changeset/base/342870 Log: Remove part of comment that doesn't match reality. Modified: head/sys/net/if.c Modified: head/sys/net/if.c ==

svn commit: r342854 - head/sys/vm

2019-01-07 Thread Gleb Smirnoff
Author: glebius Date: Mon Jan 7 23:17:09 2019 New Revision: 342854 URL: https://svnweb.freebsd.org/changeset/base/342854 Log: Fix regression in r331368, that broke dumping of UMA startup pages when WITNESS is present. Discussed with: markj Modified: head/sys/vm/vm_page.c Modifi

svn commit: r342197 - head/sys/dev/usb/net

2018-12-18 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 18 19:38:13 2018 New Revision: 342197 URL: https://svnweb.freebsd.org/changeset/base/342197 Log: Use mbufq instead of ifqueue to queue mbufs. Modified: head/sys/dev/usb/net/uhso.c Modified: head/sys/dev/usb/net/uhso.c

svn commit: r341163 - head/sys/vm

2018-11-28 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 28 19:54:02 2018 New Revision: 341163 URL: https://svnweb.freebsd.org/changeset/base/341163 Log: Fix yet another edge case in uma_startup_count(). If zone size fits into several pages, but leaves no space for struct uma_slab at the end we miscalculate number of

svn commit: r341162 - head/sys/vm

2018-11-28 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 28 19:17:27 2018 New Revision: 341162 URL: https://svnweb.freebsd.org/changeset/base/341162 Log: For not offpage zones the slab is placed at the end of page. Keg's uk_pgoff is calculated to guarantee that struct uma_slab is placed at pointer size alignment. Calc

Re: svn commit: r340413 - in head/sys: kern net sys

2018-11-14 Thread Gleb Smirnoff
On Wed, Nov 14, 2018 at 10:27:48PM +0200, Konstantin Belousov wrote: K> On Wed, Nov 14, 2018 at 08:28:31AM -0800, Gleb Smirnoff wrote: K> > On Wed, Nov 14, 2018 at 11:06:38AM +0100, Hans Petter Selasky wrote: K> > H> On 11/14/18 10:33 AM, Cy Schubert wrote: K> > H> >

svn commit: r340443 - head/sys/kern

2018-11-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 14 19:10:35 2018 New Revision: 340443 URL: https://svnweb.freebsd.org/changeset/base/340443 Log: Initialize compatibility epoch tracker for thread0. Fixes panics for drivers that call if_maddr_lock() during startup. Reported by: cy Modified: head/sys/kern

Re: svn commit: r340413 - in head/sys: kern net sys

2018-11-14 Thread Gleb Smirnoff
On Wed, Nov 14, 2018 at 11:06:38AM +0100, Hans Petter Selasky wrote: H> On 11/14/18 10:33 AM, Cy Schubert wrote: H> > + epoch_thread_init(td); H> H> Did you forget to call epoch_thread_init() for thread0 ? Yes, this is my guess. I'm preparing patch for Cy to test

svn commit: r340423 - head/sys/kern

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 14 00:33:03 2018 New Revision: 340423 URL: https://svnweb.freebsd.org/changeset/base/340423 Log: Fix build on some architectures after r340413. On amd64 epoch.h appeared to be included implicitly. Modified: head/sys/kern/kern_thread.c Modified: head/sys/kern/k

svn commit: r340419 - head/sys/kern

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 23:57:34 2018 New Revision: 340419 URL: https://svnweb.freebsd.org/changeset/base/340419 Log: style(9), mostly adjusting overly long lines. Modified: head/sys/kern/subr_epoch.c Modified: head/sys/kern/subr_epoch.c =

svn commit: r340417 - head/sys/kern

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 23:45:38 2018 New Revision: 340417 URL: https://svnweb.freebsd.org/changeset/base/340417 Log: With epoch not inlined, there is no point in using _lite KPI. While here, remove some unnecessary casts. Modified: head/sys/kern/genoffset.c head/sys/kern/subr_ep

svn commit: r340416 - head/sbin/dump

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 23:44:27 2018 New Revision: 340416 URL: https://svnweb.freebsd.org/changeset/base/340416 Log: Plug build break after r340411. Modified: head/sbin/dump/dump.h head/sbin/dump/main.c head/sbin/dump/traverse.c Modified: head/sbin/dump/dump.h =

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

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 23:20:55 2018 New Revision: 340415 URL: https://svnweb.freebsd.org/changeset/base/340415 Log: The dualism between epoch_tracker and epoch_thread is fragile and unnecessary. So, expose CK types to kernel and use a single normal structure for epoch_tracker.

svn commit: r340413 - in head/sys: kern net sys

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 22:58:38 2018 New Revision: 340413 URL: https://svnweb.freebsd.org/changeset/base/340413 Log: For compatibility KPI functions like if_addr_rlock() that used to have mutexes but now are converted to epoch(9) use thread-private epoch_tracker. Embedding tracker

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

2018-11-13 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 13 19:02:11 2018 New Revision: 340404 URL: https://svnweb.freebsd.org/changeset/base/340404 Log: Uninline epoch(9) entrance and exit. There is no proof that modern processors would benefit from avoiding a function call, but bloating code. In fact, clang created

svn commit: r339976 - stable/11/sys/dev/ipw

2018-10-31 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 31 23:05:44 2018 New Revision: 339976 URL: https://svnweb.freebsd.org/changeset/base/339976 Log: MFhead r339643: Fix ipw_start(), where logic was reverted in r287197. PR: 232554 Modified: stable/11/sys/dev/ipw/if_ipw.c Directory Properties:

svn commit: r339975 - stable/12/sys/dev/ipw

2018-10-31 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 31 23:02:59 2018 New Revision: 339975 URL: https://svnweb.freebsd.org/changeset/base/339975 Log: MFhead r339643: Fix ipw_start(), where logic was reverted in r287197. PR232554 Approved by: re (kib) Modified: stable/12/sys/dev/ipw/if_ipw

svn commit: r339970 - head/stand/libsa

2018-10-31 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 31 19:59:20 2018 New Revision: 339970 URL: https://svnweb.freebsd.org/changeset/base/339970 Log: Remove unnecessary include from libstand. Modified: head/stand/libsa/ip.c head/stand/libsa/net.c head/stand/libsa/udp.c Modified: head/stand/libsa/ip.c =

svn commit: r339969 - head/sys/sys

2018-10-31 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 31 19:37:11 2018 New Revision: 339969 URL: https://svnweb.freebsd.org/changeset/base/339969 Log: Define QMD_SAVELINK() only for QUEUE_MACRO_DEBUG_TRASH case. Otherwise with QUEUE_MACRO_DEBUG_TRACE compilation fails due to unused variable. Modified: head/sys/sys

svn commit: r339963 - stable/12/sys/vm

2018-10-31 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 31 18:01:02 2018 New Revision: 339963 URL: https://svnweb.freebsd.org/changeset/base/339963 Log: MFhead r339596: If we lost race or were migrated during bucket allocation for the per-CPU cache, then we put new bucket on generic bucket cache. However, code

svn commit: r339889 - head/share/man/man9

2018-10-29 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 29 22:10:52 2018 New Revision: 339889 URL: https://svnweb.freebsd.org/changeset/base/339889 Log: Add a note that epoch(9) may change, to untie our hands for any future MFCs. Modified: head/share/man/man9/epoch.9 Modified: head/share/man/man9/epoch.9

svn commit: r339695 - head/libexec/rc

2018-10-24 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 24 20:49:51 2018 New Revision: 339695 URL: https://svnweb.freebsd.org/changeset/base/339695 Log: Remove code that is dead since r287197. Today wlan(4) interfaces aren't children of some other interface. Creation happens only in wlan_up(). Modified: head/libexec

svn commit: r339643 - head/sys/dev/ipw

2018-10-23 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 23 12:53:09 2018 New Revision: 339643 URL: https://svnweb.freebsd.org/changeset/base/339643 Log: Fix ipw_start(), where logic was reverted in r287197. PR: 232554 Submitted by: gl0...@mail.ru Modified: head/sys/dev/ipw/if_ipw.c Modified: head/sys

svn commit: r339596 - head/sys/vm

2018-10-22 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 22 15:48:07 2018 New Revision: 339596 URL: https://svnweb.freebsd.org/changeset/base/339596 Log: If we lost race or were migrated during bucket allocation for the per-CPU cache, then we put new bucket on generic bucket cache. However, code didn't honor UMA_ZONE_

svn commit: r339532 - head/sys/net

2018-10-21 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 21 12:39:00 2018 New Revision: 339532 URL: https://svnweb.freebsd.org/changeset/base/339532 Log: Fix exiting an epoch(9) we never entered. May happen only with MAC. Modified: head/sys/net/if_gif.c head/sys/net/if_gre.c head/sys/net/if_me.c Modified: head/sys

svn commit: r339379 - head/sys/kern

2018-10-16 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 16 15:57:16 2018 New Revision: 339379 URL: https://svnweb.freebsd.org/changeset/base/339379 Log: Plug sendfile(2) on a listening socket with proper error code. Reported by: ngie Reviewed by: ngie Approved by: re (delphij) Modified: head/sys/kern/kern_

svn commit: r339370 - head/lib/libc/string

2018-10-15 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 15 20:20:57 2018 New Revision: 339370 URL: https://svnweb.freebsd.org/changeset/base/339370 Log: Avoid OOB reads in memmem(3). commit 51bdcdc424bd7169c8cccdc2de7cad17f5ea0f70 Author: Alexander Monakov Date: Fri Jun 30 00:35:33 2017 +0300 fix OOB

Re: svn commit: r339349 - in head/sys/amd64: amd64 include

2018-10-15 Thread Gleb Smirnoff
s, up to 50%. Here is script: #!/usr/sbin/dtrace -s fbt::cpu_set_syscall_retval:entry { @[args[1]] = count(); } I would be interested if anybody reports results on a busy web server running nginx. So, I doubt that using __predict_true() is an optimisation here. -- Gl

svn commit: r339170 - head/sys/kern

2018-10-03 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 3 17:40:04 2018 New Revision: 339170 URL: https://svnweb.freebsd.org/changeset/base/339170 Log: In PR 227259, a user is reporting that they have code which is using shutdown() to wakeup another thread blocked on a stream listen socket. This code is failing, whi

svn commit: r338302 - head/sys/vm

2018-08-24 Thread Gleb Smirnoff
Author: glebius Date: Fri Aug 24 18:47:50 2018 New Revision: 338302 URL: https://svnweb.freebsd.org/changeset/base/338302 Log: Either "free" or "allocated" is misleading here, since an item in a bucket is free from perspective of UMA consumer, and it is allocated from perspective of keg.

svn commit: r338284 - head/sys/vm

2018-08-23 Thread Gleb Smirnoff
Author: glebius Date: Thu Aug 23 23:24:28 2018 New Revision: 338284 URL: https://svnweb.freebsd.org/changeset/base/338284 Log: Fix comment. The actual meaning of ub_cnt is the opposite. Modified: head/sys/vm/uma_int.h Modified: head/sys/vm/uma_int.h ==

Re: svn commit: r338209 - in head: sbin/ipfw sbin/pfctl sys/net sys/net/altq sys/netpfil/pf usr.sbin/bsnmpd/modules/snmp_pf

2018-08-22 Thread Gleb Smirnoff
profile->depth = (u_int)TBR_UNSCALE(tbr->tbr_depth); P> -} P> -IFQ_UNLOCK(ifq); P> -return (0); P> -} P> - P> -/* P> * attach a discipline to the interface. if one already exists, it is P> * overridden. P> * Locking is done in the discipline sp

Re: svn commit: r337932 - in head/sys: net netinet

2018-08-21 Thread Gleb Smirnoff
On Tue, Aug 21, 2018 at 02:28:27PM -0700, Navdeep Parhar wrote: N> On 8/21/18 2:26 PM, Gleb Smirnoff wrote: N> > Navdeep, N> > N> > On Thu, Aug 16, 2018 at 11:46:38PM +, Navdeep Parhar wrote: N> > N> Author: np N> > N> Date: Thu Aug 16 23:46:38 2018 N

Re: svn commit: r337932 - in head/sys: net netinet

2018-08-21 Thread Gleb Smirnoff
t N> +vlan_pcp(struct ifnet *ifp, uint16_t *pcpp) N> +{ N> +struct ifvlan *ifv; N> + N> +if (ifp->if_type != IFT_L2VLAN) N> +return (EINVAL); N> +ifv = ifp->if_softc; N> +*pcpp = ifv->ifv_pcp; N> +return (0); N> +} Is there

Re: svn commit: r337866 - in head/sys: net netinet netinet6

2018-08-21 Thread Gleb Smirnoff
; if_freemulti(ll_ifma); M> } Coverity suggested there is a cut and paste mistake here, and it is compilable. After quick glance I tend to agree. Looks like flag is cleared on wrong ifma. -- Gleb Smirnoff ___ svn-src-all

Re: svn commit: r336692 - head/sys/sys

2018-08-08 Thread Gleb Smirnoff
E> int soopt_getm(struct sockopt *sopt, struct mbuf **mp); E> int soopt_mcopyin(struct sockopt *sopt, struct mbuf *m); E> int soopt_mcopyout(struct sockopt *sopt, struct mbuf *m); This comment was a good mark to note that these three functions need to go away. But IPv6 still uses them.

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

2018-08-07 Thread Gleb Smirnoff
On Sat, Aug 04, 2018 at 10:48:17AM +0300, Konstantin Belousov wrote: K> On Fri, Aug 03, 2018 at 03:27:39PM -0700, Gleb Smirnoff wrote: K> > Hi Konstantin, K> > K> > On Fri, Jul 06, 2018 at 07:50:44PM +, Konstantin Belousov wrote: K> > K> Author: kib K> >

svn commit: r337279 - in head/sys: netinet sys

2018-08-03 Thread Gleb Smirnoff
Author: glebius Date: Sat Aug 4 00:03:21 2018 New Revision: 337279 URL: https://svnweb.freebsd.org/changeset/base/337279 Log: Now that after r335979 the kernel addresses in API structures are fixed size, there is no reason left for the unions. Discussed with: brooks Modified: he

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

2018-08-03 Thread Gleb Smirnoff
no K> background school girl laughing: bob For FreeBSD it would also make sense to bump hash sizes along with this change. -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r337278 - head/sys/netgraph

2018-08-03 Thread Gleb Smirnoff
Author: glebius Date: Fri Aug 3 22:55:58 2018 New Revision: 337278 URL: https://svnweb.freebsd.org/changeset/base/337278 Log: Use if_tunnel_check_nesting() for ng_iface(4). Modified: head/sys/netgraph/ng_iface.c head/sys/netgraph/ng_iface.h Modified: head/sys/netgraph/ng_iface.c =

Re: svn commit: r335979 - in head: . lib/libkvm sys/kern sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat

2018-08-03 Thread Gleb Smirnoff
rtual addresses. Thanks for this change. After it the anonymous unions in xinpcb, unpxb are no longer needed. Do you agree? I added them to make sizes on 32-bit and 64-bit ABIs to be identical. I prefer your new code, but didn't the unions work? Anyway, now they can be removed. -- Gleb Smirnoff

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

2018-08-03 Thread Gleb Smirnoff
Since this has been broken already several times as people who edit surrounding code don't understand the magic, and since now we round the struct pcpu size to PAGE_SIZE anyways, what about stop carefully craft the padding and just change alignment

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

2018-06-27 Thread Gleb Smirnoff
ute path? e.g. kern.corefile=/var/log/cores/%N.core Looks like the vn_fullpath_global needs to be fixed rather than problem workarounded. -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To u

svn commit: r335749 - head/sys/netinet

2018-06-27 Thread Gleb Smirnoff
Author: glebius Date: Wed Jun 27 22:01:59 2018 New Revision: 335749 URL: https://svnweb.freebsd.org/changeset/base/335749 Log: Check the inp_flags under inp lock. Looks like the race was hidden before, the conversion of tcbinfo to CK_LIST have uncovered it. Modified: head/sys/netinet/tcp_su

svn commit: r335748 - head/sys/kern

2018-06-27 Thread Gleb Smirnoff
Author: glebius Date: Wed Jun 27 22:00:50 2018 New Revision: 335748 URL: https://svnweb.freebsd.org/changeset/base/335748 Log: Correct r335242. Use unsigned cast instead of abs(). Using abs() gives incorrect result when ticks has already wrapped, and are about to reach the cr_ticks value (cr

svn commit: r335577 - in head/sys/netinet: . tcp_stacks

2018-06-22 Thread Gleb Smirnoff
Author: glebius Date: Sat Jun 23 06:53:53 2018 New Revision: 335577 URL: https://svnweb.freebsd.org/changeset/base/335577 Log: Revert r334843, and partially revert r335180. tcp_outflags[] were defined since 4BSD and are defined nowadays in all its descendants. Removing them breaks third p

svn commit: r335242 - head/sys/kern

2018-06-15 Thread Gleb Smirnoff
Author: glebius Date: Fri Jun 15 21:36:16 2018 New Revision: 335242 URL: https://svnweb.freebsd.org/changeset/base/335242 Log: Since 'ticks' is an int, it may wrap around and cr_ticks at a certain counter_rate will be greater than ticks, resulting in counter_ratecheck() failure. To fix this

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

2018-06-14 Thread Gleb Smirnoff
- non NULL controlp is not an error, returning EINVAL M> would cause X forwarding to fail Can you please provide reference for a code that uses control messages with a stream socket? The removed return was in action since FreeBSD 7.0 and everything with X forwarding was work

svn commit: r335180 - in head/sys/netinet: . tcp_stacks

2018-06-14 Thread Gleb Smirnoff
Author: glebius Date: Thu Jun 14 22:25:10 2018 New Revision: 335180 URL: https://svnweb.freebsd.org/changeset/base/335180 Log: TCPOUTFLAGS no longer exists since r334843. Modified: head/sys/netinet/tcp_hpts.c head/sys/netinet/tcp_offload.c head/sys/netinet/tcp_output.c head/sys/netinet/

Re: svn commit: r334819 - head/sys/vm

2018-06-08 Thread Gleb Smirnoff
han the implementation? K> K> Or 'sample frequency' Interval definitely doesn't fit here. Frequency is closer, but still not the right term, IMHO. Native speaker required here to judge. I am okay if anyone who is confident changes wording here. -- Gleb Smirnoff

Re: svn commit: r334824 - head/sys/vm

2018-06-08 Thread Gleb Smirnoff
;t yet fix the problem. This won't happen if commit was reviewed. -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r334545 - in head/sys: contrib/zstd/lib/freebsd kern netinet/libalias sys

2018-06-08 Thread Gleb Smirnoff
is positive feedback like this which M> keeps me going! Btw, what was the point of checking flags || result? Most places in kernel ignore flags and just test result regerdless of M_WAITOK/M_NOWAIT. The result is already in a register, why do you think checking for absense of M_WAITOK is faster that

Re: svn commit: r334545 - in head/sys: contrib/zstd/lib/freebsd kern netinet/libalias sys

2018-06-08 Thread Gleb Smirnoff
t compilation time. If they M> contain M> M_WAITOK, the flag check will get elided along (we know for a fact it M> passes) M> and subsequently the NULL check will be short circuited, iow for known M> M_WAITOK|M_ZERO flags this is: M> M> _malloc_item = malloc(_size, type, fla

svn commit: r334819 - head/sys/vm

2018-06-07 Thread Gleb Smirnoff
Author: glebius Date: Fri Jun 8 00:15:08 2018 New Revision: 334819 URL: https://svnweb.freebsd.org/changeset/base/334819 Log: UMA memory debugging enabled with INVARIANTS consists of two things: trashing freed memory and checking that allocated memory is properly trashed, and also of keepin

svn commit: r334817 - in head/usr.sbin/cron: cron crontab lib

2018-06-07 Thread Gleb Smirnoff
Author: glebius Date: Thu Jun 7 22:38:40 2018 New Revision: 334817 URL: https://svnweb.freebsd.org/changeset/base/334817 Log: Add new functionality and syntax to cron(1) to allow to run jobs at a given interval, which is counted in seconds since exit of the previous invocation of the job. E

svn commit: r334356 - head/sys/kern

2018-05-29 Thread Gleb Smirnoff
Author: glebius Date: Tue May 29 21:45:15 2018 New Revision: 334356 URL: https://svnweb.freebsd.org/changeset/base/334356 Log: Revert second chunk of r333860. The warning from gcc is false positive. The npages won't be ever used in no space case. Modified: head/sys/kern/kern_sendfile.c Mod

Re: svn commit: r334189 - head/sys/contrib/ck/include

2018-05-24 Thread Gleb Smirnoff
76b. O> This brings us the renaming of fields in ck_queue, so that our own O> LIST/SLIST/TAILQ/etc won't accidentally work with them. Indeed, this broke kernel build :) -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://li

Re: svn commit: r333668 - vendor/tcpdump/dist

2018-05-24 Thread Gleb Smirnoff
ontrib/ because the change is already in contrib for years. The vendor change came to vendor from us. -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

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

2018-05-23 Thread Gleb Smirnoff
t; If you want to _actually_ be helpful fix these: M> https://people.freebsd.org/~mmacy/gcc8logs/GENERIC-NODEBUG.log M> M> https://people.freebsd.org/~mmacy/gcc8logs/GENERIC.log M> M> On Wed, May 23, 2018 at 9:42 PM, Gleb Smirnoff wrote: M> > Let me repeat again. The warning is a

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

2018-05-23 Thread Gleb Smirnoff
On Wed, May 23, 2018 at 10:13:25PM -0700, Matthew Macy wrote: M> On Wed, May 23, 2018 at 10:07 PM, Gleb Smirnoff wrote: M> > Can you please explain the bug supposed to be fixed by r333860 QUESTION MARK M> M> Did I say it fixed a bug? Or are you saying we should just turn

Re: svn commit: r334104 - in head/sys: netinet sys

2018-05-23 Thread Gleb Smirnoff
ash _later_ than production kernels, since instead of uma_junk it places clean zeroes. May be changes like that deserve more than a 30 minute time frame for review? -- Gleb Smirnoff ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/m

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

2018-05-23 Thread Gleb Smirnoff
d be added with a comment /* pacify gcc */. On Wed, May 23, 2018 at 03:59:33PM -0700, Matthew Macy wrote: M> On Wed, May 23, 2018 at 3:57 PM, Gleb Smirnoff wrote: M> > The initialization isn't useful. M> M> It silences a gcc warning. So yes it is. It's this exchange which

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