From nobody Sat Mar 23 22:23:54 2024 X-Original-To: net@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 4V2DHt652zz5G1Cj for ; Sat, 23 Mar 2024 22:23:54 +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 4V2DHt50Mtz4SL7 for ; Sat, 23 Mar 2024 22:23:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711232634; a=rsa-sha256; cv=none; b=vIxkWJx6B4Rl/ab/6w/fDigiMuoqsCumxDGLUSm+KleyktzZNZbl7aGjAjgStGQ2pVVk4K oMmSPwkca9dKrVpvtzuoEFFBS3lvKJ5pVWKglUB5ELdINm5gi6QvXeg6EWTgQG+eix8uRv AlUhu6kOCyOSJ0uusAP8NbRScBAd92p+taotXBASkRPxByE5Vq7JjX3ifF3aWakG2fQaOZ zCjTLrA1u8Iu4bbu/67yF6TQowLjI7g1MlBaqee8J8hL4hqjsz3kdW260Jyshgm7kf5CZA HOiJDpjR9HYladuAAuHay3eHUC/+x8lz6tO9yzLUSIv8WNHUh4dCb89tygwbUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711232634; 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=FS54+OQPpcrA4Wn1XGVdC2j0RKY3zTlMzZNP7CtCUrc=; b=ygn1H9os2KvYZDQSutm4huDDUNelZ/EzpIM31l2MjjP9A9Mt8UoiPlj2n9yg0FGQgauGhU l7gj93uMDW/Nr21DMsuX4Y/oK8lrKjggD1uIs+79aiSEe2cNTPn6TL4NPPLElNPxSGCM0U RFGuxFY296jpANZS1c6++usDIt5jGkGriFzGJcdcZ5mm8tHWoX94eoYsz6R9Iu0M+jVtzW /PtaeEPArHWvfK8eTYBE2G4lZlPetZU1/Dim9jg15bZ9y9jPtQABe1YVe0DPPUEUB3JmLH NNgYGY8vesR++RucbGPu7XDW3iSrIEMg04E0avicSJJ9YrDShYdD53qG6upixg== 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 4V2DHt4bWsz16WS for ; Sat, 23 Mar 2024 22:23:54 +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 42NMNsG7047354 for ; Sat, 23 Mar 2024 22:23:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42NMNs6M047353 for net@FreeBSD.org; Sat, 23 Mar 2024 22:23: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: net@FreeBSD.org Subject: [Bug 277875] pfctl cowardly refuses to load rules, broken between 8c94ed992702 & f29af8618bf9 Date: Sat, 23 Mar 2024 22:23:54 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277875 Dave Cottlehuber changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #249387|0 |1 is obsolete| | Attachment #249388|0 |1 is obsolete| | --- Comment #4 from Dave Cottlehuber --- Created attachment 249438 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D249438&action= =3Dedit truss log Thanks, rebuilt with that patch included. I reduced the failing ruleset to this minimal example: ``` # pfctl -s Running Enabled # pfctl -F all Ethernet rules cleared rules cleared nat cleared 0 tables deleted. 0 states cleared source tracking entries cleared pf: statistics cleared pf: interface flags reset root@# echo 'pass in quick on ng0 proto tcp to port 2200' | pfctl -vgf - No ALTQ support in kernel ALTQ related functions disabled pass in quick on ng0 proto tcp from any to any port =3D 2200 flags S/SA keep state # echo $status 1 # pfctl -s rules # ``` Evidently its not a ruleset parsing issue. I swapped ng0 for lo0 and the same situation occurs. running under truss, final lines from attached full log: ioctl(3,DIOCSETTIMEOUT,0x621da911a368) =3D 0 (0x0) ioctl(3,DIOCSETTIMEOUT,0x621da911a368) =3D 0 (0x0) ioctl(3,DIOCSETDEBUG,0x621da911a368) =3D 0 (0x0) sendto(5," \0\0\0\^P\0\^E\0\^A\0\0\0\0\0\0"...,32,0,NULL,0) =3D 32 (0x20) recvmsg(5,{0x621da911a26c,12,[{"\M-x\0\0\0\^P\0\^E\0\^A\0\0\0\0"...,65536}]= ,1,{},0,0},0) =3D 284 (0x11c) sendto(5,"\^\\0\0\0\^Q\0\^E\0\^B\0\0\0\0\0"...,28,0,NULL,0) =3D 28 (0x1c) recvmsg(5,{0x621da911a26c,12,[{"0\0\0\0\^B\0\0\0\^B\0\0\0\0\0\0"...,65536}]= ,1,{},0,0},0) =3D 48 (0x30) ioctl(3,DIOCSETHOSTID,0x621da911a368) =3D 0 (0x0) ioctl(3,DIOCSETREASS,0x621da911a368) =3D 0 (0x0) ioctl(3,DIOCKEEPCOUNTERS,0x621da911a310) =3D 0 (0x0) ioctl(3,DIOCGETLIMIT,0x621da911a300) =3D 0 (0x0) ioctl(3,DIOCSETSYNCOOKIES,0x621da911a300) =3D 0 (0x0) ioctl(3,DIOCXROLLBACK,0x621da911a398) =3D 0 (0x0) extl_if =3D "ng0" pass in quick on ng0 proto tcp from any to any port =3D 2200 flags S/SA keep state write(1,"extl_if =3D "ng0"\npass in quick o"...,97) =3D 97 (0x61) exit(0x1)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 process exit, rval =3D 1 trying the same ruleset on a different arm64 box with same from-source build, it works as expected - rules loaded, and output displayed. I'll do a full re-install into an empty BE next. --=20 You are receiving this mail because: You are the assignee for the bug.=