linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Leon Hwang <hffilwlqm@gmail.com>
To: Oliver Sang <oliver.sang@intel.com>
Cc: oe-lkp@lists.linux.dev, lkp@intel.com,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alexei Starovoitov <ast@kernel.org>,
	bpf@vger.kernel.org
Subject: Re: [linux-next:master] [bpf, x64] f663a03c8e: test-bpf.Tail_call_count_preserved_across_function_calls.fail
Date: Wed, 26 Jun 2024 10:43:45 +0800	[thread overview]
Message-ID: <e84c7233-70cf-42d8-87f6-6ed6e40087c7@gmail.com> (raw)
In-Reply-To: <Znt6wPH24lQlbYrO@xsang-OptiPlex-9020>



On 26/6/24 10:19, Oliver Sang wrote:
> hi, Leon Hwang,
> 
> On Tue, Jun 25, 2024 at 04:25:00PM +0800, Leon Hwang wrote:
>>
>>
>> On 25/6/24 14:55, kernel test robot wrote:
>>>
>>>
>>> Hello,
>>>
>>> kernel test robot noticed "test-bpf.Tail_call_count_preserved_across_function_calls.fail" on:
>>>
>>> commit: f663a03c8e35c5156bad073a4a8f5e673d656e3f ("bpf, x64: Remove tail call detection")
>>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master
>>>
>>> [test failed on linux-next/master 62c97045b8f720c2eac807a5f38e26c9ed512371]
>>>
>>> in testcase: test-bpf
>>> version: 
>>> with following parameters:
>>>
>>> 	test: non-jit
>>>
>>>
>>>
>>> compiler: gcc-13
>>> test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz (Cascade Lake) with 32G memory
>>>
>>> (please refer to attached dmesg/kmsg for entire log/backtrace)
>>>
>>>
>>>
>>>
>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of
>>> the same patch/commit), kindly add following tags
>>> | Reported-by: kernel test robot <oliver.sang@intel.com>
>>> | Closes: https://lore.kernel.org/oe-lkp/202406251415.c51865bc-oliver.sang@intel.com
>>>
>>>
>>>
>>> [   43.913560] test_bpf: #0 Tail call leaf jited:1 5 PASS
>>> [   43.913572] test_bpf: #1 Tail call 2 jited:1 ret -1 != 3 FAIL
>>> [   43.914138] test_bpf: #2 Tail call 3 jited:1 ret -1 != 6 FAIL
>>> [   43.914756] test_bpf: #3 Tail call 4 jited:1 ret -1 != 10 FAIL
>>> [   43.915374] test_bpf: #4 Tail call load/store leaf jited:1 5 PASS
>>> [   43.915993] test_bpf: #5 Tail call load/store jited:1 ret -1 != 0 FAIL
>>> [   43.916636] test_bpf: #6 Tail call error path, max count reached jited:1 ret 1000 != 34000 FAIL
>>> [   43.917319] test_bpf: #7 Tail call count preserved across function calls jited:1 ret 1000 != 34000 FAIL
>>> [   43.918799] test_bpf: #8 Tail call error path, NULL target jited:1 5 PASS
>>> [   43.919720] test_bpf: #9 Tail call error path, index out of range jited:1 5 PASS
>>> [   43.920474] test_bpf: test_tail_calls: Summary: 4 PASSED, 6 FAILED, [10/10 JIT'ed]
>>>
>>
>> Hi,
>>
>> May I request the source code of these test cases?
>> I do not find them in lkp-tests.
> 
> test-bpf doesn't have source code.
> 
> you could refer to
> https://github.com/intel/lkp-tests/blob/master/programs/test-bpf/run
> to see how it runs.
> 
> then
> https://github.com/intel/lkp-tests/blob/master/programs/test-bpf/parse
> to see how the results are parsed.
> 

I found their source code. Then I fixed it by "bpf: Fix tailcall cases
in test_bpf"[0].

[0] https://lore.kernel.org/bpf/20240625145351.40072-1-hffilwlqm@gmail.com/

Thanks,
Leon


      reply	other threads:[~2024-06-26  2:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25  6:55 kernel test robot
2024-06-25  8:25 ` Leon Hwang
2024-06-26  2:19   ` Oliver Sang
2024-06-26  2:43     ` 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=e84c7233-70cf-42d8-87f6-6ed6e40087c7@gmail.com \
    --to=hffilwlqm@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=oe-lkp@lists.linux.dev \
    --cc=oliver.sang@intel.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