From nobody Wed Mar 30 16:18:48 2022 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 7C9461A377BB for ; Wed, 30 Mar 2022 16:18:48 +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 4KTBSm13Qqz4RFk for ; Wed, 30 Mar 2022 16:18:48 +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 0161B165E5 for ; Wed, 30 Mar 2022 16:18:48 +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 22UGIlKV064648 for ; Wed, 30 Mar 2022 16:18:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22UGIls5064647 for bugs@FreeBSD.org; Wed, 30 Mar 2022 16:18:47 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: Wed, 30 Mar 2022 16:18:48 +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: markj@FreeBSD.org X-Bugzilla-Status: Open 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=1648657128; 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=KBmG55VvdcXQOD8z4MkT4HsOqZ93uEAHD1mu+2HRVrc=; b=ESLnDOhUTPlcu6pbFFjyj4Ok8sLUsY1YfCILD7n+CkHnnL2409LmMfPgFV1eBdjF7GzV5j BXMk8TdwQYvNDbm+Cg6AUEhBulIYcZU62g8Gg7u03yWTqO1E98to6SmeUzR8adcs/f0tW3 8sS9ie9dWof8bikArNTT1mJL3MBBUQsioMLpcWSedWHzvwsHHCw85EsbK3S9ogoHwqdcWE Vi74Gw5a36SnJ9wzpE22E/ylYoZqMUWEPeqZsu9f5Nc+4n5H1mIF6Dl70cG0nroM7RpjFA 5oyy4uVmIdtL8pZqwdeINoC55ByvdzSrrD4qZS6pjTACkqLqWNAG4mFh6YtOOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648657128; a=rsa-sha256; cv=none; b=WJQRbZeS+Pvc6yaFJwzVOiHd91+zI9jwr7DRTNZ4T/IE6Ib5xLhvKlwwOoLJTQGGRqu86V jBxNLstaGspcOn9oQIBahVCcET9U7vpNpTTBQ224mDW4YeArL6fg9aOWml8dEJgVRNjS4C y/KTgp1cJibCrKhzKmEkT7m0XwsUpoambQbWcepE8dX02kjnu02h+PtPkzofPruCFu316l aBNJESbOP03K51FnAWXLoTK5WBQuKp0LKladF2cCfSMyzwtZ3+OlfcsY2qMI+MFJwG2YNK s1K/gYuiClIbGyMpYZb1QK05vAQAK23I0qr6GllGpEnVNMSHwZE9mcPiryAUZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 --- Comment #76 from Mark Johnston --- (In reply to Mark Johnston from comment #75) The problem has to do with the reimplementation of zone limits in 13.0. pf= may allocate items from the table entry zone before a limit is set, and these i= tems won't be counted. When a limit is set, and the uncounted items are freed (= as can happen if there's a memory shortage), then they end up underflowing our counter. uma_zone_set_max() is missing an assertion that would have caught this. pf also needs to set a dummy limit on the table entry zone at initialization t= ime. I'm not sure if other pf zones might have the same problem. I'll work on a patch. --=20 You are receiving this mail because: You are the assignee for the bug.=