mbox series

[bpf-next,v2,0/2] limit bpf_core_types_are_compat recursion

Message ID 20220202211328.176481-1-mcroce@linux.microsoft.com (mailing list archive)
Headers show
Series limit bpf_core_types_are_compat recursion | expand

Message

Matteo Croce Feb. 2, 2022, 9:13 p.m. UTC
From: Matteo Croce <mcroce@microsoft.com>

As formerly discussed on the BPF mailing list:
https://lore.kernel.org/bpf/CAADnVQJDax2j0-7uyqdqFEnpB57om_z+Cqmi1O2QyLpHqkVKwA@mail.gmail.com/

Matteo Croce (2):
  bpf: limit bpf_core_types_are_compat() recursion
  selftests/bpf: test maximum recursion depth for
    bpf_core_types_are_compat()

 include/linux/btf.h                           |   5 +
 kernel/bpf/btf.c                              | 105 +++++++++++++++++-
 .../selftests/bpf/bpf_testmod/bpf_testmod.c   |   3 +
 tools/testing/selftests/bpf/progs/core_kern.c |  14 +++
 4 files changed, 126 insertions(+), 1 deletion(-)