Skip to content

xfrm: fix most sparse warnings

Sabrina Dubroca netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xfrm: state: fix sparse warnings on xfrm_state_hold_rcunet/xfrm/xfrm_state.c+1 -112 replies
2/10xfrm: state: fix sparse warnings in xfrm_state_initnet/xfrm/xfrm_state.c+20 -120 replies
3/10xfrm: state: fix sparse warnings around XFRM_STATE_INSERTnet/xfrm/xfrm_state.c+19 -110 replies
4/10xfrm: state: add xfrm_state_deref_prot to state_by* walk under locknet/xfrm/xfrm_state.c+11 -110 replies
5/10xfrm: remove rcu/state_hold from xfrm_state_lookup_spi_protonet/xfrm/xfrm_state.c+2 -90 replies
6/10xfrm: state: silence sparse warnings during netns exitnet/xfrm/xfrm_state.c+10 -80 replies
7/10xfrm: policy: fix sparse warnings in xfrm_policy_{init,fini}net/xfrm/xfrm_policy.c+4 -40 replies
8/10xfrm: policy: silence sparse warning in xfrm_policy_unregister_afinfonet/xfrm/xfrm_policy.c+1 -10 replies
9/10xfrm: add rcu_access_pointer to silence sparse warning for xfrm_input_afinfonet/xfrm/xfrm_input.c+4 -10 replies
10/10xfrm: avoid RCU warnings around the per-netns netlink socketinclude/net/netns/xfrm.h net/xfrm/xfrm_user.c+18 -90 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon Horman
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH ipsec-next 00/10] xfrm: fix most sparse warnings

This series fixes most of the sparse warnings currently reported about RCU pointers for files under net/xfrm. There's no actual bug in the current code, we only need to use the correct helpers in each context.

Sabrina Dubroca (10):
xfrm: state: fix sparse warnings on xfrm_state_hold_rcu
xfrm: state: fix sparse warnings in xfrm_state_init
xfrm: state: fix sparse warnings around XFRM_STATE_INSERT
xfrm: state: add xfrm_state_deref_prot to state_by* walk under lock
xfrm: remove rcu/state_hold from xfrm_state_lookup_spi_proto
xfrm: state: silence sparse warnings during netns exit
xfrm: policy: fix sparse warnings in xfrm_policy_{init,fini}
xfrm: policy: silence sparse warning in xfrm_policy_unregister_afinfo
xfrm: add rcu_access_pointer to silence sparse warning for
xfrm_input_afinfo
xfrm: avoid RCU warnings around the per-netns netlink socket

 include/net/netns/xfrm.h |   2 +-
 net/xfrm/xfrm_input.c    |   5 +-
 net/xfrm/xfrm_policy.c   |  10 ++--
 net/xfrm/xfrm_state.c    | 115 +++++++++++++++++++++------------------
 net/xfrm/xfrm_user.c     |  25 ++++++---
 5 files changed, 90 insertions(+), 67 deletions(-)
Signature · 1 line
2.51.2