Yonghong Song
eb04bbb608
bpf: btf: check name validity for various types
...
This patch added name checking for the following types:
. BTF_KIND_PTR, BTF_KIND_ARRAY, BTF_KIND_VOLATILE,
BTF_KIND_CONST, BTF_KIND_RESTRICT:
the name must be null
. BTF_KIND_STRUCT, BTF_KIND_UNION: the struct/member name
is either null or a valid identifier
. BTF_KIND_ENUM: the enum type name is either null or a valid
identifier; the enumerator name must be a valid identifier.
. BTF_KIND_FWD: the name must be a valid identifier
. BTF_KIND_TYPEDEF: the name must be a valid identifier
For those places a valid name is required, the name must be
a valid C identifier. This can be relaxed later if we found
use cases for a different (non-C) frontend.
Fixes: 69b693f0ae
("bpf: btf: Introduce BPF Type Format (BTF)")
Acked-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2018-11-28 16:03:04 -08:00
..
2018-11-28 16:03:04 -08:00
2018-11-02 11:25:48 -07:00
2018-10-24 20:55:56 -04:00
2018-11-13 20:38:50 +00:00
2018-10-31 08:54:16 -07:00
2018-11-03 18:13:43 -07:00
2018-06-08 18:56:02 +09:00
2018-11-01 10:00:38 +01:00
2018-08-20 18:33:50 +02:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-08-30 16:12:53 -07:00
2018-11-18 11:31:26 -08:00
2018-11-08 07:43:35 +01:00
2018-11-23 21:54:14 +01:00
2018-01-04 16:45:09 -08:00
2018-02-06 18:32:44 -08:00
2018-05-18 14:58:22 +02:00
2018-08-17 09:41:28 -07:00
2018-07-18 11:43:36 -04:00
2018-07-17 14:45:08 -04:00
2018-02-23 11:22:22 -05:00
2018-06-19 10:39:54 -04:00
2018-08-15 10:46:54 -07:00
2018-10-31 08:54:14 -07:00
2017-11-02 11:10:55 +01:00
2018-08-27 14:48:48 +02:00
2018-10-23 18:43:04 +01:00
2018-08-22 10:52:47 -07:00
2018-10-26 16:26:32 -07:00
2018-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2018-07-21 12:57:35 -05:00
2018-02-21 16:54:06 +01:00
2018-10-31 08:54:12 -07:00
2018-11-01 11:46:27 -07:00
2018-08-06 12:35:20 +02:00
2018-08-27 14:48:48 +02:00
2018-10-31 08:54:16 -07:00
2017-12-14 16:00:49 -08:00
2018-10-25 18:45:08 +02:00
2018-05-15 23:08:33 -07:00
2018-01-08 19:43:15 +01:00
2018-10-16 17:30:11 +02:00
2018-09-10 22:54:33 +09:00
2017-11-02 11:10:55 +01:00
2018-08-02 08:06:54 +09:00
2018-06-15 07:55:24 +09:00
2018-10-06 12:01:51 +02:00
2018-11-03 10:09:37 -07:00
2017-11-02 11:10:55 +01:00
2018-07-16 12:31:57 -07:00
2018-09-12 08:01:16 +02:00
2018-08-13 11:25:07 -07:00
2018-09-04 10:35:47 -07:00
2018-10-28 11:35:40 -07:00
2018-07-02 11:36:17 +02:00
2018-07-02 11:36:17 +02:00
2018-09-27 17:56:49 +02:00
2018-01-05 18:43:00 +11:00
2018-10-31 08:54:14 -07:00
2018-04-11 10:28:37 -07:00
2018-09-16 16:08:25 +02:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-24 11:22:39 +01:00
2017-11-02 11:10:55 +01:00
2018-09-11 16:13:24 +01:00
2018-06-15 07:55:24 +09:00
2018-11-07 16:47:47 +01:00
2018-07-10 22:18:52 +02:00
2018-10-24 11:49:35 +01:00
2018-10-31 08:54:14 -07:00
2018-10-09 16:51:11 +02:00
2018-07-03 09:20:44 +02:00
2017-11-02 11:10:55 +01:00
2018-10-25 11:43:47 -07:00
2018-09-04 10:35:48 -07:00
2018-08-13 11:25:07 -07:00
2018-06-10 10:17:09 -07:00
2018-09-20 22:01:11 +02:00
2018-04-16 11:26:49 +02:00
2018-11-03 10:09:37 -07:00
2017-12-17 13:57:15 +01:00
2018-02-06 18:32:46 -08:00
2018-06-21 12:33:05 +02:00
2018-08-29 09:20:48 -07:00
2018-10-17 15:35:29 -04:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2018-10-22 19:37:36 -07:00
2018-10-09 16:51:11 +02:00
2018-11-07 23:51:16 -06:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-04-11 10:28:35 -07:00
2018-08-30 12:56:40 +02:00
2018-08-30 12:56:40 +02:00
2018-05-18 08:47:13 -07:00
2018-08-30 12:56:40 +02:00