From nobody Tue Dec 14 20:42:55 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 CD47718D835C for ; Tue, 14 Dec 2021 20:42:55 +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 4JD9LR20yCz3N4n for ; Tue, 14 Dec 2021 20:42:55 +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 0B4327593 for ; Tue, 14 Dec 2021 20:42:55 +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 1BEKgs5t028956 for ; Tue, 14 Dec 2021 20:42:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BEKgsnv028955 for bugs@FreeBSD.org; Tue, 14 Dec 2021 20:42:54 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: Tue, 14 Dec 2021 20:42:55 +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: tech-lists@zyxst.net 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=1639514575; 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=AD7F/MI4rJnLxSD6YgwKOEjtz4/WNEgVH4fn2kZkHXk=; b=xVPOOR3oDpVRoZ3mKBPJVrAU/sPsFTXVjBU1Sqwa3whdC8ueK7vJk+9q13kI+Q5hTYZPJw ulgQmiFdo5zdITwbWnlFYcj/qIK7y9nuKcnzHUDDOPA9pUJC2FxKjRQ+9vr1RDcSycjSmH Mw0VR5HfRLhkhbUCWHAj7+8uuaRsMDL5+YrvgT5SEgBptpRI4xcUC7YUjcLoiHc50DIKNM W5m9JMU58zmvxOi5fR0MsxDahUnHIsa4X6CUw89jXN7Lf674ErkAWXQV9JbCeGZe5LS0Ac LUXlIhiDDVm2bAwHri+8tgGXEj7fAGnnEPKeIFpsqXkQ1Jh+Jc17XBElbLJyxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639514575; a=rsa-sha256; cv=none; b=Tl6GIXgacwimOFSEF24YANiU8IOxv+Fn4ZwZ8JCD64r66IVRxKlKDcYh14oZhPgAoNlJ0+ G0wyqfrDpZhuHMedDwKRBv85VO4WADID6F35ZoiLnC+ZM/ZMkxUANjDknE3zHNR4kL/Xk8 8iH2n5UFCECs/IVMsKlQwx2/keOhS9uGS3nkWdv9Ro+LNZmd2r4qO9unjMLoCQ9tLSDdCw MVUNzXtmT5ilgeRFbYJ175SHCJ8S7aD82hTQBtzfh+Os7gi7lYYnHI7yQy0LNewyfgS2AA ArMH+L9xGo9MARNmZJiW52e1sqjwETTHv89X9E8v4pzPOErukht+nHRdpFIxxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 --- Comment #10 from tech-lists@zyxst.net --- OK - two tests, first one with the large table commented out (so pfctl -f returns without error), second one with it uncommented 1. # dtrace -n 'fbt:kernel:pfr_create_ktable:return { printf("%x", arg0); }' -n 'fbt:kernel:pf_find_or_create_kruleset:return { printf("%x", arg0); }' -n 'fbt:kernel:pfr_create_kentry:return { printf("%x", arg0); }' dtrace: description 'fbt:kernel:pfr_create_ktable:return ' matched 1 probe dtrace: description 'fbt:kernel:pf_find_or_create_kruleset:return ' matched= 1 probe dtrace: description 'fbt:kernel:pfr_create_kentry:return ' matched 1 probe CPU ID FUNCTION:NAME 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa000133a6000 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa00080bc2000 1 13259 pfr_create_kentry:return ffffa0011698b1e0 1 13259 pfr_create_kentry:return ffffa0011698b280 1 13259 pfr_create_kentry:return ffffa0011698b320 1 13259 pfr_create_kentry:return ffffa0011698b3c0 1 13259 pfr_create_kentry:return ffffa0011698b460 1 13259 pfr_create_kentry:return ffffa0011698b500 1 13259 pfr_create_kentry:return ffffa0011698b5a0 1 13259 pfr_create_kentry:return ffffa0011698b640 1 13259 pfr_create_kentry:return ffffa0011698b6e0 1 13259 pfr_create_kentry:return ffffa0011698b780 1 13259 pfr_create_kentry:return ffffa0011698b820 1 13259 pfr_create_kentry:return ffffa0011698b8c0 1 13259 pfr_create_kentry:return ffffa0011698b960 1 13259 pfr_create_kentry:return ffffa0011698ba00 1 13259 pfr_create_kentry:return ffffa0011698baa0 1 13259 pfr_create_kentry:return ffffa0011698bb40 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa001d822a000 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa0004a9b1800 1 13259 pfr_create_kentry:return ffffa0011698bbe0 1 13259 pfr_create_kentry:return ffffa0011698bc80 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa001d71a2800 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa001d71a2000 1 13259 pfr_create_kentry:return ffffa0011698bd20 1 13259 pfr_create_kentry:return ffffa0011698bdc0 1 13251 pfr_create_ktable:return 1 1 13251 pfr_create_ktable:return ffffa00108f7e800 1 13259 pfr_create_kentry:return ffffa0011698be60 1 13259 pfr_create_kentry:return ffffa0011698bf00 1 13259 pfr_create_kentry:return ffffa0011698a000 2.=20 pfctl -f /etc/pf.conf with the large table enabled, so # pfctl -f /etc/pf.conf /etc/pf.conf:18: cannot define table pfbadhost: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded # dtrace -n 'fbt:kernel:pfr_create_ktable:return { printf("%x", arg0); }' -n 'fbt:kernel:pf_find_or_create_kruleset:return { printf("%x", arg0); }' -n 'fbt:kernel:pfr_create_kentry:return { printf("%x", arg0); }' dtrace: description 'fbt:kernel:pfr_create_ktable:return ' matched 1 probe dtrace: description 'fbt:kernel:pf_find_or_create_kruleset:return ' matched= 1 probe dtrace: description 'fbt:kernel:pfr_create_kentry:return ' matched 1 probe CPU ID FUNCTION:NAME 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa0001a8a2800 2 13259 pfr_create_kentry:return ffffa0011698cdc0 2 13259 pfr_create_kentry:return ffffa000c1e48640 2 13259 pfr_create_kentry:return ffffa000c1e485a0 2 13259 pfr_create_kentry:return ffffa00116988e60 2 13259 pfr_create_kentry:return ffffa000c1e48500 2 13259 pfr_create_kentry:return ffffa000c1e48780 2 13259 pfr_create_kentry:return ffffa000c1e48aa0 2 13259 pfr_create_kentry:return ffffa000c1e488c0 2 13259 pfr_create_kentry:return ffffa000c1e48a00 2 13259 pfr_create_kentry:return ffffa000c1e48960 2 13259 pfr_create_kentry:return ffffa000c1e48820 2 13259 pfr_create_kentry:return ffffa000c1e48b40 2 13259 pfr_create_kentry:return ffffa000c1e486e0 2 13259 pfr_create_kentry:return ffffa0011698b0a0 2 13259 pfr_create_kentry:return ffffa000c1e48be0 2 13259 pfr_create_kentry:return ffffa000c1e553c0 2 13259 pfr_create_kentry:return ffffa0011698ce60 2 13259 pfr_create_kentry:return ffffa0011698cd20 2 13259 pfr_create_kentry:return ffffa0011698cf00 2 13259 pfr_create_kentry:return ffffa0011698b000 2 13259 pfr_create_kentry:return ffffa000c1e55280 2 13259 pfr_create_kentry:return ffffa000c1c24280 2 13259 pfr_create_kentry:return ffffa000c1cab780 2 13259 pfr_create_kentry:return ffffa000c1c25780 2 13259 pfr_create_kentry:return ffffa000c1e555a0 2 13259 pfr_create_kentry:return ffffa000c1eaff00 2 13259 pfr_create_kentry:return ffffa000c1b5c0a0 2 13259 pfr_create_kentry:return ffffa000c1e55640 2 13259 pfr_create_kentry:return ffffa000c1a80dc0 2 13259 pfr_create_kentry:return ffffa000c1e55320 2 13259 pfr_create_kentry:return 0 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa0001a8a2800 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa00044ed5800 2 13259 pfr_create_kentry:return ffffa0011698cdc0 2 13259 pfr_create_kentry:return ffffa000c1e48640 2 13259 pfr_create_kentry:return ffffa000c1e485a0 2 13259 pfr_create_kentry:return ffffa00116988e60 2 13259 pfr_create_kentry:return ffffa000c1e48500 2 13259 pfr_create_kentry:return ffffa000c1e48780 2 13259 pfr_create_kentry:return ffffa000c1e48aa0 2 13259 pfr_create_kentry:return ffffa000c1e488c0 2 13259 pfr_create_kentry:return ffffa000c1e48a00 2 13259 pfr_create_kentry:return ffffa000c1e48960 2 13259 pfr_create_kentry:return ffffa000c1e48820 2 13259 pfr_create_kentry:return ffffa000c1e48b40 2 13259 pfr_create_kentry:return ffffa000c1e486e0 2 13259 pfr_create_kentry:return ffffa0011698b0a0 2 13259 pfr_create_kentry:return ffffa000c1e48be0 2 13259 pfr_create_kentry:return ffffa000c1e553c0 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa00008fcb800 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa000f7955000 2 13259 pfr_create_kentry:return ffffa0011698ce60 2 13259 pfr_create_kentry:return ffffa0011698cd20 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 36465 pf_find_or_create_kruleset:return ffff000041aef0e0 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa000f7956000 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa0011697b800 2 13259 pfr_create_kentry:return ffffa0011698cf00 2 13259 pfr_create_kentry:return ffffa0011698b000 2 13251 pfr_create_ktable:return 1 2 13251 pfr_create_ktable:return ffffa00116977000 2 13259 pfr_create_kentry:return ffffa000c1e55280 2 13259 pfr_create_kentry:return ffffa000c1c24280 2 13259 pfr_create_kentry:return ffffa000c1cab780 --=20 You are receiving this mail because: You are the assignee for the bug.=