Skip to content
Commit 013cb81e authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm: Fix infinite loop in xfrm_get_dst_nexthop with transport mode.

On transport mode we forget to fetch the child dst_entry
before we continue the while loop, this leads to an infinite
loop. Fix this by fetching the child dst_entry before we
continue the while loop.

Fixes: 0f6c480f

 ("xfrm: Move dst->path into struct xfrm_dst")
Reported-by: default avatar <syzbot+7d03c810e50aaedef98a@syzkaller.appspotmail.com>
Tested-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 143a4454
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment