Page MenuHomeFreeBSD
Feed Advanced Search

Jul 29 2015

eri retitled D3239: Correct IPSec SA statistic keeping from to Correct IPSec SA statistic keeping.
Jul 29 2015, 8:48 PM · network
eri committed rS286037: Avoid double reference decrement when firewalls force relooping of packets.
Avoid double reference decrement when firewalls force relooping of packets
Jul 29 2015, 8:10 PM
eri closed D3037: Avoid double reference decrement when firewalls force relooping of packets by committing rS286037: Avoid double reference decrement when firewalls force relooping of packets.
Jul 29 2015, 8:10 PM · network
eri committed rS286028: ip_output normalization and fixes.
ip_output normalization and fixes
Jul 29 2015, 6:04 PM
eri closed D3022: ip_output normalization and fixes by committing rS286028: ip_output normalization and fixes.
Jul 29 2015, 6:04 PM · network
eri added a comment to D3037: Avoid double reference decrement when firewalls force relooping of packets.

A test case is for example trying to change the fib to use when forwarding a packet by the firewall.
Also the route need to point to an route that is marked down for some reason...(like interface is not in up state).
Load pf/ipfw and try changing the fib to be used with appropriate rules this will trigger the bug.

Jul 29 2015, 5:54 PM · network
eri committed rS286026: MFC 285325.
MFC 285325
Jul 29 2015, 5:50 PM
eri committed rS286025: MFC r285051.
MFC r285051
Jul 29 2015, 5:46 PM

Jul 27 2015

eri accepted D3222: Only log dropped packets with IP options if log is enabled on rule.

Since i wrote it!

Jul 27 2015, 10:12 PM

Jul 26 2015

eri updated the diff for D3133: Fixes on Bridge+CARP crashes/freezes.

Update to catch up with coments

Jul 26 2015, 7:08 PM · network

Jul 24 2015

eri added a comment to D3037: Avoid double reference decrement when firewalls force relooping of packets.

It would be more visible if you take this into consideration https://reviews.freebsd.org/D3022

Jul 24 2015, 5:26 PM · network
eri added a comment to D3133: Fixes on Bridge+CARP crashes/freezes.

Will submit a new update taking into consideration comments.

Jul 24 2015, 5:19 PM · network

Jul 22 2015

eri added a comment to D3019: Reduce overhead of IPSEC on socket creation and destruction.

Really this is a weird use case though the expiry will not be supported on SPD but SAs will still be the same way usable.
The code also needs a follow-up patch to properly make the SPD matched only by the socket that configured from the policy, today code tries to do something that i am almost complete its broken in behaviour by overriding the policy that might have been applied from application.

Jul 22 2015, 6:59 PM · network

Jul 21 2015

eri committed rS285770: IPSEC, remove variable argument function its already due..
IPSEC, remove variable argument function its already due.
Jul 21 2015, 10:07 PM
eri closed D3080: IPSEC, remove variable argument function its already due by committing rS285770: IPSEC, remove variable argument function its already due..
Jul 21 2015, 10:07 PM · network
eri added a reviewer for D1944: PF and VIMAGE fixes: eri.
Jul 21 2015, 3:52 PM

Jul 20 2015

eri added a reviewer for D3133: Fixes on Bridge+CARP crashes/freezes: hrs.
Jul 20 2015, 6:51 AM · network
eri retitled D3133: Fixes on Bridge+CARP crashes/freezes from to Fixes on Bridge+CARP crashes/freezes.
Jul 20 2015, 6:50 AM · network

Jul 14 2015

eri retitled D3080: IPSEC, remove variable argument function its already due from to IPSEC, remove variable argument function its already due.
Jul 14 2015, 7:09 PM · network

Jul 10 2015

eri retitled D3045: IPSEC forwarding performance improvement from to IPSEC forwarding performance improvement.
Jul 10 2015, 7:31 AM · network

Jul 9 2015

eri committed rS285325: Correct issue presented in r285051,.
Correct issue presented in r285051,
Jul 9 2015, 4:28 PM
eri closed D3036: PR# 201371: Properly initialize variable by committing rS285325: Correct issue presented in r285051,.
Jul 9 2015, 4:28 PM · network
eri added a comment to D3036: PR# 201371: Properly initialize variable.

Confirmed this fixes the issue from PR reporter.

Jul 9 2015, 3:53 PM · network
eri retitled D3037: Avoid double reference decrement when firewalls force relooping of packets from to Avoid double reference decrement when firewalls force relooping of packets.
Jul 9 2015, 12:14 PM · network
eri retitled D3036: PR# 201371: Properly initialize variable from to PR# 201371: Properly initialize variable.
Jul 9 2015, 12:10 PM · network

