[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8cd87100-88f3-687d-6704-f4fec0ca48b3@loongson.cn>
Date: Wed, 23 Apr 2025 09:28:06 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: bibo mao <maobibo@...ngson.cn>, Huacai Chen <chenhuacai@...ngson.cn>
Cc: bpf@...r.kernel.org, linux-kernel@...r.kernel.org,
loongarch@...ts.linux.dev
Subject: Re: BUG: bpf test case fails to run on LoongArch
On 04/21/2025 10:52 AM, bibo mao wrote:
> Hi,
>
> When I run built-in bpf test case with lib/test_bpf.c,
> it reports such error, I do not know whether it is a problem.
>
> test_bpf: #843 ALU32_RSH_X: all shift values jited:1 239 PASS
> test_bpf: #844 ALU32_ARSH_X: all shift values jited:1 237 PASS
> test_bpf: #845 ALU64_LSH_X: all shift values with the same register
> ------------[ cut here ]------------
> kernel BUG at lib/test_bpf.c:794!
This is a known issue I have ever encountered.
I guess your GCC version is 14.1, this is a bug of GCC,
it has been fixed in the higher version, you can update
you GCC version (14.2+).
$ gcc --version | head -1
gcc (GCC) 14.2.1 20241104
$ dmesg -t | grep Summary
test_bpf: Summary: 1053 PASSED, 0 FAILED, [0/1041 JIT'ed]
test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [0/10 JIT'ed]
test_bpf: test_skb_segment: Summary: 2 PASSED, 0 FAILED
test_bpf: Summary: 1053 PASSED, 0 FAILED, [1041/1041 JIT'ed]
test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
test_bpf: test_skb_segment: Summary: 2 PASSED, 0 FAILED
Thanks,
Tiezhu
Powered by blists - more mailing lists