Page MenuHomeFreeBSD

kp (Kristof Provost)
Troubleshooter

Projects

User Details

User Since
Sep 28 2014, 7:22 PM (522 w, 6 d)

Recent Activity

Yesterday

kp accepted D46958: dummymbuf: Fix code style.

I was going to suggest not capitalising 'Fix', but apparently I am wrong about what our convention is there. See https://freebsdfoundation.org/wp-content/uploads/2020/11/Writing-Commit-Messages.pdf where Ed explicitly recommends "Capitalize the first letter of the subject", and I'm not going to argue with Ed.

Sat, Oct 5, 1:39 PM
kp updated the diff for D46871: sys: add conf/std.debug, generic debugging options.
  • fix whitespace
  • add a few more (some commented out) debug options
Sat, Oct 5, 9:20 AM

Fri, Oct 4

kp added inline comments to D46871: sys: add conf/std.debug, generic debugging options.
Fri, Oct 4, 9:05 PM
kp updated the diff for D46871: sys: add conf/std.debug, generic debugging options.

More comment fixes & remove unwanted changes in i386/MINIMAL

Fri, Oct 4, 1:34 PM
kp updated the diff for D46871: sys: add conf/std.debug, generic debugging options.

Fix RISC-V comment.

Fri, Oct 4, 1:32 PM
kp updated the diff for D46871: sys: add conf/std.debug, generic debugging options.
Fri, Oct 4, 1:30 PM
kp added a comment to D46871: sys: add conf/std.debug, generic debugging options.

This patch is against stable/14, not main

I very much want this (and for release media to start including a kernel.debug by default when possible, cc releng), but sys/conf/std.debug already exists on main. In particular, you've added a few extra _DEBUG options here which aren't in GENERIC. I think that's probably fine, but ideally we'd start by MFCing the commit which added std.debug.

Fri, Oct 4, 1:28 PM
kp requested review of D46941: pf: move the mbuf into struct pf_pdesc too.
Fri, Oct 4, 12:45 PM
kp requested review of D46940: pf: remove switch (af) default cases.
Fri, Oct 4, 12:45 PM
kp requested review of D46939: pf: put kif into struct pf_pdesc.
Fri, Oct 4, 12:45 PM
kp requested review of D46938: pf: convert DIOCGETRULESET to netlink.
Fri, Oct 4, 12:45 PM
kp requested review of D46937: pf: consolidate pf function parameters.
Fri, Oct 4, 12:45 PM
kp requested review of D46936: pf: unify some IPv4/IPv6 code in pf_setup_pdesc().
Fri, Oct 4, 12:44 PM
kp requested review of D46933: pfctl: avoid possible SIGSEGV when wrong tos option.
Fri, Oct 4, 12:44 PM
kp requested review of D46935: pf: move pf_test_rule() out of pf_setup_pdesc().
Fri, Oct 4, 12:44 PM
kp requested review of D46934: pf: deduplicate IPv4 and IPv6 code that handles fragments.
Fri, Oct 4, 12:44 PM
kp requested review of D46932: pf.conf.5: sync documentation with code on the matter of max state limit behavior.
Fri, Oct 4, 12:44 PM
kp requested review of D46931: pf: remove the last hand-rolled IPv6 extension header loop.
Fri, Oct 4, 12:44 PM
kp requested review of D46930: pf: convert DIOCGETRULESETS to netlink.
Fri, Oct 4, 12:44 PM
kp requested review of D46926: pfctl: correctly print skip steps in -vv mode.
Fri, Oct 4, 12:44 PM
kp requested review of D46929: pf: stricter address family checks in icmp-in-icmp.
Fri, Oct 4, 12:43 PM
kp requested review of D46928: pf: add ttl to pf_pdesc.
Fri, Oct 4, 12:43 PM
kp requested review of D46927: pf: ensure that we won't enter an endless loop.
Fri, Oct 4, 12:43 PM
kp requested review of D46925: pf: reduce IPv6 header parsing code duplication.
Fri, Oct 4, 12:43 PM
kp accepted D46894: pflogd: Move struct definitions out of header file.
Fri, Oct 4, 12:13 PM

Thu, Oct 3

kp committed rG65074f6f3115: pf: fix double ruleset evaluation for fragments sent to dummynet (authored by vegeta_tuxpowered.net).
pf: fix double ruleset evaluation for fragments sent to dummynet
Thu, Oct 3, 11:59 AM
kp closed D46880: pf: Fix double ruleset evaluation for fragments sent to dummynet.
Thu, Oct 3, 11:58 AM

Wed, Oct 2

kp committed rGe5c64b2662ff: pf: replace union pf_krule_ptr with struct pf_krule in in-kernel structs (authored by vegeta_tuxpowered.net).
pf: replace union pf_krule_ptr with struct pf_krule in in-kernel structs
Wed, Oct 2, 5:54 PM
kp closed D46868: pf: Replace union pf_krule_ptr with struct pf_krule in in-kernel structs.
Wed, Oct 2, 5:54 PM
kp accepted D46877: pf: Fix NOINET and NOINET6 build..
Wed, Oct 2, 5:51 PM
kp accepted D46877: pf: Fix NOINET and NOINET6 build..

I can't reproduce the build failure, but this is fine.

Wed, Oct 2, 4:01 PM
kp updated the diff for D46868: pf: Replace union pf_krule_ptr with struct pf_krule in in-kernel structs.

Completely remove pf_krule_ptr

Wed, Oct 2, 1:32 PM
kp added inline comments to D46875: handbook: add warning about custom kernel configs.
Wed, Oct 2, 1:27 PM
kp added a comment to D46868: pf: Replace union pf_krule_ptr with struct pf_krule in in-kernel structs.

I like this, but we should go all the way and remove the pf_krule_ptr entirely. It's strictly a kernel structure, so there's no reason to keep it:

Wed, Oct 2, 12:43 PM
kp committed rG6bbef793552c: pf: Remove struct pf_pdesc->nat_rule (authored by vegeta_tuxpowered.net).
pf: Remove struct pf_pdesc->nat_rule
Wed, Oct 2, 12:21 PM
kp committed rGc17a0f62da17: pf tests: use unique pid files for inetd processes (authored by kp).
pf tests: use unique pid files for inetd processes
Wed, Oct 2, 12:21 PM
kp closed D46867: pf: Remove struct pf_pdesc->nat_rule.
Wed, Oct 2, 12:21 PM
kp requested review of D46871: sys: add conf/std.debug, generic debugging options.
Wed, Oct 2, 9:51 AM
kp added a comment to D46870: (draft) conf: GENERIC: Add a disclaimer on customized kernel configurations.
In D46870#1068713, @thj wrote:

I am not sure if we as a community want to be this direct/aggressive. I worry that we have gone so long being accommodating that a warning like this is too much.

Wed, Oct 2, 9:43 AM
kp added a comment to D46864: WIP: pf: Fix table counters.

Interesting observations.

Wed, Oct 2, 6:34 AM

Tue, Oct 1

kp committed rG288bec2b2bd1: pf: fold pf_test_fragment() into pf_test_rule() (authored by kp).
pf: fold pf_test_fragment() into pf_test_rule()
Tue, Oct 1, 10:12 AM
kp committed rG1b745d8b23e4: pf: move normalisation into pf_setup_pdesc() (authored by kp).
pf: move normalisation into pf_setup_pdesc()
Tue, Oct 1, 10:12 AM
kp closed D46705: pf: fold pf_test_fragment() into pf_test_rule().
Tue, Oct 1, 10:12 AM
kp closed D46707: pf: move normalisation into pf_setup_pdesc().
Tue, Oct 1, 10:12 AM

Mon, Sep 30

kp committed rG8e3d252901e8: pf: Split pf_map_addr() (authored by vegeta_tuxpowered.net).
pf: Split pf_map_addr()
Mon, Sep 30, 10:58 AM
kp closed D46776: pf: Split pf_map_addr() .
Mon, Sep 30, 10:57 AM
kp committed rG3ec4fbdd98f2: pf tests: Add test for max-src-states (authored by vegeta_tuxpowered.net).
pf tests: Add test for max-src-states
Mon, Sep 30, 9:07 AM
kp closed D46840: pf tests: Add test for max-src-states.
Mon, Sep 30, 9:06 AM

Sun, Sep 29

kp committed rGb26edf615c91: libpfctl: ensure we return useful error codes (authored by kp).
libpfctl: ensure we return useful error codes
Sun, Sep 29, 7:26 PM
kp committed rGe3a9f4123f76: libpfctl: ensure we return useful error codes (authored by kp).
libpfctl: ensure we return useful error codes
Sun, Sep 29, 7:26 PM
kp added inline comments to D46840: pf tests: Add test for max-src-states.
Sun, Sep 29, 3:50 PM

Sat, Sep 28

kp committed rG37881f65eacd: pf: pf_clear_srcnodes() is always called with NULL (authored by vegeta_tuxpowered.net).
pf: pf_clear_srcnodes() is always called with NULL
Sat, Sep 28, 7:24 PM
kp closed D46819: pf: pf_clear_srcnodes() is always called with NULL.
Sat, Sep 28, 7:23 PM
kp committed rG6ffd4aeba5b9: pf tests: add a test for max-src-conn (authored by vegeta_tuxpowered.net).
pf tests: add a test for max-src-conn
Sat, Sep 28, 4:56 PM
kp closed D46798: pf tests: Add a test for max-src-conn.
Sat, Sep 28, 4:55 PM
kp added a comment to D46683: Introduce ip_af_t.

I see no good reason to ifdef pieces of enum. Makes sense to disable some code for NOINET or NOINET6 kernels, but what's the point in disabling a piece of declaration?

Sat, Sep 28, 4:07 PM

Fri, Sep 27

kp abandoned D46572: opencrypto: assert that mbufs are writable.
Fri, Sep 27, 10:27 PM
kp closed D46706: pf: make pf_setup_pdesc() a static function.
Fri, Sep 27, 10:19 PM
kp committed rGf8e994296328: pf: remove ip(6) header argument from pf_reassemble(6)() (authored by kp).
pf: remove ip(6) header argument from pf_reassemble(6)()
Fri, Sep 27, 10:18 PM
kp committed rG86fc6f838ed2: pf: make pf_setup_pdesc() a static function (authored by kp).
pf: make pf_setup_pdesc() a static function
Fri, Sep 27, 10:18 PM
kp committed rG27f54be50bba: pf: merge pf_test() and pf_test6() (authored by kp).
pf: merge pf_test() and pf_test6()
Fri, Sep 27, 10:17 PM
kp committed rG39f615e90ca3: pf: rename the pf_pdesc field rh_cnt to badopts (authored by kp).
pf: rename the pf_pdesc field rh_cnt to badopts
Fri, Sep 27, 10:17 PM
kp closed D46652: pf: remove ip(6) header argument from pf_reassemble(6)().
Fri, Sep 27, 10:17 PM
kp closed D46649: pf: merge pf_test() and pf_test6().
Fri, Sep 27, 10:17 PM
kp closed D46650: pf: rename the pf_pdesc field rh_cnt to badopts.
Fri, Sep 27, 10:17 PM
kp committed rG7fe42038b269: pf: fix max-src-conn when rules are added via netlink (authored by vegeta_tuxpowered.net).
pf: fix max-src-conn when rules are added via netlink
Fri, Sep 27, 12:31 PM
kp closed D46797: pf: Fix max-src-conn when rules are added via netlink.
Fri, Sep 27, 12:30 PM
kp added a comment to D46798: pf tests: Add a test for max-src-conn.

I'm seeing this test fail quite often (though not always) because it can't find the 4204 state. So things appear to be doing what we'd expect, but there's no state. I'm not sure why, because it looks like we only check max_src_conn a state actually exists, so we ought to see it in the state table too. Sometimes that's the case, but not always.

Fri, Sep 27, 12:28 PM
kp committed rGe8ff5e565c24: pf: fix incorrect parsing of state export filter (authored by kp).
pf: fix incorrect parsing of state export filter
Fri, Sep 27, 12:01 PM
kp added a comment to D46683: Introduce ip_af_t.

The pf bits are in D46809

Fri, Sep 27, 9:59 AM
kp requested review of D46809: pf: start using ip_af_t.
Fri, Sep 27, 9:54 AM
kp retitled D46683: Introduce ip_af_t from Introduce ip_version_t to Introduce ip_af_t.
Fri, Sep 27, 9:54 AM
kp updated the diff for D46683: Introduce ip_af_t.

Rename to ip_af_t
Split out the pf changes to a separate commit

Fri, Sep 27, 9:53 AM
kp added a comment to D46797: pf: Fix max-src-conn when rules are added via netlink.

Thanks for spotting (and fixing) this.

Fri, Sep 27, 8:27 AM

Thu, Sep 26

kp added inline comments to D46797: pf: Fix max-src-conn when rules are added via netlink.
Thu, Sep 26, 8:47 PM
kp committed rGf28d5ac5c4a4: pf tests: fix max_states test (authored by vegeta_tuxpowered.net).
pf tests: fix max_states test
Thu, Sep 26, 3:19 PM
kp closed D46795: pf tests: Fix off-by-one error in max states.
Thu, Sep 26, 3:18 PM
kp requested changes to D46795: pf tests: Fix off-by-one error in max states.
Thu, Sep 26, 1:02 PM
kp added a comment to D46795: pf tests: Fix off-by-one error in max states.

