From: Yonghong Song Subject: [PATCH bpf-next 0/3] bpf: btf: check name validity for various types Date: Mon, 26 Nov 2018 21:17:12 -0800 Message-ID: <20181127051715.1845528-1-yhs@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: , , , Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:41516 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbeK0QOG (ORCPT ); Tue, 27 Nov 2018 11:14:06 -0500 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAR59mxH019791 for ; Mon, 26 Nov 2018 21:17:26 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2p0y3m027j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 26 Nov 2018 21:17:26 -0800 Sender: netdev-owner@vger.kernel.org List-ID: 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