Page MenuHomeFreeBSD

kp (Kristof Provost)
Troubleshooter

Projects (7)

User Details

User Since
Sep 28 2014, 7:22 PM (634 w, 3 d)

Recent Activity

Yesterday

kp committed rGe02e3aec3b05: dummynet: do not log when a listing fills the buffer (authored by ojanerif_amd.com).
Wed, Nov 25, 4:08 PM
kp committed rG06b4369e637f: pf: hold PF_RULES_xLOCK when calling pf_find_keth_ruleset().
Wed, Nov 25, 4:08 PM
kp committed rGa38bc03561f8: pf: protect against the ethernet rule going away during DIOCGETETHRULE.
Wed, Nov 25, 4:08 PM
kp committed rGfab0d0ed67f9: pf: don't forget to CURVNET_RESTORE().
Wed, Nov 25, 4:08 PM
kp closed D61964: dummynet: do not log when a listing fills the buffer.
Wed, Nov 25, 4:08 PM
kp added inline comments to D61962: dummynet: copy only the user-visible scheduler in copy_obj().
Wed, Nov 25, 2:54 PM

Tue, Nov 24

kp added a comment to D61962: dummynet: copy only the user-visible scheduler in copy_obj().

I've got this one and the other dummynet fix in D61964 on my todo list to review & commit. I'm not going to promise *when*, but they're on my list.

Tue, Nov 24, 6:23 PM
kp committed rGba70b704053f: pf: include orig_kif in the mark-and-sweep cleanup mechanism.
Tue, Nov 24, 12:54 PM
kp committed rG96c545176df7: pf: don't allow any ioctl calls until we're fully initialised.
Tue, Nov 24, 12:54 PM

Mon, Nov 23

kp added a comment to D60109: ovpn(4): Set the FIB on received packets.

Oh boy, at least you are now seeing weirdness similar to what I was
experiencing before, including differences between native testing and
within a jail.
What was the git hash of the checkout you've been testing with?

Mon, Nov 23, 8:45 PM
kp committed rGc556863aad24: pf: fully free rule on error.
Mon, Nov 23, 6:12 PM
kp committed rG46c84f4e884c: pf: hold PF_RULES_RLOCK while copying out ethernet rules.
Mon, Nov 23, 6:12 PM
kp committed rGfd59b508f07d: pf: fix removing kif when clearing flags.
Mon, Nov 23, 6:12 PM
kp committed rG5162690ed3cf: pf: handle anchor or anchor_call not being passed in PFNL_CMD_ADDRULE.
Mon, Nov 23, 6:12 PM
kp committed rG162c1ae57c84: pf: fix double free on error.
Mon, Nov 23, 6:12 PM
kp committed rG5395ce57223d: pf: remove DIOCCHANGEADDR.
Mon, Nov 23, 6:12 PM

Sun, Nov 22

kp added a comment to D61927: cleanup: drop support for EOL FreeBSD 14.4 (after 2026-12-31).

The libpfctl changes look good. I didn't remove 14.4 when I added 15.2 because it wasn't quite EoL yet, so it gets to be removed later.

Sun, Nov 22, 9:14 PM

Thu, Nov 19

kp committed rG5165da26f31f: pf: fix nat46 ICMP handling.
Thu, Nov 19, 5:00 PM
kp committed rGe53632189f09: pf: fix sctp normalisation cleanup.
Thu, Nov 19, 5:00 PM
kp committed rGc589ea89f9f5: pf tests: run the ioctl tests in their own vnet too.
Thu, Nov 19, 5:00 PM
kp committed rG5131335c7d48: pf tests: test pfTablesTblCount in snmp_pf.
Thu, Nov 19, 5:00 PM
kp added a comment to D60109: ovpn(4): Set the FIB on received packets.
In D60109#1415248, @kp wrote:

I'm still seeing if_ovpn_fib:fibtun -> failed: 0 != 2 (0 != 2) [23.777s].

Thu, Nov 19, 4:00 PM
kp added a comment to D60109: ovpn(4): Set the FIB on received packets.

I'm still seeing if_ovpn_fib:fibtun -> failed: 0 != 2 (0 != 2) [23.777s].

Thu, Nov 19, 1:00 PM
kp committed rG0c1a482b4e4f: libpfctl: fix tstats address count.
Thu, Nov 19, 10:31 AM
kp committed rG4a97b40891f0: pfsync: don't apply a stale dst peer from a state update (authored by Maksym Hrytsaienko <hrytsaienko.my@gmail.com>).
Thu, Nov 19, 9:17 AM
kp added a comment to D60109: ovpn(4): Set the FIB on received packets.

Still, other networking components involved here seem to be fragile.
That's why I don't want to involve additional parts which may lead to
false-negative or - as in the past - false-positive results, i. e. I
don't want to run the test using VNET jails.

Basically all of the networking tests involve VNET. Certainly pretty much all of the pf tests do.

Thu, Nov 19, 7:29 AM

Wed, Nov 18

kp committed rGa139b43c356d: pf tests: Skip unmapped_mbuf:dummynet without dummynet (authored by Jaswanth Saravanan <jaswanth.s006@gmail.com>).
Wed, Nov 18, 7:23 PM
kp closed D61440: dummynet: validate object length before fixed-size copies in do_config().
Wed, Nov 18, 7:22 PM
kp committed rG42d358453d05: dummynet: validate object length before fixed-size copies in do_config() (authored by ojanerif_amd.com).
Wed, Nov 18, 7:22 PM
kp closed D61409: pf: reject table anchors with empty path components.
Wed, Nov 18, 7:22 PM
kp committed rG53e0d3fb3bcd: pf: reject table anchors with empty path components (authored by ojanerif_amd.com).
Wed, Nov 18, 7:22 PM
kp committed rGa396a0218cc5: pf: improve anchor string validation.
Wed, Nov 18, 7:22 PM
kp committed rG42bf1d9e83c8: pf: implement RFC 7112 Section 5.
Wed, Nov 18, 7:22 PM
kp added a comment to D60834: if_veb: Add veb(4) pseudo network device.

To be honest I still find the justification for an entirely new bridge to be very thin.

Wed, Nov 18, 5:18 PM · network
kp accepted D61037: if_epair: Hash the IP header, not the Ethernet header, for fanout.
Wed, Nov 18, 5:10 PM
kp accepted D61674: pf: Do not report a packet the outbound pass sent as dropped.

That makes sense, and is similar to how fragments are handled during reassembly. (Which is to say, the rest of the stack can cope just fine with us returning PASS and m == NULL.)

Wed, Nov 18, 4:54 PM
kp added a comment to D61413: pf: check anchor termination before stripping slashes.

I've taken my version mostly because it's a little closer to OpenBSD's code. There's nothing wrong with this patch, but I'm only fixing this once.

Wed, Nov 18, 4:33 PM
kp accepted D61409: pf: reject table anchors with empty path components.

Thanks for the fix!

Wed, Nov 18, 4:33 PM
kp accepted D61440: dummynet: validate object length before fixed-size copies in do_config().
Wed, Nov 18, 2:18 PM

Wed, Nov 11

kp added a comment to D61409: pf: reject table anchors with empty path components.

I’ll try to review this in detail next week, when I’m back.

Wed, Nov 11, 8:01 AM
kp added a comment to D61413: pf: check anchor termination before stripping slashes.

Coincidentally I have a very similar patch I wrote yesterday.
I’ll figure out if I like yours or mine better when I’m back next week.

Wed, Nov 11, 5:38 AM

Mon, Nov 9

kp committed rG8c9be10c1c3e: pf tests: make return.py more robust.
Mon, Nov 9, 9:27 PM
kp committed R11:9a3819cd2a2d: net/libpfctl: add 15.2, remove 15.0.
Mon, Nov 9, 8:59 PM

Mon, Nov 2

kp accepted D61041: netinet6: Send redirects from ip6_tryforward().

LGTM

Mon, Nov 2, 4:49 PM
kp committed rGa94d4deae39b: pf: allows TCP RST packets in the backwards window if ACK matches.
Mon, Nov 2, 4:08 PM
kp committed rGe4a2b19aa961: pfctl: err(3) family functions should not be used with trailing \n.
Mon, Nov 2, 1:25 PM
kp committed rG73bd8d4bf618: pf: fix DIOCXBEING/DIOCXROLLBACK/DIOCXCOMMIT error handling.
Mon, Nov 2, 1:25 PM
kp committed rG240a76704b49: if_pfsync: fix mbuf leaks on errors.
Mon, Nov 2, 1:25 PM
kp committed rG04b6d3e0be8c: if_pfsync: add missing unlock.
Mon, Nov 2, 1:25 PM
kp committed rGd8b2c298a117: pfsync: improve underflow check.
Mon, Nov 2, 1:25 PM
kp committed rGaf5313249730: pf: don't leak transaction elements on error.
Mon, Nov 2, 1:25 PM

Fri, Oct 30

kp accepted D61042: netinet6: Do not count a packet a hook consumed as discarded in ip6_tryforward().
Fri, Oct 30, 4:26 PM
kp accepted D61039: netinet6: Decrement the hop limit before the outbound hooks in ip6_tryforward().
Fri, Oct 30, 4:25 PM
kp accepted D61033: netinet6: Set PFIL_FWD in ip6_tryforward().
Fri, Oct 30, 4:24 PM
kp accepted D61034: netinet6: Check the hop limit after pfil in ip6_tryforward().
Fri, Oct 30, 2:57 PM
kp added a comment to D61037: if_epair: Hash the IP header, not the Ethernet header, for fanout.

Should we try to account for a VLAN header here too?

