Skip to content

ipv6: sr: make SR HMAC __init continue on missing algos

Nicolai Stange lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ipv6: sr: reject unsupported SR HMAC algos with -ENOENTnet/ipv6/seg6_hmac.c+6 -11 reply
2/4ipv6: sr: factor seg6_hmac_exit()'s per-algo code into separate functionnet/ipv6/seg6_hmac.c+27 -210 replies
3/4ipv6: sr: factor seg6_hmac_init_algo()'s per-algo code into separate functionnet/ipv6/seg6_hmac.c+49 -391 reply
4/4ipv6: sr: continue initialization at ENOENT HMAC instantiation failuresnet/ipv6/seg6_hmac.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] ipv6: sr: make SR HMAC __init continue on missing algos

Hi all,

this series prepares for prohibiting any SHA1 usage when booting in FIPS mode -- SHA1 will be sunset by NIST by the end of 2030 ([1]) and then at latest, attempts to instantiate it will have to be made to fail with -ENOENT (in FIPS mode only). Note that distros might want to make this move downstream today already.

The problem is that the SR HMAC __init, and thus the IPv6 subsys as a whole, fails to come up upon encountering such an error.

This series makes it to continue upon ENOENTs from the hmac instantiations.

Thanks!

Nicolai

[1] https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm

Nicolai Stange (4):
ipv6: sr: reject unsupported SR HMAC algos with -ENOENT
ipv6: sr: factor seg6_hmac_exit()'s per-algo code into separate
function
ipv6: sr: factor seg6_hmac_init_algo()'s per-algo code into separate
function
ipv6: sr: continue initialization at ENOENT HMAC instantiation
failures

 net/ipv6/seg6_hmac.c | 141 +++++++++++++++++++++++++------------------
 1 file changed, 81 insertions(+), 60 deletions(-)
Signature · 1 line
2.47.1