bpf: sockmap, updating the sg structure should also update curr
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 6 Dec 2023 23:27:06 +0000 (15:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:39:11 +0000 (18:39 +0100)
commitaf39b80173e49a2bd2307fdb02b79c7fc16a2588
treed839671b75b489a70f59c296a7b2223595bfb8dd
parent008b807fe487e0b15a3a6c39add4eb477f73e440
bpf: sockmap, updating the sg structure should also update curr

[ Upstream commit bb9aefde5bbaf6c168c77ba635c155b4980c2287 ]

Curr pointer should be updated when the sg structure is shifted.

Fixes: 7246d8ed4dcce ("bpf: helper to pop data from messages")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20231206232706.374377-3-john.fastabend@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/filter.c