Netdev List
 help / color / mirror / Atom feed
From: Yonghong Song <yhs@fb.com>
To: <netdev@vger.kernel.org>
Cc: Alexei Starovoitov <ast@fb.com>,
	Daniel Borkmann <daniel@iogearbox.net>, <kernel-team@fb.com>,
	Yonghong Song <yhs@fb.com>
Subject: [PATCH bpf 0/2] bpf: btf: allow typedef func_proto
Date: Tue, 29 Jan 2019 16:38:16 -0800	[thread overview]
Message-ID: <20190130003816.1043826-1-yhs@fb.com> (raw)

The current btf implementation disallows the typedef of
a func_proto type. This actually is allowed per C standard.
This patch fixed btf verification to permit such types.
Patch #1 fixed the kernel side and Patch #2 fixed
the tools test_btf test.

Yonghong Song (2):
  bpf: btf: allow typedef func_proto
  tools/bpf: fix test_btf for typedef func_proto case

 kernel/bpf/btf.c                       | 3 ++-
 tools/testing/selftests/bpf/test_btf.c | 9 +++------
 2 files changed, 5 insertions(+), 7 deletions(-)

-- 
2.17.1


             reply	other threads:[~2019-01-30  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30  0:38 Yonghong Song [this message]
2019-01-30  0:38 ` [PATCH bpf 1/2] bpf: btf: allow typedef func_proto Yonghong Song
2019-01-30  0:38 ` [PATCH bpf 2/2] tools/bpf: fix test_btf for typedef func_proto case Yonghong Song
2019-01-30  3:18 ` [PATCH bpf 0/2] bpf: btf: allow typedef func_proto Alexei Starovoitov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190130003816.1043826-1-yhs@fb.com \
    --to=yhs@fb.com \
    --cc=ast@fb.com \
    --cc=daniel@iogearbox.net \
    --cc=kernel-team@fb.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox