Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2018 01:31:37 -0700
From:      Eitan Adler <lists@eitanadler.com>
To:        Mateusz Guzik <mjg@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r334830 - in head/sys: kern net vm
Message-ID:  <CAF6rxgntfeH_E3yETxerCOD3yfxYSHZMSTr%2B4qC7FtuDJZme3Q@mail.gmail.com>
In-Reply-To: <201806080540.w585ebLL027537@repo.freebsd.org>
References:  <201806080540.w585ebLL027537@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7 June 2018 at 22:40, Mateusz Guzik <mjg@freebsd.org> wrote:
> Modified: head/sys/vm/uma_core.c
> ==============================================================================
> --- head/sys/vm/uma_core.c      Fri Jun  8 05:17:06 2018        (r334829)
> +++ head/sys/vm/uma_core.c      Fri Jun  8 05:40:36 2018        (r334830)
> @@ -2257,7 +2257,8 @@ uma_zalloc_arg(uma_zone_t zone, void *udata, int flags
>         KASSERT(curthread->td_critnest == 0 || SCHEDULER_STOPPED(),
>             ("uma_zalloc_arg: called with spinlock or critical section held"));
>         if (zone->uz_flags & UMA_ZONE_PCPU)
> -               MPASS((flags & M_ZERO) == 0);
> +               KASSERT((flags & M_ZERO) == 0, ("allocating from a pcpu zone "
> +                   "with M_ZERO passed"));

After this I get a panic (inverted order)

Panic: flags & MZERO @ uma_core.c line 2260

fast_syscall_common
amd64_syscall
sys_ioctl
kern_ioctl
if_up
in6_attach
in6_update_ifa
rtinit
rtrequest1_fib
uma_zalloc_arg
zone_import
zone_fetch_slab
keg_fetch_slab
keb_alloc_slab
rtentry_zinit
counter_u64_alloc
uma_zalloc_arg
...




-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgntfeH_E3yETxerCOD3yfxYSHZMSTr%2B4qC7FtuDJZme3Q>