From nobody Thu Jun 27 15:26:39 2024 X-Original-To: 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 4W92V75sGKz5PtHr for ; Thu, 27 Jun 2024 15:26:39 +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 4W92V73XKDz48BK for ; Thu, 27 Jun 2024 15:26:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719501999; a=rsa-sha256; cv=none; b=O5WVNASNkauFzJRLQE3L7RNxeRW6EI/nIKAXhXsYeAKxNeWCDn/awgwwvf2Q+A6GUJYUWC bvuWSMSO3pYMt1xQqguLCev75NZNpFRzwDWB97zLq/thdL2cdmV2M0JY79azDjQAApB6DK FUbOs8vWdjsfI253Ez1M9MkbMg2xfPNY2XVss72NNkOrmLrGvLJmloePjMf5LL5dUpLPIB kWcjuucZa4nhZUDBW0cM12MkPxLTp4K+mV9cumUPSQEZVftlnSOiisOWLx7io9HESFWurw SX/rPw6BCJ+ZiPeYtk2WFAJoSYU/TRTXOlhFK2H7IcXCDH/w/VHHz1Jv0HULmw== 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=1719501999; 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=ohjVnQRU4NV6RhLP659AJTFp/c9n3SKY45voeEX7VGk=; b=tmxYOnDQLqnJ9c/XcEFFnDx9AOpPybn0FETswyACQReC3xwu9BhjMc2OotAl3zUvkXtDDm tcSBUBU0Ot28636NNiPmFEcB3foqFNVBVM0vCdQ5XggR9C7rkncRrcgpD6VQD1DaVp3Zgm kY4NDWkHaLDwRyilvtPy32k0vEaM9Rq3/oEcSFw4Rc5T/smzLV9mQmiyl3tWIpglhSJJ4K oh1BhUlzZOaIDJ3z6YhsxqshccoW7hc7tWak/q0R8c9yDiCTnYtsDzsx0CsSo36YYsKuco lN5W+Eb1ltFw6A6y0vWYgc4RgnkwUIyfcJUFio4rSSIlqdPa7Hz+t3SGXiC/wg== 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 4W92V72xpbzJ0K for ; Thu, 27 Jun 2024 15:26:39 +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 45RFQdlY011344 for ; Thu, 27 Jun 2024 15:26:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45RFQdDE011343 for pf@FreeBSD.org; Thu, 27 Jun 2024 15:26:39 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: pf@FreeBSD.org Subject: [Bug 277093] pf: Assertion failed: (elems <= maxelems), function pf_nvuint_32_array on stable/14 with RACK Date: Thu, 27 Jun 2024 15:26:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eborisch+FreeBSD@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 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: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277093 eborisch+FreeBSD@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eborisch+FreeBSD@gmail.com --- Comment #4 from eborisch+FreeBSD@gmail.com --- Seeing this on 14.1-p1 (running inside a bhyve VM hosted on 14.0-p7, FWIW) With freshly removed/installed libpfctl+pftop packages from latest: Assertion failed: (elems <=3D maxelems), function pf_nvuint_32_array, file libpfctl.c, line 153. Looking at the core dump: (lldb) bt * thread #1, name =3D 'pftop', stop reason =3D signal SIGABRT * frame #0: 0x00002a9ebc67b10a libc.so.7`__sys_thr_kill + 10 frame #1: 0x00002a9ebc5f4404 libc.so.7`__raise + 52 frame #2: 0x00002a9ebc6a79d9 libc.so.7`abort + 73 frame #3: 0x00002a9ebc5d75f1 libc.so.7`__assert + 81 frame #4: 0x00002a9ebb317189 libpfctl.so.0`pfctl_get_clear_rule + 3113 frame #5: 0x00002a9ebb31654e libpfctl.so.0`pfctl_get_rule + 14 frame #6: 0x00002a96985ba7f3 pftop`___lldb_unnamed_symbol217 + 291 frame #7: 0x00002a96985ba9fe pftop`___lldb_unnamed_symbol220 + 190 frame #8: 0x00002a96985b983a pftop`___lldb_unnamed_symbol202 + 106 frame #9: 0x00002a96985bf2ea pftop`___lldb_unnamed_symbol300 + 90 frame #10: 0x00002a96985bc1a8 pftop`___lldb_unnamed_symbol233 + 1176 frame #11: 0x00002a9ebc5c8a6a libc.so.7`__libc_start1 + 298 frame #12: 0x00002a96985b87ed pftop`___lldb_unnamed_symbol182 + 45 If I locally recompile / reinstall libpfctl+pftop with symbols, I get a different error: * thread #1, name =3D 'pftop', stop reason =3D signal SIGSEGV: address not = mapped to object (fault address: 0x2d3) frame #0: 0x00002a6604b13f36 libc.so.7`strcasecmp_l + 118 libc.so.7`strcasecmp_l: -> 0x2a6604b13f36 <+118>: movzbl (%rax,%r13), %r12d 0x2a6604b13f3b <+123>: movq %rbx, %rdi 0x2a6604b13f3e <+126>: leaq -0x34(%rbp), %rsi 0x2a6604b13f42 <+130>: callq 0x2a6604b18550 ; symbol stub for: __runes_for_locale (lldb) bt * thread #1, name =3D 'pftop', stop reason =3D signal SIGSEGV: address not = mapped to object (fault address: 0x2d3) * frame #0: 0x00002a6604b13f36 libc.so.7`strcasecmp_l + 118 frame #1: 0x00002a6604aaffd6 libc.so.7`bsearch + 70 frame #2: 0x00002a6604a384b0 libc.so.7`_nsdispatch + 1200 frame #3: 0x00002a6604a316f6 libc.so.7`getprotobynumber + 118 frame #4: 0x00002a5de143276c pftop`print_rule(pr=3D0x000045b37d7ab040) = at pftop.c:1440:24 frame #5: 0x00002a5de142ff53 pftop`print_rules at pftop.c:1573:3 frame #6: 0x00002a5de1437e8c pftop`disp_update at engine.c:883:4 frame #7: 0x00002a5de14389eb pftop`engine_loop(countmax=3D0) at engine.c:1213:4 frame #8: 0x00002a5de1434929 pftop`main(argc=3D0, argv=3D0x00002a660178= cb40) at pftop.c:2322:2 frame #9: 0x00002a66049d0a6a libc.so.7`__libc_start1 + 298 frame #10: 0x00002a5de142ee5d pftop`_start at crt1_s.S:83 (lldb) fr sel 4 frame #4: 0x00002a5de143276c pftop`print_rule(pr=3D0x000045b37d7ab040) at pftop.c:1440:24 1437 else print_fld_str(FLD_ACTION, actiontypes[pr->action]); 1438 1439 if (pr->proto) { -> 1440 struct protoent *p =3D getprotobynumber(pr->proto); 1441 1442 if (p !=3D NULL) 1443 print_fld_str(FLD_PROTO, p->p_name); (lldb) print pr->proto (uint8_t) '\x11' --=20 You are receiving this mail because: You are the assignee for the bug.=