Yonghong Song
81f5c6f5db
bpf: btf: allow typedef func_proto
...
Current implementation does not allow typedef func_proto.
But it is actually allowed.
-bash-4.4$ cat t.c
typedef int (f) (int);
f *g;
-bash-4.4$ clang -O2 -g -c -target bpf t.c -Xclang -target-feature -Xclang +dwarfris
-bash-4.4$ pahole -JV t.o
File t.o:
[1] PTR (anon) type_id=2
[2] TYPEDEF f type_id=3
[3] FUNC_PROTO (anon) return=4 args=(4 (anon))
[4] INT int size=4 bit_offset=0 nr_bits=32 encoding=SIGNED
-bash-4.4$
This patch related btf verifier to allow such (typedef func_proto)
patterns.
Fixes: 2667a2626f ("bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO")
Acked-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2019-01-29 19:15:32 -08:00
..
2019-01-29 19:15:32 -08:00
2018-12-29 10:57:20 -08:00
2018-10-24 20:55:56 -04:00
2018-12-30 08:31:52 +00:00
2019-01-16 09:59:17 -05:00
2019-01-03 18:57:57 -08:00
2018-06-08 18:56:02 +09:00
2018-12-19 11:32:08 +01:00
2018-12-01 12:38:50 -08:00
2019-01-04 13:13:48 -08:00
2018-12-28 12:11:47 -08:00
2019-01-03 18:57:57 -08:00
2018-12-01 12:45:42 -08:00
2019-01-06 09:46:51 +09:00
2018-12-28 12:45:04 -08:00
2019-01-15 11:33:45 -05:00
2018-11-26 18:40:00 -05:00
2018-11-26 18:40:00 -05:00
2018-11-26 18:40:00 -05:00
2018-12-14 12:09:30 -05:00
2018-11-26 18:41:21 -05:00
2018-06-19 10:39:54 -04:00
2018-11-26 18:41:21 -05:00
2018-10-31 08:54:14 -07:00
2019-01-04 12:56:09 -08:00
2018-11-28 11:57:07 +01:00
2018-08-22 10:52:47 -07:00
2018-12-19 13:52:44 -05:00
2018-10-26 16:26:32 -07:00
2018-05-16 07:23:35 +02:00
2018-05-16 07:23:35 +02:00
2019-01-16 05:13:36 +12:00
2018-10-31 08:54:12 -07:00
2019-01-08 18:58:29 -08:00
2018-08-06 12:35:20 +02:00
2019-01-03 18:57:57 -08:00
2019-01-04 13:13:45 -08:00
2018-05-15 23:08:33 -07:00
2019-01-06 09:46:51 +09:00
2018-09-10 22:54:33 +09:00
2018-12-15 17:44:35 +09:00
2019-01-04 13:13:47 -08:00
2018-12-28 12:11:47 -08:00
2018-12-06 14:38:50 +00:00
2018-07-16 12:31:57 -07:00
2018-12-26 14:45:18 -08:00
2018-08-13 11:25:07 -07:00
2019-01-06 09:46:51 +09:00
2018-12-28 12:11:52 -08:00
2018-11-07 14:41:41 +01:00
2018-07-02 11:36:17 +02:00
2019-01-06 09:46:51 +09:00
2018-11-16 14:11:04 +08:00
2019-01-04 13:13:47 -08:00
2018-09-16 16:08:25 +02:00
2018-12-28 12:42:30 -08:00
2018-10-31 08:54:16 -07:00
2019-01-03 18:57:57 -08:00
2018-09-11 16:13:24 +01:00
2018-06-15 07:55:24 +09:00
2018-12-28 12:11:49 -08:00
2019-01-03 18:57:57 -08:00
2019-01-15 09:43:12 -08:00
2019-01-03 18:57:57 -08:00
2018-10-09 16:51:11 +02:00
2018-07-03 09:20:44 +02:00
2018-10-25 11:43:47 -07:00
2018-12-05 19:31:44 -08:00
2018-08-13 11:25:07 -07:00
2018-12-18 16:13:04 +01:00
2019-01-14 10:38:03 +12:00
2019-01-04 13:13:47 -08:00
2019-01-04 13:13:47 -08:00
2018-06-21 12:33:05 +02:00
2018-12-01 12:45:35 -08:00
2018-11-27 09:21:41 -08:00
2019-01-11 18:05:40 -08: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-08-30 12:56:40 +02:00
2018-08-30 12:56:40 +02:00
2018-05-18 08:47:13 -07:00
2018-11-27 09:21:44 -08:00