There's something else going on here. The original check was correct.

Thu, Sep 26, 11:58 AM
kp added inline comments to D46786: m_unshare: Fail with a NULL return if the chain contains unmapped mbufs.
Thu, Sep 26, 8:20 AM
kp added inline comments to D46785: netinet*: Add assertions for some places that don't support M_EXTPG mbufs.
Thu, Sep 26, 8:15 AM
kp accepted D46784: ktls: Mark mbufs containing outbound encrypted TLS records read-only.

That seems sane to me.

Thu, Sep 26, 8:06 AM

Wed, Sep 25

kp committed rG67bd1d072190: pf tests: Add max states test (authored by vegeta_tuxpowered.net).
pf tests: Add max states test
Wed, Sep 25, 3:27 PM
kp closed D46774: pf tests: Add max states test.
Wed, Sep 25, 3:27 PM
kp added inline comments to D46774: pf tests: Add max states test.
Wed, Sep 25, 1:12 PM
kp added inline comments to D46774: pf tests: Add max states test.
Wed, Sep 25, 12:52 PM
kp committed rG85ea6992935c: pf tests: Make TCP port numbers configurable (authored by vegeta_tuxpowered.net).
pf tests: Make TCP port numbers configurable
Wed, Sep 25, 12:36 PM
kp committed rG6d51791d2832: pf: remove pointless CURVNET_SET (authored by kp).
pf: remove pointless CURVNET_SET
Wed, Sep 25, 12:35 PM
kp committed rG905db4aa8877: pf: dedupe layer 4 protocol code in pf_setup_pdesc() (authored by kp).
pf: dedupe layer 4 protocol code in pf_setup_pdesc()
Wed, Sep 25, 12:35 PM
kp closed D46648: pf: remove pointless CURVNET_SET.
Wed, Sep 25, 12:35 PM
kp closed D46647: pf: dedupe layer 4 protocol code in pf_setup_pdesc().
Wed, Sep 25, 12:35 PM
kp closed D46773: pf tests: Make TCP port numbers configurable.
Wed, Sep 25, 12:35 PM
kp committed rGdd04fa71a8cb: pf: remove unused argument 'h' from various function (authored by kp).
pf: remove unused argument 'h' from various function
Wed, Sep 25, 12:35 PM
kp closed D46598: pf: remove unused argument 'h' from various function.
Wed, Sep 25, 12:35 PM
kp closed D46597: pf: merge pf_scrub_ip() and pf_scrub_ip6().
Wed, Sep 25, 12:35 PM
kp committed rG4f9e688708f1: pf: merge pf_scrub_ip() and pf_scrub_ip6() (authored by kp).
pf: merge pf_scrub_ip() and pf_scrub_ip6()
Wed, Sep 25, 12:35 PM
kp committed rG6aeaadf68def: pf tests: Remove nargs from single arguments (authored by vegeta_tuxpowered.net).
pf tests: Remove nargs from single arguments
Wed, Sep 25, 10:44 AM
kp closed D46772: pf tests: Remove nargs from single arguments.
Wed, Sep 25, 10:44 AM
kp added a comment to D46772: pf tests: Remove nargs from single arguments.

This seems to include a move to sys/netpfil/common/pft_ping.py, but not the makefile changes that would require. I assume the move is not intended to be part of this patch?

Wed, Sep 25, 9:32 AM
kp added a comment to D46683: Introduce ip_af_t.
In D46683#1066400, @bz wrote:
diff --git sys/sys/socket.h sys/sys/socket.h
index a1b220ce4bae..f773f970b779 100644
--- sys/sys/socket.h
+++ sys/sys/socket.h
@@ -216,12 +216,14 @@ struct accept_filter_arg {
 #define        AF_UNIX         1               /* standardized name for AF_LOCAL */
-#define        AF_INET         2               /* internetwork: UDP, TCP, etc. */
+typedef enum {
+       AF_INET         = 2,            /* internetwork: UDP, TCP, etc. */
+       AF_INET6        = 28,           /* IPv6 */
+} ip_version_t;
+

Otherwise if you wanted a real "IP Version Type" then you'd define IPV4 as 4 and IPV6 as 6 but that's not what you are actually after, so maybe the enum is misnamed and should really be ip_af_t (whether here or in in.h)? If you call it af_ip_t it also perfectly fits in the above context.

Wed, Sep 25, 8:30 AM