linux-stable/include
Liu Jian 7303524e04 skmsg: Lose offset info in sk_psock_skb_ingress
If sockmap enable strparser, there are lose offset info in
sk_psock_skb_ingress(). If the length determined by parse_msg function is not
skb->len, the skb will be converted to sk_msg multiple times, and userspace
app will get the data multiple times.

Fix this by get the offset and length from strp_msg. And as Cong suggested,
add one bit in skb->_sk_redir to distinguish enable or disable strparser.

Fixes: 604326b41a ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20211029141216.211899-1-liujian56@huawei.com
2021-11-01 17:08:21 +01:00
..
acpi Revert "ACPI: Add memory semantics to acpi_os_map_memory()" 2021-09-23 20:39:36 +02:00
asm-generic pci_iounmap'2: Electric Boogaloo: try to make sense of it all 2021-09-19 17:13:35 -07:00
clocksource
crypto
drm
dt-bindings linux-watchdog 5.15-rc1 tag 2021-09-07 13:52:46 -07:00
keys
kunit
kvm KVM: arm64: Fix PMU probe ordering 2021-09-20 12:43:34 +01:00
linux skmsg: Lose offset info in sk_psock_skb_ingress 2021-11-01 17:08:21 +01:00
math-emu
media
memory
misc
net bluetooth-next pull request for net-next: 2021-10-05 07:41:16 -07:00
pcmcia
ras
rdma
scsi scsi: core: Remove 'current_tag' 2021-09-22 00:13:38 -04:00
soc net: mscc: ocelot: support egress VLAN rewriting via VCAP ES0 2021-10-02 14:15:57 +01:00
sound ALSA: rawmidi: introduce SNDRV_RAWMIDI_IOCTL_USER_PVERSION 2021-09-23 09:26:40 +02:00
target
trace bpf: Support writable context for bare tracepoint 2021-10-08 13:22:57 -07:00
uapi bpf: Add bpf_kallsyms_lookup_name helper 2021-10-28 16:30:06 -07:00
vdso
video
xen swiotlb-xen: this is PV-only on x86 2021-09-20 17:01:21 +02:00