From nobody Thu Nov 19 16:59:54 2026 X-Original-To: dev-commits-src-main@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 4jVl7t6HnBz71RNN for ; Thu, 19 Nov 2026 16:59:54 +0000 (UTC) (envelope-from git@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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVl7t5QNxz4HhW for ; Thu, 19 Nov 2026 16:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107594; 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; bh=109OFRCFe7by95QujmVbs94rhcQiq5yQxKtVylppkN8=; b=R0L/euAbNEfmfbtU18Ch9sfAsn8F5H8+URCfm0zBX3GsBKl41Zm5zSis6sCvRc2zwPF9Fq bNepQVS/4qUZ7oaP5DbvZZiCV72KeJzoFY8yn6PVnGqcfEiQebx2wJr7wBpg1RHZhCbyw1 6bpwpGSHJ9YC9ax+OeLBkPB8Jks0q9uGEaNWoQw0Qaz5zMfEvNEDMW95gj6RJlYuWqATi8 RpBR+moERzDsFgYKJv/RVw/nlI/aq2uIj468kGUxkdO+dpyvleX2x+w8vo91AnpEu8BTGm JnHzwr4Lu++uAqd/atq3b8pbuSmItqnRq6ei2VUfxrGYkpZG0dQFOMT98q0bXA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795107594; b=sQEjcbELXir+2DZL4kv8FxZ3c55EOnLb41QwasKmRnZOzPrLr6QU8rMQISvBMhNmCmCnPV 0SUPYCgcavNf4NjTUF+Q6tnK3X3vyCCPDM1ZmK3FjaMEtcrBKykvn8EbTDhshsEW03jVUe 346z3nyDIPk1tHUyZsQi7S5JXfDypDxxLdd8jnc9ciopVq/sJafeAgt9zkdewyeH1QaHwJ 2bC9N46izCd0nrhXt2eksofJrZMEdzhOnChvB/tKj9v5KjBVhwJtL6nGiERYAj4V/PBYcM iKSXhWgY7BA9Rn4psIwypea5Tc2yQdtXgfLQvqH2bkycrU6T7kQYznETGH89Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107594; 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; bh=109OFRCFe7by95QujmVbs94rhcQiq5yQxKtVylppkN8=; b=lUuDN3HdWuLVJqPvWNgXSQ97KrtKrQLLLypWvNlM1GfE+TP4YIAnrxPtl3f+4GtxxlHA6G TnPvnL9XqY96tza/xcWLj4Gbv2OObjV4D5UCp6Q/AcbPWqLrm0f657JAjfd8bjGmIDv2Bm H6HIY6ptTBTco093WR1iLuiWYHIvC3aGvJJEqrWNNp7+1ND9tWdzTpfCXbjZzAupgbPgIm LdHWxzAB0VtzcRbwaEdlzZh7i0qOLxwpCmZQJ9Hn6NA0xboHvW7hU3tQ2UYn25Jv+HsjZh FeMkPOoKtY8RuIu1KuPVnOYtKJZm8WtY9btX23NUkw+zIORCSbBqelsyHiutBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVl7t550bz18Ht for ; Thu, 19 Nov 2026 16:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 15c1a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 16:59:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: c589ea89f9f5 - main - pf tests: run the ioctl tests in their own vnet too List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c589ea89f9f582f6c01d739f11ed46f0146f52d8 Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 16:59:54 +0000 Message-Id: <6aff2b0a.15c1a.29acb627@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c589ea89f9f582f6c01d739f11ed46f0146f52d8 commit c589ea89f9f582f6c01d739f11ed46f0146f52d8 Author: Kristof Provost AuthorDate: 2026-11-19 06:48:54 +0000 Commit: Kristof Provost CommitDate: 2026-11-19 16:59:21 +0000 pf tests: run the ioctl tests in their own vnet too Fix the validation:settflags test, because using a NULL buffer succeeds if there's no table to set tflags in. Create a table to fix the test. Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/ioctl/Makefile | 4 ++++ tests/sys/netpfil/pf/ioctl/validation.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/sys/netpfil/pf/ioctl/Makefile b/tests/sys/netpfil/pf/ioctl/Makefile index 6bcf48432d30..27ef15ea5110 100644 --- a/tests/sys/netpfil/pf/ioctl/Makefile +++ b/tests/sys/netpfil/pf/ioctl/Makefile @@ -2,6 +2,10 @@ PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/netpfil/pf/ioctl +# Allow tests to run in parallel in their own jails +TEST_METADATA+= execenv="jail" +TEST_METADATA+= execenv_jail_params="vnet" + ATF_TESTS_C += \ validation diff --git a/tests/sys/netpfil/pf/ioctl/validation.c b/tests/sys/netpfil/pf/ioctl/validation.c index 8de07d6506c4..0d7be8dfcaa2 100644 --- a/tests/sys/netpfil/pf/ioctl/validation.c +++ b/tests/sys/netpfil/pf/ioctl/validation.c @@ -346,6 +346,14 @@ ATF_TC_BODY(settflags, tc) if (ioctl(dev, DIOCRSETTFLAGS, &io) != 0) atf_tc_fail("Request with size 1 << 24 failed"); + /* + * Actually add a table, otherwise we don't do anything and a NULL buffer + * succeeds. + */ + io.pfrio_size = 1; + if (ioctl(dev, DIOCRADDTABLES, &io) != 0) + atf_tc_fail("Failed to add a table."); + /* NULL buffer */ io.pfrio_buffer = NULL; if (ioctl(dev, DIOCRSETTFLAGS, &io) != -1)