summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-01-06 01:13:08 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2018-01-08 10:16:40 +0100
commitb1bdcb59b64f806ef08d25a85c39ffb3ad841ce6 (patch)
treec860622d60b86a1ee0a7344a34e296a33061b94a /net/ipv4
parentxfrm: Return error on unknown encap_type in init_state (diff)
downloadlinux-b1bdcb59b64f806ef08d25a85c39ffb3ad841ce6.tar.xz
linux-b1bdcb59b64f806ef08d25a85c39ffb3ad841ce6.zip
xfrm: don't call xfrm_policy_cache_flush while holding spinlock
xfrm_policy_cache_flush can sleep, so it cannot be called while holding a spinlock. We could release the lock first, but I don't see why we need to invoke this function here in first place, the packet path won't reuse an xdst entry unless its still valid. While at it, add an annotation to xfrm_policy_cache_flush, it would have probably caught this bug sooner. Fixes: ec30d78c14a813 ("xfrm: add xdst pcpu cache") Reported-by: syzbot+e149f7d1328c26f9c12f@syzkaller.appspotmail.com Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions