[Bug 260406] pfctl: Cannot allocate memory (after a time)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Dec 2021 14:07:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406

--- Comment #40 from Kristof Provost <kp@freebsd.org> ---
(In reply to tech-lists from comment #39)
Yes please. Let's see if that makes a difference or not.


While we're at it, it'd be useful for someone who has an affected amd64 machine
to try this dtrace script:

#!/usr/sbin/dtrace -s

BEGIN
{
        self->in_call = 0;
}

fbt:pf:pfr_create_kentry:entry
{
        self->in_call = 1;
        printf("In");
}

fbt:pf:pfr_create_kentry:return
{
        self->in_call = 0;
        printf("=> %x (@%x)\n", arg1, arg0);
}
fbt:pf:pfr_create_kentry:return
/ arg1 == 0 /
{
        stack();
}

fbt:kernel:uma_zalloc_arg:return
/ self->in_call == 1 /
{
        printf("=> %x (@%x)", arg1, arg0);
}

fbt:kernel:cache_alloc_retry:entry
/ self->in_call == 1 /
{
        printf("=> %x (@%x)", arg1, arg0);
}

fbt:kernel:cache_alloc:entry
/ self->in_call == 1 /
{
        printf("=> %x (@%x)", arg1, arg0);
}

fbt:kernel:zone_alloc_item:entry
/ self->in_call == 1 /
{
        printf("=> %x (@%x)", arg1, arg0);
}

fbt:kernel:uma_small_alloc:return
/ self->in_call == 1 /
{
        printf("=> %x (@%x)", arg1, arg0);
}

Once the problem occurs there should be output like 'pfr_create_kentry:return
=> 0 (@120)'. Please attach the full log, because there's going to be more
information (hopefully!) in there.

-- 
You are receiving this mail because:
You are the assignee for the bug.