Jul 8 2015

eri added a comment to D3022: ip_output normalization and fixes.

This was identified during analysis of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201371

Jul 8 2015, 3:38 PM · network
eri retitled D3022: ip_output normalization and fixes from to ip_output normalization and fixes.
Jul 8 2015, 3:37 PM · network
eri added a comment to D3016: Add proper locking to the fpu_ctx allocated by aesni...

Apart the pause its OK.

Jul 8 2015, 1:18 PM

Jul 7 2015

eri retitled D3019: Reduce overhead of IPSEC on socket creation and destruction from to Reduce overhead of IPSEC on socket creation and destruction.
Jul 7 2015, 7:15 PM · network
eri added a comment to D2986: IPSEC SPD searching is slow perform it only once during forwarding.
In D2986#59244, @ae wrote:
In D2986#59234, @eri wrote:

I also understand that this code path also has the purpose of trying to check if the full policy has been applied to the packet but it skips some locking and its not correct, just that the issue is not hit often since SPDs/ISR on IPSEC do not get modified very often as they are read-mostly properties.

Each consumer of SPD entry holds reference to SPD, and there is no way to modify SPD entry. You only can unlink existing entry from the chain and add new entry. So, I don't see the problem here. The main problem is with locking of SAD and ISRs.

Jul 7 2015, 10:53 AM · network
eri added a comment to D2986: IPSEC SPD searching is slow perform it only once during forwarding.

So you are saying someone will only create a IN SP for just discarding packets without any ipsec policy in place?
Sounds like a very weird scenario when the user can just load a module in previous versions of FreeBSD for firewalling!

Jul 7 2015, 10:22 AM · network

Jul 6 2015

eri updated the diff for D2986: IPSEC SPD searching is slow perform it only once during forwarding.

Another update by doing the search on the incoming policies only if there is one outgoing.

Jul 6 2015, 9:40 PM · network

Jul 4 2015

eri added a comment to D2986: IPSEC SPD searching is slow perform it only once during forwarding.

Andrey what is the use case for that?

Jul 4 2015, 6:12 PM · network
eri retitled D2990: Allow aesni(4) module to be loaded on all VMs from to Allow aesni(4) module to be loaded on all VMs.
Jul 4 2015, 9:41 AM
eri updated the diff for D2986: IPSEC SPD searching is slow perform it only once during forwarding.

Simplify logic in ip6_forward.c code by gathering the whole code under the same IPSEC ifdef.
This also allows next change on moving all these code to IPSEC specifc files and helps for the goal of having IPSEC as module.

Jul 4 2015, 8:53 AM · network
eri closed D2964: Avoid doing multiple route lookups for the same destination IP during forwarding.

Somehow the revision is not closed automatically when setting the editing only to source committers.
Do this manually.

Jul 4 2015, 8:16 AM
eri updated the diff for D2986: IPSEC SPD searching is slow perform it only once during forwarding.

After more testing, with help of Olivier, keep the workaround of testing if any SP is present to not impact general forwarding in non-IPSEC usage case.

Jul 4 2015, 8:14 AM · network

Jul 3 2015

eri updated the diff for D2986: IPSEC SPD searching is slow perform it only once during forwarding.

Correct paramter on ip_ipsec to ipsec_in_reject

Jul 3 2015, 9:00 PM · network
eri updated the diff for D2986: IPSEC SPD searching is slow perform it only once during forwarding.

Increment can't forward counter only for forwarded packets.

Jul 3 2015, 6:30 PM · network
eri retitled D2986: IPSEC SPD searching is slow perform it only once during forwarding from to IPSEC SPD searching is slow perform it only once during forwarding.
Jul 3 2015, 6:29 PM · network
eri committed rS285096: Reduce overhead of IPSEC for traffic generated from host.
Reduce overhead of IPSEC for traffic generated from host
Jul 3 2015, 3:32 PM
eri closed D2980: Reduce overhead of IPSEC for traffic generated from host by committing rS285096: Reduce overhead of IPSEC for traffic generated from host.
Jul 3 2015, 3:32 PM · network
eri added a comment to D2980: Reduce overhead of IPSEC for traffic generated from host.

So ae@ do you approve this diff to push it?

Jul 3 2015, 12:19 PM · network
eri added a comment to D2980: Reduce overhead of IPSEC for traffic generated from host.

Yes application can put some SPDs.
The PCB is used as a cache for better performance but really not much gain there since it complicates the code and scenarios needed to be considered.
For me the link can be broken and everything treated as in the forwarding path!

Jul 3 2015, 12:18 PM · network
eri added a comment to D2980: Reduce overhead of IPSEC for traffic generated from host.

Yes, you are right that this is a workaround.

Jul 3 2015, 9:31 AM · network
eri retitled D2980: Reduce overhead of IPSEC for traffic generated from host from to Reduce overhead of IPSEC for traffic generated from host.
Jul 3 2015, 7:14 AM · network

Jul 2 2015

eri committed rS285051: Avoid doing multiple route lookups for the same destination IP during forwarding.
Avoid doing multiple route lookups for the same destination IP during forwarding
Jul 2 2015, 6:10 PM

Jul 1 2015

eri updated the diff for D2964: Avoid doing multiple route lookups for the same destination IP during forwarding.

ae@ i think i spotted the only reference leak i missed.
If not, can you be more verbose?

Jul 1 2015, 6:53 PM

Jun 30 2015

eri added a reviewer for D2964: Avoid doing multiple route lookups for the same destination IP during forwarding: gnn.
Jun 30 2015, 7:47 PM
eri retitled D2964: Avoid doing multiple route lookups for the same destination IP during forwarding from to Avoid doing multiple route lookups for the same destination IP during forwarding.
Jun 30 2015, 7:47 PM

Jun 29 2015

eri added a comment to D2936: Add support for AES modes to IPSec. This patch is as yet incomplete but this is the place where we're starting the discussion..

The only issue i have with jmg@ locking patch is that it provides consistency for userland threads but i still do not see how it solves the panic due to FPU on a migrated thread!

Jun 29 2015, 10:38 AM

Jun 25 2015

eri committed rS284814: Correct r284777 to use proper includes and remove dead code to unbreak kernel….
Correct r284777 to use proper includes and remove dead code to unbreak kernel…
Jun 25 2015, 3:06 PM

Jun 24 2015

eri closed D2847: FAIRQ discipline import from DragonFLY by committing rS284777: ALTQ FAIRQ discipline import from DragonFLY.
Jun 24 2015, 7:16 PM
eri committed rS284777: ALTQ FAIRQ discipline import from DragonFLY.
ALTQ FAIRQ discipline import from DragonFLY
Jun 24 2015, 7:16 PM
eri committed rS284776: MFC r284512: Properly handle locking on the ARP protocol request sending..
MFC r284512: Properly handle locking on the ARP protocol request sending.
Jun 24 2015, 7:06 PM

Jun 18 2015

eri updated the diff for D2847: FAIRQ discipline import from DragonFLY.

Update to take into account the comments on malloc casting and removing bzero().
Added the changes to altq(4) manual page.

Jun 18 2015, 8:31 PM
eri added inline comments to D2847: FAIRQ discipline import from DragonFLY.
Jun 18 2015, 8:28 PM

Jun 17 2015

eri added a comment to D2847: FAIRQ discipline import from DragonFLY.
In D2847#55014, @hiren wrote:
In D2847#54917, @eri wrote:

This is in part of the work for code reduction and patches import from pfSense.
Next will come CodelQ scheduler implementation.

Is that also going to come from DragonFlyBSD?

Jun 17 2015, 7:05 PM
eri updated the diff for D2847: FAIRQ discipline import from DragonFLY.

Remove spl(9) and MALLOC/FREE

Jun 17 2015, 3:06 PM
eri updated subscribers of D2847: FAIRQ discipline import from DragonFLY.
Jun 17 2015, 2:28 PM
eri added a comment to D2847: FAIRQ discipline import from DragonFLY.

This is in part of the work for code reduction and patches import from pfSense.
Next will come CodelQ scheduler implementation.

Jun 17 2015, 2:20 PM
eri retitled D2847: FAIRQ discipline import from DragonFLY from to FAIRQ discipline import from DragonFLY.
Jun 17 2015, 2:19 PM
eri committed rS284512: If there is a system with a bpf consumer running and a packet is wanted.
If there is a system with a bpf consumer running and a packet is wanted
Jun 17 2015, 12:23 PM
eri closed D2828: ARP request proper locking handling by committing rS284512: If there is a system with a bpf consumer running and a packet is wanted.
Jun 17 2015, 12:23 PM

Jun 15 2015

eri retitled D2828: ARP request proper locking handling from to ARP request proper locking handling.
Jun 15 2015, 4:59 PM

May 20 2015

eri added a comment to D2566: Add support for AES algorithms to IPSec.
In D2566#48206, @ae wrote:

Did you test functionability of this AES-GCM implementation with other systems that already have implemented AES-GCM in IPSec? AFAIK, OpenBSD and Linux have it.

May 20 2015, 10:11 AM

Jan 12 2015

eri added a comment to D1503: Use explicitly specified ivsize instead of blocksize, when we mean IV size..

Can you please not commit this.
I have a patch which does all of this and more, including using AES-NI for IPsec.

Jan 12 2015, 7:50 PM