All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] bpf: btf: check name validity for various types
@ 2018-11-27  5:17 Yonghong Song
  2018-11-27  5:17 ` [PATCH bpf-next 1/3] " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yonghong Song @ 2018-11-27  5:17 UTC (permalink / raw)
  To: ast, daniel, netdev, kafai; +Cc: kernel-team

Commit 2667a2626f4d ("bpf: btf: Add BTF_KIND_FUNC
and BTF_KIND_FUNC_PROTO") checked the name validity
for BTF_KIND_FUNC/FUNC_PROTO types.

This patch added name checking for PTR, ARRAY, VOLATILE, TYPEDEF,
CONST, RESTRICT, STRUCT, UNION, ENUM and FWD types. Such a strict
name checking makes BTF more sound in the kernel and future
BTF-to-header-file converesion ([1]) less fragile.

[1]: http://vger.kernel.org/lpc-bpf2018.html#session-2

Yonghong Song (3):
  bpf: btf: check name validity for various types
  tools/bpf: fix two test_btf unit test cases
  tools/bpf: add addition type tests to test_btf

 kernel/bpf/btf.c                       |  57 ++++
 tools/testing/selftests/bpf/test_btf.c | 380 ++++++++++++++++++++++++-
 2 files changed, 428 insertions(+), 9 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-28  6:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-27  5:17 [PATCH bpf-next 0/3] bpf: btf: check name validity for various types Yonghong Song
2018-11-27  5:17 ` [PATCH bpf-next 1/3] " Yonghong Song
2018-11-27 19:02   ` Alexei Starovoitov
2018-11-27 19:57     ` Yonghong Song
2018-11-27  5:17 ` [PATCH bpf-next 2/3] tools/bpf: fix two test_btf unit test cases Yonghong Song
2018-11-27  5:17 ` [PATCH bpf-next 3/3] tools/bpf: add addition type tests to test_btf Yonghong Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.