Skip to content

xfrm: fixes for xfrm_state_find under preemption

Sabrina Dubroca netdev 1 version Applied

Status from this message: Applied, thanks a lot!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2xfrm: state: initialize state_ptrs earlier in xfrm_state_findnet/xfrm/xfrm_state.c+2 -21 reply
2/2xfrm: state: use a consistent pcpu_id in xfrm_state_findnet/xfrm/xfrm_state.c+6 -134 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchFlorian Westphal
1/2R-b
2/2R-b

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 0/2] xfrm: fixes for xfrm_state_find under preemption

While looking at the pcpu_id changes, I found two issues that can happen if we get preempted and the cpu_id changes. The second patch takes care of both problems. The first patch also makes sure we don't use state_ptrs uninitialized, which could currently happen. syzbot seems to have hit this issue [1].

[1] https://syzkaller.appspot.com/bug?extid=7ed9d47e15e88581dc5b

Sabrina Dubroca (2):
xfrm: state: initialize state_ptrs earlier in xfrm_state_find
xfrm: state: use a consistent pcpu_id for xfrm_state_find

 net/xfrm/xfrm_state.c | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)
Signature · 1 line
2.49.0