linux-stable/include
Alexei Starovoitov 63260df139 bpf: Refactor btf_nested_type_is_trusted().
btf_nested_type_is_trusted() tries to find a struct member at corresponding offset.
It works for flat structures and falls apart in more complex structs with nested structs.
The offset->member search is already performed by btf_struct_walk() including nested structs.
Reuse this work and pass {field name, field btf id} into btf_nested_type_is_trusted()
instead of offset to make BTF_TYPE_SAFE*() logic more robust.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20230404045029.82870-4-alexei.starovoitov@gmail.com
2023-04-04 16:57:14 -07:00
..
acpi pci-v6.3-changes 2023-02-24 16:51:40 -08:00
asm-generic Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
clocksource
crypto
drm Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
dt-bindings ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
keys
kunit
kvm
linux bpf: Refactor btf_nested_type_is_trusted(). 2023-04-04 16:57:14 -07:00
math-emu
media media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
memory
misc
net net: Update an existing TCP congestion control algorithm. 2023-03-22 22:53:00 -07:00
pcmcia
ras
rdma
rv
scsi SCSI misc on 20230222 2023-02-22 13:41:41 -08:00
soc
sound Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
target
trace ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
uapi bpf: Update the struct_ops of a bpf_link. 2023-03-22 22:53:02 -07:00
ufs SCSI misc on 20230222 2023-02-22 13:41:41 -08:00
vdso
video
xen Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00