Page MenuHomeFreeBSD
Feed Advanced Search

Mar 28 2022

firk_cantconnect.ru updated subscribers of D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Mar 28 2022, 9:48 PM · network, Jails, security

Mar 24 2022

jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@jhb : No. The current patch is for -current / main. Do you want me to create such a git repository, or can we use your existing freebsd fork / branch?

Mar 24 2022, 12:28 AM · network

Mar 23 2022

hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@jhb : No. The current patch is for -current / main. Do you want me to create such a git repository, or can we use your existing freebsd fork / branch?

Mar 23 2022, 10:17 PM · network
jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

Do you have this pushed to a public branch somewhere (e.g. on GitHub?) It might be easiest to show you what I am saying about how to handle the crypto for the mixed case if I can generate a patch relative to your branch.

Mar 23 2022, 9:18 PM · network

Mar 16 2022

firk_cantconnect.ru updated the test plan for D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Mar 16 2022, 6:59 PM · network, Jails, security
firk_cantconnect.ru requested review of D34579: Verify directory fds against chroot when receiving them through SCM_RIGHTS.
Mar 16 2022, 10:28 AM · network, Jails, security

Mar 15 2022

firk_cantconnect.ru retitled D34560: Add mount option to disallow creating sockets on filesystem from Add mount option to disallow creating socketson filesystem to Add mount option to disallow creating sockets on filesystem.
Mar 15 2022, 12:25 AM · security, network, Jails

Mar 14 2022

firk_cantconnect.ru requested review of D34560: Add mount option to disallow creating sockets on filesystem.
Mar 14 2022, 11:28 PM · security, network, Jails
firk_cantconnect.ru requested review of D34557: UNIX-socket bind(): distinguish between alive listening socket and random garbage.
Mar 14 2022, 10:58 PM · network

Mar 3 2022

gallatin accepted D32356: ktls: Add full support for TLS RX offloading via network interface..

I think pushing it and fixing the lagg issue after its in the tree is probably the best path forward.

Mar 3 2022, 8:47 PM · network
hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
In D32356#778142, @jhb wrote:

One other structural thing I see is that this still assumes the outbound route path matches the inbound path (using the route to allocate the tag and changing ktls_output_eagain to reset both sessions on a TX failure). But as Drew noted that doesn't work in his setup where the RX and TX can be over different ports in a lagg since the remove end of the lagg can use whatever algorithm it wants to distribute the RX traffic. Instead, we need to store the "leaf" ifp in a new field in m_pkthdr or the like and pass that up through into the socket buffer. At the point of m_demote when we remove the packet header you would want to check for ifp mismatches like we do for output in ip_output_send. Perhaps that can be done as a second round, but then we will just have to revert the ktls_output_eagain() change so I'd rather avoid changing that API just to have to change it back later.

Mar 3 2022, 9:51 AM · network

Feb 24 2022

melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Feb 24 2022, 7:49 AM · network

Feb 23 2022

jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

One other structural thing I see is that this still assumes the outbound route path matches the inbound path (using the route to allocate the tag and changing ktls_output_eagain to reset both sessions on a TX failure). But as Drew noted that doesn't work in his setup where the RX and TX can be over different ports in a lagg since the remove end of the lagg can use whatever algorithm it wants to distribute the RX traffic. Instead, we need to store the "leaf" ifp in a new field in m_pkthdr or the like and pass that up through into the socket buffer. At the point of m_demote when we remove the packet header you would want to check for ifp mismatches like we do for output in ip_output_send. Perhaps that can be done as a second round, but then we will just have to revert the ktls_output_eagain() change so I'd rather avoid changing that API just to have to change it back later.

Feb 23 2022, 11:21 PM · network

Feb 18 2022

hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@melifaro @jhb : ping

Feb 18 2022, 12:30 PM · network

Feb 10 2022

hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Feb 10 2022, 10:23 AM · network
melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Feb 10 2022, 8:50 AM · network

