From: Leon Hwang <leon.hwang@linux.dev>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: "Eduard Zingerman" <eddyz87@gmail.com>, bpf <bpf@vger.kernel.org>,
"Alexei Starovoitov" <ast@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Toke Høiland-Jørgensen" <toke@redhat.com>,
"Martin KaFai Lau" <martin.lau@kernel.org>,
"Yonghong Song" <yonghong.song@linux.dev>,
"Puranjay Mohan" <puranjay@kernel.org>,
"Xu Kuohai" <xukuohai@huaweicloud.com>,
"Ilya Leoshkevich" <iii@linux.ibm.com>,
kernel-patches-bot@fb.com, "kbuild test robot" <lkp@intel.com>
Subject: Re: [PATCH bpf-next v6 3/3] selftests/bpf: Add cases to test tailcall in freplace
Date: Thu, 10 Oct 2024 09:56:04 +0800 [thread overview]
Message-ID: <af80095c-0869-481d-9f26-86d584206931@linux.dev> (raw)
In-Reply-To: <CAADnVQK2SP0JeL+kRMEvLQGjq4GgBAUtUyVjjzDJ0dRSqWeDFA@mail.gmail.com>
On 10/10/24 08:59, Alexei Starovoitov wrote:
> On Tue, Oct 8, 2024 at 11:05 PM Leon Hwang <leon.hwang@linux.dev> wrote:
>>
>>
>>
>> On 9/10/24 13:04, Eduard Zingerman wrote:
>>> On Wed, 2024-10-09 at 00:13 +0800, Leon Hwang wrote:
>>>> cd tools/testing/selftests/bpf; ./test_progs -t tailcalls
>>>> 335/27 tailcalls/tailcall_bpf2bpf_hierarchy_freplace_1:OK
>>>> 335/28 tailcalls/tailcall_bpf2bpf_hierarchy_freplace_2:OK
>>>> 335 tailcalls:OK
>>>> Summary: 1/28 PASSED, 0 SKIPPED, 0 FAILED
>>>>
>>>> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
>>>> ---
>>>
>>> Tbh, I don't think these tests are necessary.
>>> Patch #2 already covers changes in patch #1.
>>>
>>> [...]
>>>
>>
>> You are right.
>>
>> I should provide the commit message to tell the reason why to add these
>> two test cases:
>>
>> In order to confirm tailcall in freplace is OK and won't be broken by
>> patch of preventing tailcall infinite loop caused by freplace or other
>> patches in the future, add two test cases to confirm that freplace is OK
>> to tail call itself or other freplace prog, even if the target prog of
>> freplace is a subprog and the subprog is called many times in its caller.
>
> Not following.
> What's the point of adding more tests when patch 2 covers the cases already?
It's to test cases about tailcall in freplace.
But it seems unnecessary to add them. I'll drop this patch.
Thanks,
Leon
prev parent reply other threads:[~2024-10-10 1:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 16:13 [PATCH bpf-next v6 0/3] bpf: Fix tailcall infinite loop caused by freplace Leon Hwang
2024-10-08 16:13 ` [PATCH bpf-next v6 1/3] bpf: Prevent " Leon Hwang
2024-10-09 4:30 ` Eduard Zingerman
2024-10-09 4:42 ` Eduard Zingerman
2024-10-09 5:43 ` Leon Hwang
2024-10-10 0:58 ` Alexei Starovoitov
2024-10-10 2:21 ` Leon Hwang
2024-10-10 14:06 ` Xu Kuohai
2024-10-10 14:27 ` Leon Hwang
2024-10-08 16:13 ` [PATCH bpf-next v6 2/3] selftests/bpf: Add a test case to confirm a tailcall infinite loop issue has been prevented Leon Hwang
2024-10-09 4:37 ` Eduard Zingerman
2024-10-09 5:54 ` Leon Hwang
2024-10-08 16:13 ` [PATCH bpf-next v6 3/3] selftests/bpf: Add cases to test tailcall in freplace Leon Hwang
2024-10-09 5:04 ` Eduard Zingerman
2024-10-09 6:05 ` Leon Hwang
2024-10-10 0:59 ` Alexei Starovoitov
2024-10-10 1:56 ` Leon Hwang [this message]
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=af80095c-0869-481d-9f26-86d584206931@linux.dev \
--to=leon.hwang@linux.dev \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=iii@linux.ibm.com \
--cc=kernel-patches-bot@fb.com \
--cc=lkp@intel.com \
--cc=martin.lau@kernel.org \
--cc=puranjay@kernel.org \
--cc=toke@redhat.com \
--cc=xukuohai@huaweicloud.com \
--cc=yonghong.song@linux.dev \
/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