public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
From: Yonghong Song <yhs@meta.com>
To: Stanislav Fomichev <sdf@google.com>, bpf@vger.kernel.org
Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
	martin.lau@linux.dev, song@kernel.org, yhs@fb.com,
	john.fastabend@gmail.com, kpsingh@kernel.org, haoluo@google.com,
	jolsa@kernel.org, Martin KaFai Lau <martin.lau@kernel.org>
Subject: Re: [PATCH bpf-next 1/2] selftests/bpf: Add reproducer for decl_tag in func_proto return type
Date: Sun, 16 Oct 2022 22:33:09 -0700	[thread overview]
Message-ID: <262c86ec-8f1c-5e88-d5ff-f4bbb87d588b@meta.com> (raw)
In-Reply-To: <20221015002444.2680969-1-sdf@google.com>



On 10/14/22 5:24 PM, Stanislav Fomichev wrote:
> It should trigger a WARN_ON_ONCE in btf_type_id_size.
> 
>       btf_func_proto_check kernel/bpf/btf.c:4447 [inline]
>       btf_check_all_types kernel/bpf/btf.c:4723 [inline]
>       btf_parse_type_sec kernel/bpf/btf.c:4752 [inline]
>       btf_parse kernel/bpf/btf.c:5026 [inline]
>       btf_new_fd+0x1926/0x1e70 kernel/bpf/btf.c:6892
>       bpf_btf_load kernel/bpf/syscall.c:4324 [inline]
>       __sys_bpf+0xb7d/0x4cf0 kernel/bpf/syscall.c:5010
>       __do_sys_bpf kernel/bpf/syscall.c:5069 [inline]
>       __se_sys_bpf kernel/bpf/syscall.c:5067 [inline]
>       __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5067
>       do_syscall_x64 arch/x86/entry/common.c:50 [inline]
>       do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
>       entry_SYSCALL_64_after_hwframe+0x63/0xcd
> 
> Cc: Yonghong Song <yhs@fb.com>
> Cc: Martin KaFai Lau <martin.lau@kernel.org>
> Signed-off-by: Stanislav Fomichev <sdf@google.com>

Acked-by: Yonghong Song <yhs@fb.com>

  parent reply	other threads:[~2022-10-17  5:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-15  0:24 [PATCH bpf-next 1/2] selftests/bpf: Add reproducer for decl_tag in func_proto return type Stanislav Fomichev
2022-10-15  0:24 ` [PATCH bpf-next 2/2] bpf: prevent decl_tag from being referenced in func_proto Stanislav Fomichev
2022-10-17  5:33   ` Yonghong Song
2022-10-17 18:32   ` Martin KaFai Lau
2022-10-17  5:33 ` Yonghong Song [this message]
2022-10-17 18:30 ` [PATCH bpf-next 1/2] selftests/bpf: Add reproducer for decl_tag in func_proto return type patchwork-bot+netdevbpf

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=262c86ec-8f1c-5e88-d5ff-f4bbb87d588b@meta.com \
    --to=yhs@meta.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=haoluo@google.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kpsingh@kernel.org \
    --cc=martin.lau@kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=sdf@google.com \
    --cc=song@kernel.org \
    --cc=yhs@fb.com \
    /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