Page MenuHomeFreeBSD
Feed Advanced Search

May 14 2021

melifaro committed rG76cfc6fa0d81: Fix a use after free in update_rtm_from_rc(). (authored by melifaro).
Fix a use after free in update_rtm_from_rc().
May 14 2021, 4:11 PM
melifaro accepted D30255: style: Relax 80 column rule.
May 14 2021, 10:24 AM

May 13 2021

melifaro added inline comments to D28705: Fix ifa refcount leak in ifa_ifwithnet().
May 13 2021, 4:44 PM

May 10 2021

melifaro accepted D30191: ipfw.8: Fix table example.
May 10 2021, 8:56 PM

May 7 2021

melifaro committed rGaad59c79f5f2: Fix panic when trying to delete non-existent gateway in multipath route. (authored by melifaro).
Fix panic when trying to delete non-existent gateway in multipath route.
May 7 2021, 8:50 PM

May 4 2021

melifaro committed rG939c41f3b89b: Fix drace CTF for the rib_head. (authored by melifaro).
Fix drace CTF for the rib_head.
May 4 2021, 9:43 PM
melifaro committed rG972fcfb34b0d: [fib algo] Update fib_gen counter under FIB_MOD_LOCK. (authored by melifaro).
[fib algo] Update fib_gen counter under FIB_MOD_LOCK.
May 4 2021, 9:43 PM
melifaro committed rGd0666c87184f: Add rib_walk_from() wrapper for selective rib tree traversal. (authored by melifaro).
Add rib_walk_from() wrapper for selective rib tree traversal.
May 4 2021, 9:43 PM
melifaro committed rG83add84c00ed: [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. (authored by melifaro).
[fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI.
May 4 2021, 9:43 PM
melifaro committed rG3fd9848f1593: [rtsock] Enforce netmask/RTF_HOST consistency. (authored by melifaro).
[rtsock] Enforce netmask/RTF_HOST consistency.
May 4 2021, 9:43 PM
melifaro accepted D30096: Revise FIB lookups per second benchmarking routines.
May 4 2021, 9:22 PM
melifaro accepted D29821: Introduce DXR IPv4 LPM as a fib_algo module..
May 4 2021, 8:33 PM
melifaro added a reviewer for D29821: Introduce DXR IPv4 LPM as a fib_algo module.: network.
May 4 2021, 8:32 PM
melifaro accepted D29821: Introduce DXR IPv4 LPM as a fib_algo module..
May 4 2021, 8:32 PM
melifaro accepted D30096: Revise FIB lookups per second benchmarking routines.
May 4 2021, 8:50 AM

May 1 2021

melifaro added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 1 2021, 10:13 AM ยท network

Apr 29 2021

melifaro accepted D29821: Introduce DXR IPv4 LPM as a fib_algo module..

LGTM, please see some comments inline :-)
Also: do you have any preference/requirements on the commit message?

Apr 29 2021, 9:53 PM
melifaro committed rG553c1513a8a5: Fix build with gcc (authored by se).
Fix build with gcc
Apr 29 2021, 9:18 AM
melifaro committed rG59b3b210a69e: [fib algo] always commit static routes synchronously. (authored by melifaro).
[fib algo] always commit static routes synchronously.
Apr 29 2021, 9:18 AM
melifaro committed rG2c0d16218efa: Fix NOINET[6],!VIMAGE builds after FIB_ALGO addition to GENERIC (authored by melifaro).
Fix NOINET[6],!VIMAGE builds after FIB_ALGO addition to GENERIC
Apr 29 2021, 9:18 AM
melifaro committed rG1899138d5ad5: Fix rib generation count for fib algo. (authored by melifaro).
Fix rib generation count for fib algo.
Apr 29 2021, 9:18 AM
melifaro committed rGa423e945c70b: Fix NOINET[6] build after enabling FIB_ALGO in GENERIC. (authored by melifaro).
Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
Apr 29 2021, 9:18 AM
melifaro committed rG6fa0160556e3: Add batched update support for the fib algo. (authored by melifaro).
Add batched update support for the fib algo.
Apr 29 2021, 9:18 AM
melifaro committed rGa07e7856e4cd: fib algo: do not reallocate datapath index for datapath ptr update. (authored by melifaro).
fib algo: do not reallocate datapath index for datapath ptr update.
Apr 29 2021, 9:18 AM
melifaro committed rGc971873acef4: Implement better rebuild-delay fib algo policy. (authored by melifaro).
Implement better rebuild-delay fib algo policy.
Apr 29 2021, 9:18 AM
melifaro committed rGb77bee7642ae: Appease -Wsign-compare in radix.c (authored by melifaro).
Appease -Wsign-compare in radix.c
Apr 29 2021, 9:18 AM
melifaro committed rGc1ce6196d289: Allow to specify debugnet fib in sysctl/tunable. (authored by melifaro).
Allow to specify debugnet fib in sysctl/tunable.
Apr 29 2021, 9:18 AM
melifaro committed rG3d851bd03698: Always use inp fib in the inp_lookup_mcast_ifp(). (authored by melifaro).
Always use inp fib in the inp_lookup_mcast_ifp().
Apr 29 2021, 9:18 AM

Apr 28 2021

melifaro committed rG41ce0e34ea42: [fib algo] Update fib_gen counter under FIB_MOD_LOCK. (authored by melifaro).
[fib algo] Update fib_gen counter under FIB_MOD_LOCK.
Apr 28 2021, 8:24 PM
melifaro added a comment to D29821: Introduce DXR IPv4 LPM as a fib_algo module..

kldload dxr
sysctl net.route.algo should list dxr
sysctl net.route.algo.inet.algo=dxr should forcibly select it

Apr 28 2021, 3:10 PM
melifaro closed D29971: Add rib_walk_from() wrapper for selective rib tree traversal.
Apr 28 2021, 8:17 AM
melifaro committed rGf9668e42b44f: Add rib_walk_from() wrapper for selective rib tree traversal. (authored by melifaro).
Add rib_walk_from() wrapper for selective rib tree traversal.
Apr 28 2021, 8:17 AM

Apr 27 2021

melifaro abandoned D29899: Add rib_lookup_prefix_locked() and rib_walk_from_locked() public wrappers..
Apr 27 2021, 10:19 PM
melifaro closed D29969: [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI.
Apr 27 2021, 10:11 PM
melifaro committed rG8a0d57baecf7: [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. (authored by melifaro).
[fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI.
Apr 27 2021, 10:11 PM
melifaro accepted D28705: Fix ifa refcount leak in ifa_ifwithnet().
Apr 27 2021, 8:32 PM
melifaro committed rGfbe149eef7d8: Fix rtsock sockaddr alignment. (authored by melifaro).
Fix rtsock sockaddr alignment.
Apr 27 2021, 8:20 PM
melifaro committed rG439d087d0b55: [fib algo] always commit static routes synchronously. (authored by melifaro).
[fib algo] always commit static routes synchronously.
Apr 27 2021, 8:34 AM
melifaro added a comment to D28434: Add FIB_ALGO to GENERIC on amd64/arm64..

Ack. Interesting, local test run worked. Will take a look in the evening.

Should be better with 439d087d0b55.

Apr 27 2021, 8:34 AM
melifaro committed rG25682e6a495f: Fix rtsock sockaddr alignment. (authored by melifaro).
Fix rtsock sockaddr alignment.
Apr 27 2021, 8:34 AM
melifaro added a comment to D28434: Add FIB_ALGO to GENERIC on amd64/arm64..

It's yet another problem related to type definitions and CTF, causing dtrace to bail. In this case, struct rib_head has a conditionally defined member, rnh_gen_rib. FIB_ALGO is defined only when opt_route.h is included, so unless everything that includes route.h also includes opt_route.h, we end up with different definitions for struct rib_head depending on whether opt_route.h is included. I can see two solutions: move FIB_ALGO to opt_global.h so that FIB_ALGO is consistently defined, or make the definition of rnh_gen_fib unconditional. I prefer the second solution since out-of-tree modules could be compiled without FIB_ALGO defined.

Option 2 landed as bc5ef45aec3fa8acf2dd3408cebd207317543a8b. Thank you!

I misread a bit, the problematic definition is in route_var.h, not route.h, and so is not so widely included in the kernel. Indeed, some files in sys/net/route fail to include opt_route.h. It may be sufficient to just fix those, as a third solution.

Apr 27 2021, 8:14 AM
melifaro committed rGbc5ef45aec3f: Fix drace CTF for the rib_head. (authored by melifaro).
Fix drace CTF for the rib_head.
Apr 27 2021, 8:01 AM

Apr 26 2021

melifaro accepted D29989: pf tests: Test automatically generated tables.
Apr 26 2021, 11:57 AM
melifaro committed rGd2f68847a3ea: [fib algo] Do not print algo attach/detach message on boot (authored by melifaro).
[fib algo] Do not print algo attach/detach message on boot
Apr 26 2021, 9:14 AM
melifaro committed rG317387218363: Make gcc happy by initializing error in rib_handle_ifaddr_info(). (authored by melifaro).
Make gcc happy by initializing error in rib_handle_ifaddr_info().
Apr 26 2021, 9:14 AM
melifaro committed rGfe04896da3fb: Improve debugging output on routing tests failure. (authored by melifaro).
Improve debugging output on routing tests failure.
Apr 26 2021, 9:14 AM
melifaro committed rG6f1e5d9169a9: Relax rtsock message restrictions. (authored by melifaro).
Relax rtsock message restrictions.
Apr 26 2021, 9:13 AM
melifaro committed rG98a3c20696f8: Improve error reporting in rtsock.c (authored by melifaro).
Improve error reporting in rtsock.c
Apr 26 2021, 9:13 AM
melifaro committed rG98ea411989e5: Fix typo in rtsock_common.h (authored by melifaro).
Fix typo in rtsock_common.h
Apr 26 2021, 9:13 AM
melifaro committed rG45645b05b887: Fib algo: extend KPI by allowing algo to set datapath pointers. (authored by melifaro).
Fib algo: extend KPI by allowing algo to set datapath pointers.
Apr 26 2021, 9:12 AM
melifaro added a comment to D28434: Add FIB_ALGO to GENERIC on amd64/arm64..

Ack. Interesting, local test run worked. Will take a look in the evening.

Apr 26 2021, 8:58 AM

Apr 25 2021

melifaro committed rG7d222ce3c10b: Fix NOINET[6],!VIMAGE builds after FIB_ALGO addition to GENERIC (authored by melifaro).
Fix NOINET[6],!VIMAGE builds after FIB_ALGO addition to GENERIC
Apr 25 2021, 7:54 PM
melifaro added inline comments to D29971: Add rib_walk_from() wrapper for selective rib tree traversal.
Apr 25 2021, 3:28 PM
melifaro requested review of D29971: Add rib_walk_from() wrapper for selective rib tree traversal.
Apr 25 2021, 12:00 PM
melifaro committed rG67372fb3e06e: Fix NOINET[6] build after enabling FIB_ALGO in GENERIC. (authored by melifaro).
Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
Apr 25 2021, 11:30 AM
melifaro retitled D29969: [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI from [fib algo] Delay algo init during fib growth phase to allow rt_tables_get_rnh_ptr() to always work. to [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI.
Apr 25 2021, 11:18 AM
melifaro retitled D29969: [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI from Delay algo init. to [fib algo] Delay algo init during fib growth phase to allow rt_tables_get_rnh_ptr() to always work..
Apr 25 2021, 11:16 AM
melifaro updated the summary of D29969: [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI.
Apr 25 2021, 11:15 AM
melifaro requested review of D29969: [fib algo] Delay algo init during fib growth phase to allow to reliably use rib KPI.
Apr 25 2021, 10:31 AM
melifaro committed rGc23385612da5: [fib algo] Do not print algo attach/detach message on boot (authored by melifaro).
[fib algo] Do not print algo attach/detach message on boot
Apr 25 2021, 8:58 AM
melifaro committed rGa81e2e7890c2: Make gcc happy by initializing error in rib_handle_ifaddr_info(). (authored by melifaro).
Make gcc happy by initializing error in rib_handle_ifaddr_info().
Apr 25 2021, 8:45 AM

Apr 24 2021

melifaro closed D28434: Add FIB_ALGO to GENERIC on amd64/arm64..
Apr 24 2021, 11:26 PM
melifaro committed rG6993187a8c30: Add FIB_ALGO to GENERIC on amd64/arm64. (authored by melifaro).
Add FIB_ALGO to GENERIC on amd64/arm64.
Apr 24 2021, 11:25 PM
melifaro committed rG5d1403a79a3e: [rtsock] Enforce netmask/RTF_HOST consistency. (authored by melifaro).
[rtsock] Enforce netmask/RTF_HOST consistency.
Apr 24 2021, 11:04 PM
melifaro closed D29958: [rtsock] Enforce netmask/RTF_HOST consistency.
Apr 24 2021, 11:04 PM
melifaro committed rGbddae5c8a64d: Improve debugging output on routing tests failure. (authored by melifaro).
Improve debugging output on routing tests failure.
Apr 24 2021, 11:04 PM
melifaro closed D29957: Improve debugging output on routing tests failure.
Apr 24 2021, 11:04 PM

Apr 23 2021

melifaro added inline comments to D29957: Improve debugging output on routing tests failure.
Apr 23 2021, 11:11 PM
melifaro accepted D29519: Add missing sockaddr length and family validation to various protocols.
Apr 23 2021, 10:49 PM
melifaro updated the summary of D29958: [rtsock] Enforce netmask/RTF_HOST consistency.
Apr 23 2021, 10:00 PM
melifaro requested review of D29958: [rtsock] Enforce netmask/RTF_HOST consistency.
Apr 23 2021, 9:54 PM
melifaro added a reviewer for D29957: Improve debugging output on routing tests failure: network.
Apr 23 2021, 9:37 PM
melifaro retitled D29957: Improve debugging output on routing tests failure from Summary: Improve debugging output on routing tests failure to Improve debugging output on routing tests failure.
Apr 23 2021, 9:37 PM
melifaro updated the diff for D29957: Improve debugging output on routing tests failure.

.

Apr 23 2021, 9:35 PM
melifaro requested review of D29957: Improve debugging output on routing tests failure.
Apr 23 2021, 9:35 PM
melifaro added a comment to D29519: Add missing sockaddr length and family validation to various protocols.

I have a general question about compatibility.
Recently I landed a similar change (D28668) in the rtsock space. It turned out that (older) applications do a lot of weird things: some send the length less than expected (recall sockaddr_in has a weird sin_zero field), some send zero-length, etc.
I'm pretty sure that some applications will break in some weird ways - just because we didn't have these checks in place before.
What's our position here? Do we want to let the apps break and insisting on fixing the code, or we consider guarding these checks under, for example #ifndef COMPAT_FREEBSD12?

Apr 23 2021, 8:44 PM
melifaro accepted D29944: Correctly skip rtsock_l3 test when if_epair is not available.
Apr 23 2021, 10:27 AM

Apr 22 2021

melifaro added a comment to D29900: Fix vtnet TCP lro panic.

For the record: I have no context here and this may not be the best fix (e.g. it may be better to just fill at least the ifp pointer during RX ring init), so committing as a bandaid to fix the panic on boot.

Apr 22 2021, 8:11 AM
melifaro closed D29900: Fix vtnet TCP lro panic.
Apr 22 2021, 8:00 AM
melifaro committed rG4044af03a4e9: Fix vtnet TCP lro panic (authored by melifaro).
Fix vtnet TCP lro panic
Apr 22 2021, 8:00 AM

Apr 21 2021

melifaro updated the summary of D29900: Fix vtnet TCP lro panic.
Apr 21 2021, 10:55 PM
melifaro requested review of D29900: Fix vtnet TCP lro panic.
Apr 21 2021, 10:51 PM
melifaro retitled D29899: Add rib_lookup_prefix_locked() and rib_walk_from_locked() public wrappers. from Add xx to Add rib_lookup_prefix_locked() and rib_walk_from_locked() public wrappers..
Apr 21 2021, 10:49 PM
melifaro requested review of D29899: Add rib_lookup_prefix_locked() and rib_walk_from_locked() public wrappers..
Apr 21 2021, 10:47 PM
melifaro added a comment to D28886: Update rtsock_l3 test after 2fe5a79425c79f7b828acd91da66d97230925fc8.

@melifaro should I split the change to rtm_add_v4_no_rtf_host_failure into a separate review?

Sorry for taking that long! No, that's totally fine!

Just to confirm, rtm_add_v4_no_rtf_host_failure is actually supposed to succeed now?

Yes

Apr 21 2021, 9:26 AM
melifaro accepted D28886: Update rtsock_l3 test after 2fe5a79425c79f7b828acd91da66d97230925fc8.
Apr 21 2021, 8:05 AM
melifaro added a comment to D28886: Update rtsock_l3 test after 2fe5a79425c79f7b828acd91da66d97230925fc8.

@melifaro should I split the change to rtm_add_v4_no_rtf_host_failure into a separate review?

Sorry for taking that long! No, that's totally fine!

Apr 21 2021, 8:02 AM

Apr 20 2021

melifaro added a comment to D28434: Add FIB_ALGO to GENERIC on amd64/arm64..

Going to commit this on Saturday, April 24

Apr 20 2021, 10:43 PM
melifaro closed D29812: Fix rib generation count for fib algo..
Apr 20 2021, 10:42 PM
melifaro committed rG33cb3cb2e321: Fix rib generation count for fib algo. (authored by melifaro).
Fix rib generation count for fib algo.
Apr 20 2021, 10:42 PM
melifaro added inline comments to D29812: Fix rib generation count for fib algo..
Apr 20 2021, 10:18 PM
melifaro updated the diff for D29812: Fix rib generation count for fib algo..

Reflect donner@ comments.

Apr 20 2021, 10:12 PM
melifaro closed D29826: Relax rtsock message restrictions.
Apr 20 2021, 9:35 PM
melifaro committed rGb31fbebeb3d5: Relax rtsock message restrictions. (authored by melifaro).
Relax rtsock message restrictions.
Apr 20 2021, 9:35 PM
melifaro updated the test plan for D29826: Relax rtsock message restrictions.
Apr 20 2021, 9:14 PM
melifaro updated the test plan for D29826: Relax rtsock message restrictions.
Apr 20 2021, 9:02 PM
melifaro abandoned D23051: Allow address lookups in rn_match()..
Apr 20 2021, 8:07 AM
melifaro added inline comments to D29812: Fix rib generation count for fib algo..
Apr 20 2021, 8:03 AM

Apr 19 2021

melifaro updated the diff for D29592: Use interface fib instead of RT_DEFAULT_FIB in nd6_ns_output()..

.

Apr 19 2021, 9:56 PM
melifaro added inline comments to D29592: Use interface fib instead of RT_DEFAULT_FIB in nd6_ns_output()..
Apr 19 2021, 9:44 PM