From nobody Fri Dec 24 15:25:24 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8D281190EC3C for ; Fri, 24 Dec 2021 15:25:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JL9qS1zCYz4bh4 for ; Fri, 24 Dec 2021 15:25:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23BC526243 for ; Fri, 24 Dec 2021 15:25:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BOFPOg8006967 for ; Fri, 24 Dec 2021 15:25:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BOFPO41006966 for bugs@FreeBSD.org; Fri, 24 Dec 2021 15:25:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260406] pfctl: Cannot allocate memory (after a time) Date: Fri, 24 Dec 2021 15:25:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640359524; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bXDE5s5aX0LnEZSoLjuhFfLx88GcEliA9rSWxxkCZcE=; b=Lu59vrAT/OfMrqLIP+faHqC3S9EnqeKOTlGkOFXD0Hy9PFifbeLWjZlLkGGkDToZzfSPZQ yX8FyDimw1YDMpf4uniRdq6kgcnbXJ62oAhnS+2NEWz+yGzZG9Tquc7F48FaLTi4P750wj jxcUaI0LJckSZMtymSQQa3EVMmxv6iMaxV3DW51e0t7UbdBBPBcueT4wakbEqutrML9pGx pQdcEK3zM3XAF136ZkSsjz/p09kqVthQpdUYAI8sb7zn6EqUgsFW/JaEYl1l+UZvlXNbR/ bGQRELXapohmCniwIoPPlpQFu17NdN3cQ7c/5b5zMEVUv2ixSrBRbFJcwhF7ag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640359524; a=rsa-sha256; cv=none; b=amfCSxsZ09TdUt4oNHJJMIr3+EsF7lJLu3uQSunFyb/pMYkz4PKXblPOSUQ7hN26o5uiIc mFLe52v1LgWgU0IcYW2uJrXJ+o5eu4fpFK1VIgPTh6hr0R+Fy7gKB1GglIVh8vtxbUTnmO wvV4DMDaDfPOzJAmhIxEkdGz2DcDtbRdyHEOIbY/s8xtg6fMlvaq66HX7cf8lVHJveiZBd U9H+yL81jLlUuTA8muaU03pTcae/1kjw/5zQ5JA/H+n3UY1YXIPivkiIEkpZQTXfww29z2 JGTrmxStkTqtf0se77VWcLuPYB/9hXMum3XWo10oVL+TwDY5aLdaLbbyJh23OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 --- Comment #47 from Kristof Provost --- (In reply to Diego Linke from comment #45) Okay, that tells us at least that I used the entry probe in a few places wh= ere I meant to use the return probe. But also that it looks like in cache_alloc_retry() we failed to find a buck= et with free space, and then presumably also failed zone_alloc_item(). That st= ill looks for all the world like you're out of memory. Here's an updated dtrace script: #!/usr/sbin/dtrace -s BEGIN { self->in_call =3D 0; } fbt:pf:pfr_create_kentry:entry { self->in_call =3D 1; printf("In"); } fbt:pf:pfr_create_kentry:return { self->in_call =3D 0; printf("=3D> %x (@%x)\n", arg1, arg0); } fbt:pf:pfr_create_kentry:return / arg1 =3D=3D 0 / { stack(); } fbt:kernel:uma_zalloc_arg:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:cache_alloc_retry:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:cache_alloc:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:zone_alloc_item:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:uma_small_alloc:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:zone_alloc_limit_hard:return / self->in_call =3D=3D 1 / { printf("=3D> %x (@%x)", arg1, arg0); } fbt:kernel:zone_free_limit:entry / self->in_call =3D=3D 1 / { printf("In"); } --=20 You are receiving this mail because: You are the assignee for the bug.=