]> www.infradead.org Git - users/dwmw2/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Dec 2023 17:52:29 +0000 (09:52 -0800)
commitbb9aefde5bbaf6c168c77ba635c155b4980c2287
tree590a28c3a75f9f88fee7c1077f38b5f6996b5958
parentc5a595000e2677e865a39f249c056bc05d6e55fd
bpf: sockmap, updating the sg structure should also update curr

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>
net/core/filter.c