linux-yocto/tools
Paul Chaignon 2d402c6cc9 selftests/bpf: Test invalid narrower ctx load
commit ba578b87fe upstream.

This patch adds selftests to cover invalid narrower loads on the
context. These used to cause kernel warnings before the previous patch.
To trigger the warning, the load had to be aligned, to read an affected
context field (ex., skb->sk), and not starting at the beginning of the
field.

The nine new cases all fail without the previous patch.

Suggested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://patch.msgid.link/44cd83ea9c6868079943f0a436c6efa850528cc1.1753194596.git.paul.chaignon@gmail.com
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-23 11:18:51 +01:00
..
accounting
arch tools: riscv: Fixed misalignment of CSR related definitions 2025-12-01 11:43:31 +01:00
bootconfig tools/bootconfig: Fix the wrong format specifier 2025-02-08 09:58:00 +01:00
bpf bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21 2025-11-13 15:34:06 -05:00
build tools build: Align warning options with perf 2025-10-19 16:33:40 +02:00
certs
cgroup memcg_slabinfo: Fix use of PG_slab 2025-08-15 12:13:46 +02:00
counter
crypto crypto: tools/ccp - Remove unused variable 2024-08-30 18:22:30 +08:00
debugging
firewire
firmware
gpio tools: gpio: remove the include directory on make clean 2025-09-09 18:58:25 +02:00
hv tools/hv: fcopy: Fix irregularities with size of ring buffer 2025-08-20 18:30:56 +02:00
iio tools: iio: rm .*.cmd when make clean 2024-09-05 19:27:13 +01:00
include tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set 2025-12-18 13:54:50 +01:00
kvm/kvm_stat
laptop
leds
lib libperf cpumap: Fix perf_cpu_map__max for an empty/NULL map 2026-01-08 10:14:12 +01:00
memory-model tools/memory-model: simple.txt: Fix stale reference to recipes-pairs.txt 2024-09-13 23:56:44 -07:00
mm tools/mm/page_owner_sort: fix timestamp comparison for stable sorting 2026-01-08 10:14:50 +01:00
net tools: ynl: fix string attribute length to include null terminator 2025-11-13 15:33:58 -05:00
objtool objtool: Fix weak symbol detection 2025-12-18 13:54:42 +01:00
pci tools: PCI: Remove unused BILLION macro 2024-09-13 22:37:06 +00:00
pcmcia
perf perf hist: In init, ensure mem_info is put on error paths 2025-12-18 13:55:14 +01:00
power tools/power x86_energy_perf_policy: Prefer driver HWP limits 2025-11-13 15:34:08 -05:00
rcu
sched_ext sched_ext: Make qmap dump operation non-destructive 2025-11-02 22:15:21 +09:00
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-08-20 18:30:24 +02:00
sound ASoC: dapm-graph: set fill colour of turned on nodes 2025-03-22 12:54:20 -07:00
spi spi: spidev_fdx: Fix the wrong format specifier 2024-09-04 16:50:33 +01:00
testing selftests/bpf: Test invalid narrower ctx load 2026-01-23 11:18:51 +01:00
thermal
time
tracing tracing/tools: Fix incorrcet short option in usage text for --threads 2025-12-01 11:43:38 +01:00
usb usbip: tools: Fix detach_port() invalid port error path 2024-10-29 04:23:23 +01:00
verification tools/rv: Do not skip idle in trace 2025-08-15 12:13:46 +02:00
virtio Fix typo in vringh_test.c 2024-11-06 04:40:07 -05:00
wmi
workqueue
writeback
Makefile