Feb 8 2022

markj added a member for network: markj.
Feb 8 2022, 7:50 PM

Feb 7 2022

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase.

Feb 7 2022, 7:34 PM · network

Jan 31 2022

zec added a watcher for network: zec.
Jan 31 2022, 10:43 PM

Jan 27 2022

gnn removed a member for network: gnn.
Jan 27 2022, 3:55 PM

Jan 26 2022

hselasky reopened D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 26 2022, 1:45 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase patch.

Jan 26 2022, 12:49 PM · network
hselasky closed D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 26 2022, 12:42 PM · network

Jan 25 2022

hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@jhb : Ping.

Jan 25 2022, 10:26 AM · network

Jan 21 2022

zlei added a comment to D33972: Remove lo(4) comments about interface configuration order..

And for VNET(9) jail, it seems the loopback interface is always configured first.
The behavior is inconsistent with the host.

Jan 21 2022, 7:37 AM · network

Jan 20 2022

jmallett requested review of D33972: Remove lo(4) comments about interface configuration order..
Jan 20 2022, 8:03 PM · network

Jan 18 2022

zlei added a watcher for network: zlei.
Jan 18 2022, 10:14 AM

Jan 11 2022

hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@jhb: I noticed in the AESNI crypto implementation that it might call malloc() when using the output buffer feature ... and this should be avoided when we already allocated a buffer.

Jan 11 2022, 8:04 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Take @jhb 's suggestion to encrypt a zero'ed mbuf and then XOR.

Jan 11 2022, 8:02 PM · network
jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

