From nobody Thu Feb 19 02:55:50 2026 X-Original-To: testing@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 4fGdKy3CDfz6S5yV for ; Thu, 19 Feb 2026 02:55:50 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fGdKy2n4Kz3Rp8 for ; Thu, 19 Feb 2026 02:55:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771469750; 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=W9qGs+tsfvd3q6h83ZRDVXtqx4MlYgo2voJRshMvD1I=; b=lBl2JvA8xrDWhg3kaCLEb+y/d5mzoph4eDybhGpxbr/5EnBKdjgQPJ/tsuACnVG0m9slc0 X+Xt/n+PahjzbW0/2HQNoQOWxn+OZVfgq+A02qRleqAlolsyP7PYCDWl0D3fdNH7yTUrtk dg9Whvxh5CA1WJC6ezrrZ3GNzQyJvv+PeGOM9gLVBeTctjDd4HGCrHJW8MSMY5Mcasj9wp 0Ro4/H2TMBMX/fmJCs7otu5TNqzUv9WO9cM9Go3X5n4n7Tr9mpwNF/AD4JZgn1yc3KdPwz K2t+k4zJPJr74re0fSvJt93XeZ7gl/OFFY5kd/p3u8dmYhpCRcSJPEtmszOxNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771469750; a=rsa-sha256; cv=none; b=sdT7tB44eC7l+uHNvDTUmtWgAyDPPZwzYuy16zOdXAyHezZL1dRqob+ZR+aFB6qgBLWctK gcN2wPeXH9egeVnNXPCb2PsMHdTwVhoZY4YPX5Ed7EccPnutIoehdCyrPfxMH30PnLbTaB WSauw601SG9e7NnAZ961f3AFneM/9Kulp29z21ySOuWgeqsjYgVaTfCI6xctZXDZwDXH3F DljFgSFvb7lA6/qiEYNZSHnSp+RvzvpzkpPaZKBIG+TPJg+qNUtUE7c66iDcagH3BcshwE XIJzYqHHMgdRg4PhbOv0vHaxPagWAUPQ6TQqb/FmN0a8BUpXxAFaxxMAW0MzKg== 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=1771469750; 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=W9qGs+tsfvd3q6h83ZRDVXtqx4MlYgo2voJRshMvD1I=; b=iCVfunULlPxDTkpzcMnxXHbSla6/KzGD2OwXcUVgYWIqVsBO7I0H1ViCx6HiTz4CU08rJh Xtsb7t1UxEt4Xzg+AMj4lhgF0UCdkOcVDgMjNCI3sx9BCc4WJ01smfoEpDEgf39tQ6ALUR d/9YIJ1ANkFr4dMIW2/YGlAfn3ZVk2kowi94QyfYHeKazt5dRoF9QoCn0+rjuP4vAgLWuA 73y6db2sajZTyjEqWp8GT30T2yu+/VEYJv/DFkmk2PI1Xe1rFuw82uHVS/guU0hYjhG+Mr X2fkcdCym/pu5Jw+RymPFwb4eLtesvzms+j1rEX9eIDLU7KbWdxeVlobYqSKrA== 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 4fGdKy2Kgyz7sc for ; Thu, 19 Feb 2026 02:55:50 +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 61J2tonT016055 for ; Thu, 19 Feb 2026 02:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61J2tovK016054 for testing@FreeBSD.org; Thu, 19 Feb 2026 02:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: testing@FreeBSD.org Subject: [Bug 293241] sys/netpfil/ipfw/log:bpf test fails intermittently in CI Date: Thu, 19 Feb 2026 02:55:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: glebius@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Testing List-Archive: https://lists.freebsd.org/archives/freebsd-testing List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-testing@freebsd.org Sender: owner-freebsd-testing@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293241 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D38edf96b1787ce3d8c00e4466348dab89= 1c7a9ea commit 38edf96b1787ce3d8c00e4466348dab891c7a9ea Author: Gleb Smirnoff AuthorDate: 2026-02-19 02:39:00 +0000 Commit: Gleb Smirnoff CommitDate: 2026-02-19 02:53:16 +0000 tests/ipfw: fix log:bpf test flakyness There were several problems: o Using 'netstat -B' is not a reliable way to make sure that all tcpdum= ps have attached to bpf(4). The problem is that tcpdump (via libpcap) d= oes several ioctl(2)s after the attach including two BIOCSETF. Each of t= hem flushes the input buffer. So we can see tcpdump attached in 'netstat= -B' and start sending packets and the packet will be captured by bpf(4) before BIOCSETF and freed and tcpdump won't read anything. Instead of using netstat(1), use ps(1) and make sure each tcpdump is blocked on = the "bpf" wait channel, which guarantees it is done with ioctl(2)s and is= now blocked in read(2). o Using 'nc -w 0' sets timeout not only on the connect(2) (as documente= d) but also on poll(2), which is not documented. There is a race in she= ll that will make stdin not yet filled by 'echo foo' when nc(1) does poll(2). With zero timeout, this poll(2) will immediately return and= nc will exit. o The waiting loop had two errors: using wrong variable name as well as invoking a subshell, that actually can't wait on the pid. o The reading tcpdump was lacking '-q' option, that prevents any protoc= ol interpretations. Sometimes, when random port chosen by nc(1) would match some well-known (to tcpdump) port, the output would differ from the expected. PR: 293241 tests/sys/netpfil/ipfw/log.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=