From nobody Tue Dec 14 13:34:34 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 9644718E0493 for ; Tue, 14 Dec 2021 13:34:34 +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 4JCzrB26mkz4bM1 for ; Tue, 14 Dec 2021 13:34:34 +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 1ECBD11E2 for ; Tue, 14 Dec 2021 13:34:34 +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 1BEDYYMl093379 for ; Tue, 14 Dec 2021 13:34:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BEDYYc0093378 for bugs@FreeBSD.org; Tue, 14 Dec 2021 13:34:34 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 13:34:34 +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=1639488874; 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=vE9ZcMyKWMRMiXlajr2H2VuPmG0GcGMgSeafnz/cT2w=; b=QChw0bbFziOvyWtwY2bvg5dlzGPv3YwQz++qduAmX0wAZKftk2f4jfafCdprB8p1iid/Wn Rl8wAEGJFDkj+qbeXWdP0pfkr5j7Q7q/p8Ivn9x07zCIi1DKyaUX1pUUGbkp1G6nx0WPce Z9RA7q9g2MvcBAWqqEHTH8ax4Ercm3BuEIdFMucYq2IAqrEf/gRXwSYxuFJsFFYdut1dMR DFK8ANvc75RJIJBMcwYnfC5ltcgquMfsgVzCZxDWh4PtOF9n1y2RghkLhoJ4O9b9New1j/ fw5AV7OlrlN9tbBmlL/gmFVUtvP4qzap3ks3+lA8BOqZrRDepTqrRDlaSONdjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639488874; a=rsa-sha256; cv=none; b=xQKqHm7JKOblB4mZ6tpk0gZGea0ot4zKlCSuUmoGuybvnLCwi3HJQGOgNRBu1VmmU+KJI0 Jfz79B3PRov8jSMhP8wkITc5bLaJU6gaNoIhGDVJJmsFwOczbL3lhUfnV09pK7+lmGRvo8 123KYCD+XaOHVCmXENx8Z9b2ZWCQGn+Wn6vcq5CYV37mOx87E6AmG8V4HMnBbAzeusHn9k sBE5Hp6ngn6/PpWa9Zsn2cXNuIOscDZbK2pkzpewf0wdyARMld3NRL5h+ewgpYyp/yXEqP bh5tcgwDEBMbkNcLfLGOObxVYS4OweUdG0xdxTqA5kVbBcAsv2NuUc42/GtAlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 --- Comment #7 from tech-lists@zyxst.net --- (In reply to Kristof Provost from comment #6) # dtrace -n 'fbt:kernel:pfr_ina_define:return { printf("%x %x", arg0, arg1)= ; }' dtrace: description 'fbt:kernel:pfr_ina_define:return ' matched 1 probe CPU ID FUNCTION:NAME 0 36537 pfr_ina_define:return c ffffa000c1e55460 0 36537 pfr_ina_define:return 0 0 0 36537 pfr_ina_define:return 0 ffffa001d5139d80 0 36537 pfr_ina_define:return 0 0 0 36537 pfr_ina_define:return 0 ffffa001977e9000 0 36537 pfr_ina_define:return 0 ffffa0001a8a3401 0 36537 pfr_ina_define:return 0 ffffa0016fb04a80 if I try the command (pfctl -f /etc/pf.conf) repeatedly the values of the p= robe change a bit: 2 36537 pfr_ina_define:return c ffffa000c1e48be0 2 36537 pfr_ina_define:return 0 0 2 36537 pfr_ina_define:return 0 ffffa0017783fa80 2 36537 pfr_ina_define:return 0 0 2 36537 pfr_ina_define:return 0 ffffa001df262a80 2 36537 pfr_ina_define:return 0 ffffa0001a8a3401 2 36537 pfr_ina_define:return 0 ffffa0014e050a80 each time in the pf window I get this result: # 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 if I comment out the big table and its clock rules from pf.conf, it loads without error: # pfctl -f /etc/pf.conf # in the probe window: # dtrace -n 'fbt:kernel:pfr_ina_define:return { printf("%x %x", arg0, arg1)= ; }' dtrace: description 'fbt:kernel:pfr_ina_define:return ' matched 1 probe CPU ID FUNCTION:NAME 0 36537 pfr_ina_define:return 0 0 0 36537 pfr_ina_define:return 0 ffffa00184267780 0 36537 pfr_ina_define:return 0 0 0 36537 pfr_ina_define:return 0 ffffa001c64ef780 0 36537 pfr_ina_define:return 0 ffffa0001a8a3401 0 36537 pfr_ina_define:return 0 ffffa001c0d94c00 You asked: > why? maybe this is no longer the case, but I thought in-kernel was "faster" than dynamic or via a kld particularly on low power devices --=20 You are receiving this mail because: You are the assignee for the bug.=