From nobody Sat Nov 18 15:30:09 2023 X-Original-To: freebsd-pf@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 4SXd4n0wg5z51FPt for ; Sat, 18 Nov 2023 15:30:17 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4SXd4m1fQ8z3HhZ for ; Sat, 18 Nov 2023 15:30:16 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm1 header.b=V1nT0K8H; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=yj7nlPj5; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.24 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8786A32009A0 for ; Sat, 18 Nov 2023 10:30:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 18 Nov 2023 10:30:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1700321413; x=1700407813; bh=8p6Q02ow7ZcEonFzy7PtdF16a 0m0zd+k4kZ2q5TLOgE=; b=V1nT0K8HP+iRJm1i/3+C9gPb2W3JmVGOQrykHVlqS 7OhAeNu4fzlDGlDx3GhTjstLRBPcllRSP9i0DdarRf+jnoPgJXEZz97z1jYUZIkO mfUgQ8q26R76J7UFSbnffq8Q88W0W3w2h1VLh1Uq86uSfVCnUBTPGzoH1cX3/qqc 7lJzEaQqO9Y1U+mLGoNu33b+V1D5SEzCHutSh6+TiRMLRbuxp/ED+LJjhEKZlzfD Af6a2Vhn9+/nmczB+XOx3+qH5s+VBDNwUVab52I0fCJqpR7kwuH8EhdpDXcI8m9x scm2TsVZuGlBmf2qCVrh0Bwzo3SchXXqQjvAIkBJEsEAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700321413; x=1700407813; bh=8p6Q02ow7ZcEonFzy7PtdF16a0m0zd+k4kZ 2q5TLOgE=; b=yj7nlPj5FpBEAmNjus3hxln9doEqV1pOogii5k8NaKwk9vmk4Xh x1ctV71XOn7eVi8w+AqsFsPJyo7weCbTsFfVf0Im8sooeQEu/NufXSLxI7Gl/U1J sPYPv5DgeH1gwJuEMxVrSrSHYYPWEUN/40emPhaPl0KjciAUCuRXHRXV3QFhUmt+ VecRt6J7gzKF0L52PnxJsA73uP1M6yU7CN4/hFitBCby4XwrDnM1JvMxhLlfnPr8 d/JHTNndUhQjSTi/seUgM/GX2XPquaQoSKs4gBKsjmd9/DSFQP8RFHKj2w93B8C/ Eng8HZFmQGXQpxBr6IzcrwZCAXE8cHB8NMw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegvddgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgrthht vghrnhepveduffeivdfffffghfegfeejfefftdeiteehteekfefhvdefgfettdeuheegff eunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhho ihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 18 Nov 2023 10:30:12 -0500 (EST) Date: Sat, 18 Nov 2023 15:30:09 +0000 From: void To: freebsd-pf@freebsd.org Subject: re: pf is broken in stable/14-n265566-4533fa42ad91 arm64 Message-ID: Mail-Followup-To: freebsd-pf@freebsd.org List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; FAKE_REPLY(1.00)[]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_NOT_FQDN(0.50)[]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.24:from]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm1,messagingengine.com:s=fm1]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.24:from]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pf@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; MLMMJ_DEST(0.00)[freebsd-pf@freebsd.org]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4SXd4m1fQ8z3HhZ X-Spamd-Bar: --- Hi, [originally sent to freebsd-stable but on second thoughts, this should have gone here] This context [1] was on stable/14-n265566 where pf worked fine. Source upgrade yesterday to stable/14-n265566 and pf is now broken. # service pf status /usr/src/sys/contrib/libnv/nvlist.c:379: Element 'halfopen_states' of type NUMBER doesn't exist. Abort trap (core dumped) To try and debug, I disabled all pf-related things in rc.conf and loader.conf, and tried to load things manually then apply a very basic pf config file /etc/pf.basic # kldload pf # # pfctl -nvf /etc/pf.basic ext_if = "genet0" block drop in all pass in on genet0 proto tcp from any to any port = ssh flags S/SA keep state pass out all flags S/SA keep state # pfctl -evf /etc/pf.basic No ALTQ support in kernel ALTQ related functions disabled ext_if = "genet0" pfctl: DIOCADDRULENV: Argument list too long When the problem was first identified, this appeared at the console on bootup: ### Nov 13 12:18:05 redacted kernel: Enabling pfpfctl: DIOCADDRULENV: Argument list too long Nov 13 12:18:05 redacted kernel: /etc/rc: WARNING: Unable to load /etc/pf.conf. Nov 13 12:18:05 redacted kernel: /etc/rc: WARNING: Loading fallback rules: block drop log all Nov 13 12:18:05 redacted kernel: pfctl: DIOCADDRULENV: Argument list too long Nov 13 12:18:05 redacted kernel: /usr/src/sys/contrib/libnv/nvlist.c:379: Element 'halfopen_states' of type NUMBER doesn't exist. Nov 13 12:18:05 redacted kernel: Abort trap (core dumped) Nov 13 12:18:05 redacted kernel: . Note the pfpfctl above [1] raspberry pi 4b+ 8GB --