Rework the re-crypt support. The low level APIs in the crypto framework can apparently only do full encryption and full decryption :-( So use that for now.

Jan 11 2022, 7:53 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rework the re-crypt support. The low level APIs in the crypto framework can apparently only do full encryption and full decryption :-( So use that for now.

Jan 11 2022, 3:01 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Fix one more compilation issue.

Jan 11 2022, 12:49 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Fix minor compilation issue.

Jan 11 2022, 12:42 PM · network
hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..
Implement recrypt functions for the open crypto framework, OCF.
Jan 11 2022, 12:26 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Implement native single-pass recrypt function in the open crypto framework.

Jan 11 2022, 12:24 PM · network
hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

Hi John,

Jan 11 2022, 10:36 AM · network

Jan 7 2022

hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 7 2022, 3:15 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Diff reduction.

Jan 7 2022, 2:52 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebased patch.

Jan 7 2022, 2:29 PM · network
hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 7 2022, 2:28 PM · network
hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 7 2022, 1:59 PM · network

Jan 5 2022

jhb added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Jan 5 2022, 11:08 PM · network

Dec 20 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
  • Rebase patch.
  • Properly implement ktls_ocf_tls13_aead_recrypt().
Dec 20 2021, 5:21 PM · network

Dec 15 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..
  • Catch up with latest INP_FREED changes.
  • Fix some compile issues.
Dec 15 2021, 3:08 PM · network
hselasky removed a reviewer for D32356: ktls: Add full support for TLS RX offloading via network interface.: menyy_mellanox.com.
Dec 15 2021, 1:21 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase patch.

Dec 15 2021, 1:20 PM · network

Dec 1 2021

kp closed D33210: if_epair: Also mark the flag of pair b with IFF_KNOWSEPOCH.
Dec 1 2021, 2:59 PM · network
kp accepted D33210: if_epair: Also mark the flag of pair b with IFF_KNOWSEPOCH.

Oooh, good catch.

Dec 1 2021, 2:56 PM · network
zlei added a comment to D33210: if_epair: Also mark the flag of pair b with IFF_KNOWSEPOCH.
In D33210#750542, @kp wrote:

That was done in 3dd5760aa5f876f8a3f0735afeebdf9ee414e1f5, so I'm a little confused where this comes from.

Dec 1 2021, 1:51 PM · network
kp added a comment to D33210: if_epair: Also mark the flag of pair b with IFF_KNOWSEPOCH.

That was done in 3dd5760aa5f876f8a3f0735afeebdf9ee414e1f5, so I'm a little confused where this comes from.

Dec 1 2021, 12:50 PM · network
zlei requested review of D33210: if_epair: Also mark the flag of pair b with IFF_KNOWSEPOCH.
Dec 1 2021, 12:45 PM · network

Nov 25 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase patch for FreeBSD main branch.

Nov 25 2021, 2:18 PM · network

Nov 17 2021

hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Nov 17 2021, 1:49 PM · network

Nov 10 2021

mjg added a member for network: mjg.
Nov 10 2021, 6:26 PM

Nov 8 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Address comment from @markj .

Nov 8 2021, 2:41 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Add support for VLAN.

Nov 8 2021, 2:38 PM · network

Nov 5 2021

markj added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

Is some description of the changes, or a documentation update, available?

Nov 5 2021, 2:08 PM · network
zlei updated the diff for D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

Sorry my bad, resubmit diff as last one include local WIP stashes.

Nov 5 2021, 9:44 AM · network
zlei updated the diff for D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

@bryanv

  1. Removed redundant error initialization.
  2. Moved M_SETFIB(m, sc->vxl_fibnum) out of read lock
Nov 5 2021, 9:39 AM · network

Nov 4 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase patch on top of latest main branch.

Nov 4 2021, 5:58 PM · network
hselasky added a reviewer for D32356: ktls: Add full support for TLS RX offloading via network interface.: markj.
Nov 4 2021, 5:23 PM · network
jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

Some other things we talked about on a call today:

Nov 4 2021, 5:12 PM · network
bryanv added a comment to D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

Left a few comments. It has been a long while since I've dealt with vxlan - and FreeBSD network stack in general - so somebody more familiar should give a correctness review.

Nov 4 2021, 3:33 PM · network
zlei updated the test plan for D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
Nov 4 2021, 10:35 AM · network
kp added a comment to D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
In D32820#741041, @zlei.huang_gmail.com wrote:

I'm glad to do it, but currently if_vxlan is not VNETified and IIUC it is hard to write a regression test for vxlan right now.

Yeah, that's true. If it's not VNET-ready you can't (easily) write tests for it.

Nov 4 2021, 10:32 AM · network
zlei added a comment to D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
In D32820#741027, @kp wrote:

I'm not familiar with the vxlan code but this does look sane.

Let's give Bryan a few more days, but if he's not had the time for this by let's say Monday ping me to commit this.

Also, if someone would feel called to write a regression test for vxlan in general and this new feature specifically I'd love to see it. Something like the basic test in tests/sys/net/if_vlan.sh would already be valuable. (In fact, when I wrote that test it found a panic in the if_vlan code).

I'm glad to do it, but currently if_vxlan is not VNETified and IIUC it is hard to write a regression test for vxlan right now.

Nov 4 2021, 10:25 AM · network
zlei added a comment to D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

LGTM, ty!
Any chance you can fill in the "testing" section?

Nov 4 2021, 10:03 AM · network
zlei updated the test plan for D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
Nov 4 2021, 10:01 AM · network
melifaro accepted D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

LGTM, ty!
Any chance you can fill in the "testing" section?

Nov 4 2021, 8:25 AM · network
kp added a comment to D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

I'm not familiar with the vxlan code but this does look sane.

Nov 4 2021, 8:21 AM · network
gbe accepted D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.

LGTM for the man page part.

Nov 4 2021, 8:20 AM · network
zlei retitled D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB from vxlan: Support socket ioctls SIOC[SG]TUNFIB to vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
Nov 4 2021, 6:55 AM · network

Nov 3 2021

zlei requested review of D32820: vxlan: Add support for socket ioctls SIOC[SG]TUNFIB.
Nov 3 2021, 12:17 PM · network

Nov 2 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Several fixes and minor improvements.

Nov 2 2021, 4:07 PM · network

Oct 29 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Fix uninitialized trail_len variable in offload case.

Oct 29 2021, 1:34 PM · network

Oct 28 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

More updates and fixes.

Oct 28 2021, 2:41 PM · network

Oct 27 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Use next TLS record TCP SN instead of current TLS record. (maybe should pass both so driver can decide)

Oct 27 2021, 12:24 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Fixed some issues with TLS RX resync. Rebased and removed TOE patches.

Oct 27 2021, 9:43 AM · network

Oct 26 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Add support for TLS RX via LAGG.

Oct 26 2021, 11:00 AM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Rebase patch and some fixes.

Oct 26 2021, 9:47 AM · network

Oct 21 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Bugfixes.

Oct 21 2021, 12:45 PM · network

Oct 19 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Implemented split decryption support.

Oct 19 2021, 1:24 PM · network

Oct 18 2021

hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Update ktls_mbuf_crypto_state() function and rebase.

Oct 18 2021, 11:26 AM · network

Oct 17 2021

julian added a comment to D5017: More than 65K connection from single application.

his "feature" is I believe still needed. I am keeping this alive to help me remember the details and to flag it to others.

Oct 17 2021, 11:42 PM · network

Oct 15 2021

hselasky added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

@jhb - just put a note here when your done pushing upstream and I'll rebase.

Oct 15 2021, 11:35 AM · network

Oct 14 2021

jhb added a comment to D32356: ktls: Add full support for TLS RX offloading via network interface..

FYI, I'm going to pull out the non-TOE-specific bits of the toe_tls_rxswitch branch and post them for review. Once you are able to rebase on those that will help narrow down the diff a bit.

Oct 14 2021, 6:30 PM · network
hselasky updated the diff for D32356: ktls: Add full support for TLS RX offloading via network interface..

Include all patches needed on top of the FreeBSD main branch.

Oct 14 2021, 1:39 PM · network

Oct 8 2021

hselasky added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Oct 8 2021, 6:41 PM · network

Oct 7 2021

melifaro added inline comments to D32356: ktls: Add full support for TLS RX offloading via network interface..
Oct 7 2021, 4:09 PM · network
hselasky requested review of D32356: ktls: Add full support for TLS RX offloading via network interface..
Oct 7 2021, 2:52 PM · network

Oct 6 2021

zlei abandoned D30811: Correct loopback route for aliases IP addresses.

Abandoned since it works as intended.

Oct 6 2021, 7:47 AM · network

Aug 23 2021

zlei abandoned D31630: Correct nh_family.

I'd rather not touch it now - there is something WIP that will change this part of the code anyway.

Aug 23 2021, 2:45 AM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

@melifaro Thanks very much!

Aug 23 2021, 2:43 AM · network

Aug 22 2021

melifaro closed D30398: Route IPv4 packets via IPv6 next-hops.
Aug 22 2021, 10:59 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

Done.

Aug 22 2021, 3:49 PM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Rebased on latest main branch.
Moved down RO_GET_FAMILY()

Aug 22 2021, 3:47 PM · network
melifaro added a comment to D31630: Correct nh_family.

I'd rather not touch it now - there is something WIP that will change this part of the code anyway.

Aug 22 2021, 3:34 PM · network

Aug 21 2021

hselasky added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 21 2021, 7:19 PM · network
melifaro added a comment to D31630: Correct nh_family.

It's a bit more complex than that.
For the interface routes (e.g. ones w/o the gateway), you may end up with AF_LINK family in RTAX_GATEWAY.
So, you need to check if RTF_GATEWAY is set prior to using RTAX_GATEWAY.

Aug 21 2021, 6:33 PM · network
zlei requested review of D31630: Correct nh_family.
Aug 21 2021, 3:27 PM · network