lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170718.111535.1186267705268802212.davem@davemloft.net>
Date:   Tue, 18 Jul 2017 11:15:35 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     fw@...len.de
Cc:     netdev@...r.kernel.org, steffen.klassert@...unet.com,
        ilant@...lanox.com
Subject: Re: [PATCH net-next 0/10] xfrm: remove flow cache

From: Florian Westphal <fw@...len.de>
Date: Mon, 17 Jul 2017 13:57:17 +0200

> After RCU-ification of ipsec packet path there are no major scalability
> issues anymore without flow cache.
> 
> We still incur a performance hit, which comes mostly from the extra xfrm
> dst allocation/freeing.
> The last patch in the series adds a simple percpu cache to avoid the
> extra allocation if a packet matched the same policies as last one.
> 
> The main concern with this is that we will see performance drops,
> especially with large numbers of policies/SAs.
> 
> However, during hallway discussions at nfws 2017 it seemed the issues
> with flow caching outweight the removal downsides, and that it
> might be best to just 'remove it' and see where the practical issues
> (if any) will appear.
> 
> It should now be possible to also remove the genid member in the policies
> as we don't hold bundles for prolonged time anymore, but I think
> this change is controversial (and intrusive) enough as-is, so defer
> that to a later point in time.
> 
> Changes since last rfc:
> 
> - fix build failures due to implicit interrupt.h includes
> - rework last patch (pcpu cache):
>  * avoid xchg()
>  * check policies for walk.dead = 1 instead of more costly bundle_ok().
>  * flush pcpu bundles when sa/policies get removed, to allow module
>    references to go away (suggested by Ilan Tayari)

Steffen, I know you have some level of trepidation about this because
there is obviously some performance cost immediately for removing this
DoS problem.

Like the routing cache removal, most of the low hanging fruit will be
fixed shortly, and over time the bulk of the loss will be reparied one
way or another.

And, to me more importantly, killing it now gives a real incentive to
do the work for fixing that stuff now rather than later.

Therefore I have applied this series to net-next, thanks everyone.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