mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
xfrm: Fix policy hold queue after flowcache removal.
Now that the flowcache is removed we need to generate
a new dummy bundle every time we check if the needed
SAs are in place because the dummy bundle is not cached
anymore. Fix it by passing the XFRM_LOOKUP_QUEUE flag
to xfrm_lookup(). This makes sure that we get a dummy
bundle in case the SAs are not yet in place.
Fixes: 3ca28286ea
("xfrm_policy: bypass flow_cache_lookup")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
19d7df69fd
commit
2471c98165
1 changed files with 1 additions and 1 deletions
|
@ -1891,7 +1891,7 @@ static void xfrm_policy_queue_process(struct timer_list *t)
|
|||
spin_unlock(&pq->hold_queue.lock);
|
||||
|
||||
dst_hold(xfrm_dst_path(dst));
|
||||
dst = xfrm_lookup(net, xfrm_dst_path(dst), &fl, sk, 0);
|
||||
dst = xfrm_lookup(net, xfrm_dst_path(dst), &fl, sk, XFRM_LOOKUP_QUEUE);
|
||||
if (IS_ERR(dst))
|
||||
goto purge_queue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue