]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:36:37 +0000 (18:36 +0100)
commit81b0c3d2824e5d4010abf07d218c830170950545
tree7e7dcf8f468c96ae4a54a28927c680ed21de32e1
parent0d4e0afdd6658cd21dd5be61880411a2553fd1fc
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