linux-stable/samples
Jesper Dangaard Brouer 0d7235888d samples/bpf: xdp1 and xdp2 reduce XDPBUFSIZE to 60
[ Upstream commit 60548b825b ]

Default samples/pktgen scripts send 60 byte packets as hardware adds
4-bytes FCS checksum, which fulfils minimum Ethernet 64 bytes frame
size.

XDP layer will not necessary have access to the 4-bytes FCS checksum.

This leads to bpf_xdp_load_bytes() failing as it tries to copy 64-bytes
from an XDP packet that only have 60-bytes available.

Fixes: 7722517422 ("samples/bpf: fixup some tools to be able to support xdp multibuffer")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/bpf/168545704139.2996228.2516528552939485216.stgit@firesoul
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-11 19:39:28 +02:00
..
acrn
auxdisplay
binderfs
bpf samples/bpf: xdp1 and xdp2 reduce XDPBUFSIZE to 60 2023-07-11 19:39:28 +02:00
configfs
connector
coresight
fanotify
fprobe
ftrace samples: ftrace: Make some global variables static 2023-02-07 12:48:00 -05:00
hid
hidraw
hw_breakpoint
kdb
kfifo
kmemleak
kobject samples/kobject: make kobj_type structure constant 2023-02-08 13:34:41 +01:00
kprobes samples/kprobes: Add LoongArch support 2023-02-25 22:12:17 +08:00
landlock
livepatch
mei
nitro_enclaves
pidfd
pktgen
qmi
rpmsg
rust
seccomp
timers
trace_events
trace_printk
uhid
user_events tracing: Always use canonical ftrace path 2023-02-18 14:34:09 -05:00
v4l
vfio-mdev VFIO updates for v6.3-rc1 2023-02-25 11:52:57 -08:00
vfs
watch_queue
watchdog
Kconfig VFIO updates for v6.3-rc1 2023-02-25 11:52:57 -08:00
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00