Fri, Oct 30, 2:22 PM
kp added inline comments to D60894: pf: optimize state key comparison on amd4.
Fri, Oct 30, 2:17 PM
kp committed rGc6a520af95b2: pfsync: improve handling of large packets.
Fri, Oct 30, 2:15 PM
kp closed D60950: pfsync: avoid overflow on different timeouts.
Fri, Oct 30, 2:15 PM
kp committed rG78b620b781b0: pfsync: avoid underflow on different timeouts.
Fri, Oct 30, 2:15 PM
kp committed rGa94a6326507c: pf tests: exercise pfctl -l across a privilege drop (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG3d5bd2cf202c: authpf: deny tracing of the pfctl child (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG674932048a15: authpf: pass the privileged Netlink socket to pfctl (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG87a5d76973ca: pfctl: add -l to use an inherited Netlink socket (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG727e413ff3f1: libpfctl: add pfctl_open_from_nl_fd() and pfctl_nl_fd() (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rGe4c78de63e58: netlink_snl: add snl_init_fd() to adopt an already open socket (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG489ded6d5231: netlink_snl: make snl_free() safe to call twice (authored by Avinash Duduskar <avinash.duduskar@gmail.com>).
Fri, Oct 30, 2:08 PM
kp committed rG2e9ac12e9793: pf: fix pf_krule_item memory leak during counters:match_fail.
Fri, Oct 30, 12:22 PM
kp committed rG9e7d55570f69: pf: remove armv7-specific counter code.
Fri, Oct 30, 12:22 PM
kp committed rG2636cc0414fd: pf: have DIOCXBEGIN/DIOCXROLLBACK/DIOCXCOMMIT use the new functions.
Fri, Oct 30, 12:21 PM
kp committed rGa7aad5bbcdf7: pf: convert DIOCXBEGIN, DIOCXROLLBACK, DIOCXCOMMIT to netlink.
Fri, Oct 30, 12:21 PM
kp added a comment to D60970: carp: Fix packet size checks in carp6_input().

Other than Mark's remark I think this looks good.

Fri, Oct 30, 11:04 AM
kp added a comment to D60971: move SEC_TO_NSEC() out of pf code.

Other than not removing the pfvar.h include I'm happy with the pf changes, but please try to get someone to okay the addition in sys/time.h too.

Fri, Oct 30, 10:52 AM

Thu, Oct 29

kp committed rGc7523e8cfbd0: tcp: fix incorrect assertion.
Thu, Oct 29, 8:42 AM

Oct 21 2026

kp requested review of D60950: pfsync: avoid overflow on different timeouts.
Oct 21 2026, 7:19 PM

Oct 20 2026

kp committed rG820804014074: pf: first-match-wins for nat rules, even in anchors.
Oct 20 2026, 1:58 PM
kp added a comment to D60894: pf: optimize state key comparison on amd4.

Do we have measurements of what difference this makes?

Oct 20 2026, 1:50 PM
kp accepted D60876: pf: Keep every chunk of a table that a ruleset defines.
Oct 20 2026, 11:35 AM
kp committed rGa2a0e5e0e38f: pf: check extension header length..
Oct 20 2026, 7:25 AM
kp committed rG3cbfe09ea3a0: pf: check AH header length..
Oct 20 2026, 7:25 AM

Oct 19 2026

kp added a comment to D60834: if_veb: Add veb(4) pseudo network device.

The commit message needs to answer the 'why' question.
Why do we want this? We already have if_bridge, what does veb do that if_bridge does not?

Oct 19 2026, 8:02 AM · network

Oct 16 2026

kp committed rG294dc0464c3b: pf: only log that we're not creating a tag in verbose mode.
Oct 16 2026, 7:16 AM

Oct 15 2026

kp accepted D60530: pf: Remove a table entry regardless of its mark.
Oct 15 2026, 6:06 PM
kp accepted D60522: pf: apply a netlink table replace once all addresses have arrived.
Oct 15 2026, 6:06 PM

Oct 13 2026

kp accepted D60370: pf: Do not hash pool address pointers into rule hashes.
Oct 13 2026, 7:11 PM
kp accepted D60651: pf: Register the netlink family only while the vnets are set up.
Oct 13 2026, 7:10 PM
kp accepted D60532: pf: Free a table entry that cannot be routed.
Oct 13 2026, 3:36 PM
kp accepted D60542: pf: Do not corrupt neighbour advertisements when translating.
Oct 13 2026, 3:36 PM
kp added a comment to D60543: pf: Parse the GETSTATES state id as 64 bits.

Good, ship it ;)

Oct 13 2026, 3:03 PM
kp accepted D60543: pf: Parse the GETSTATES state id as 64 bits.

That looks correct, but I don't quite follow the commit message. As far as I can tell nothing in userspace ever sends PF_ST_ID.

Oct 13 2026, 2:48 PM
kp accepted D60544: libpfctl: Return max_win and mss of state peers.

I suspect I left those out because nothing uses them, but we may as well add them to libpfctl anyway.

Oct 13 2026, 2:45 PM
kp accepted D60537: pfsync: Do not reference the tag of an imported state.
Oct 13 2026, 2:19 PM
kp added a comment to D60535: pf: Free unreferenced interfaces after dropping pfi_unlnkdkifs_mtx.

Given that we (Netgate certainly, and FreeBSD mostly too) no longer care about armv7 I wonder if we shouldn't back out the armv7 specific code from pf entirely at this point.

Oct 13 2026, 1:42 PM
kp accepted D60531: pf: Set the reassembly flags under the rules lock.
Oct 13 2026, 1:32 PM
kp committed rGb5219c068fbc: pf: first-match-wins for nat rules, even in anchors.
Oct 13 2026, 1:31 PM

Oct 12 2026

kp accepted D60526: pf: Change source limiter tables from a task.
Oct 12 2026, 4:39 PM
kp committed rGb4d2c9835c0e: pf: check AH header length..
Oct 12 2026, 4:06 PM
kp committed rGccb19b359aae: pf: check extension header length..
Oct 12 2026, 4:06 PM
kp committed rG25f04bf42786: pf: do not free the caller's ruleset when attaching a table fails.
Oct 12 2026, 4:06 PM
kp accepted D60529: pf: Drain the overload task before a vnet's rules are freed.
Oct 12 2026, 11:41 AM