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: <15709.1702234055@localhost>
Date: Sun, 10 Dec 2023 13:47:35 -0500
From: Michael Richardson <mcr@...delman.ca>
To: Eyal Birger <eyal.birger@...il.com>
cc: davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com,
    kuba@...nel.org, pabeni@...hat.com, steffen.klassert@...unet.com,
    herbert@...dor.apana.org.au, pablo@...filter.org, paul@...ats.ca,
    nharold@...gle.com, devel@...ux-ipsec.org, netdev@...r.kernel.org
Subject: Re: [devel-ipsec] [PATCH ipsec-next, v2] xfrm: support sending NAT keepalives in ESP in UDP states


+		BUILD_BUG_ON(XFRMA_MAX != XFRMA_NAT_KEEPALIVE_INTERVAL);

This code was there before, and you are just updating it, but I gotta wonder
about it.  It feels very not-DRY.
It seems to be testing that XFRMA_MAX was updated correctly in the header
file, and I guess I'm dubious about where it is being done.

I said last year at the workshop that I'd start a tree on documentation for
XFRM stuff, and I've managed to actually start that, and I'll attempt to use
this new addition as template.

As a general comment, until this work is RCU'ed I'm wondering how it will
perform on systems with thousands of SAs. As you say: this is a place for
improvement.  If no keepalives are set, does the code need to walk the xfrm
states at all.  I wonder if that might mitigate the situation for bigger
systems that have not yet adapted.  I don't see a way to not include this
code.





Download attachment "signature.asc" of type "application/pgp-signature" (512 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