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:45:10 +0000 (18:45 +0100)
commit94e81d1a4bd9cd516da84d060536226a6578565c
tree68706dcbbd1f2270a632e36fc9b46089711f57fa
parenteb30a025982f61910f32e99778db3c0ceceaff5c
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