Bug 1210 - [Anck 4.19][ck26_rc3][x86_64/aarch64]kernelselftest test_offload.py:FAIL: Missing or incorrect message from netdevsim in verifier log
Summary: [Anck 4.19][ck26_rc3][x86_64/aarch64]kernelselftest test_offload.py:FAIL: Mis...
Status: CONFIRMED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: XuanZhuo
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-12 15:56 UTC by kangjiangbo
Modified: 2022-10-31 15:49 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangjiangbo 2022-05-12 15:56:19 UTC
Description of problem:
an7 x86/arm kernelselftest test_offload.py:FAIL: Missing or incorrect message from netdevsim in verifier log
[问题发生概率]:必现


RC1版本netdevsim could not be loaded然后测试直接返回PASS了
selftests: bpf: test_offload.py
SKIP: netdevsim module could not be loaded
ok 1..24 selftests: bpf: test_offload.py [PASS]

an8版本测试成功了


Version-Release number of selected component (if applicable):
# uname -a
Linux iZ2zebfu2pfe96wy4xb5lsZ 4.19.91-26_rc3.an7.aarch64 #1 SMP Tue May 10 20:56:42 CST 2022 aarch64 aarch64 aarch64 GNU/Linux

# uname -a
Linux iZ2zei6fkxqrjqrrkid0y9Z 4.19.91-26_rc3.an7.x86_64 #1 SMP Tue May 10 20:53:46 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"


How reproducible:	
下载当前内核 对应的kernel*src.rpm,
rpm -ivh kernel*.src.rpm
which yum-builddep || yum install -y yum-utils
which rpmbuild || yum install -y rpm-build
yum-builddep -y $rpmbuild_dir/SPECS/kernel.spec
rpmbuild -bp $rpmbuild_dir/SPECS/kernel.spec

cd /root/rpmbuild/BUILD/kernel*/linux*/tools/testing/selftests/bpf
./test_offload.py --执行test_offload.py用例


Actual results:
./test_offload.py
Warning: no extack message in iproute2 output, libmnl missing?
Test destruction of generic XDP...
Test TC non-offloaded...
Test TC non-offloaded isn't getting bound...
Test TC offloads are off by default...
Test TC offload by default...
Test TC cBPF bytcode tries offload by default...
Test TC cBPF unbound bytecode doesn't offload...
Test non-0 chain offload...
Test TC replace...
Test TC replace bad flags...
Test spurious extack from the driver...
Test TC offloads work...
FAIL: Missing or incorrect message from netdevsim in verifier log


Expected results:


Additional info:
https://lkml.kernel.org/netdev/CAEf4BzaYPXKCSUX50UrkvbGZ+Ne_YqHLfcgtXzwWFpCvugC8jg@mail.gmail.com/T/
https://www.spinics.net/lists/netdev/msg697523.html
Comment 1 shanxifanshi alibaba_cloud_group 2022-05-13 17:18:29 UTC
an8 ck26 rc3 arm内核该用例也是fail,报错信息也相同

# uname -r
4.19.91-26_rc3.an8.aarch64

# ./test_offload.py
Test destruction of generic XDP...
Test TC non-offloaded...
Test TC non-offloaded isn't getting bound...
Test TC offloads are off by default...
Test TC offload by default...
Test TC cBPF bytcode tries offload by default...
Test TC cBPF unbound bytecode doesn't offload...
Test non-0 chain offload...
Test TC replace...
Test TC replace bad flags...
Test spurious extack from the driver...
Test TC offloads work...
FAIL: Missing or incorrect message from netdevsim in verifier log
Comment 2 zhixin01 alibaba_cloud_group 2022-10-31 15:49:10 UTC
[anolis8 4.19][x86_64][nightly]该用例也是FAIL,报错信息相同
# ./test_offload.py
Test destruction of generic XDP...
Test TC non-offloaded...
Test TC non-offloaded isn't getting bound...
Test TC offloads are off by default...
Test TC offload by default...
Test TC cBPF bytcode tries offload by default...
Test TC cBPF unbound bytecode doesn't offload...
Test non-0 chain offload...
Test TC replace...
Test TC replace bad flags...
Test spurious extack from the driver...
Test TC offloads work...
FAIL: Missing or incorrect message from netdevsim in verifier log

# uname -r
4.19.91-508.git.ba4cb6a898.an8.x86_64

备注:
该用例第一次失败从10月28日晚上开始的,之前一直成功
https://tone.aliyun-inc.com/ws/6yddz4ne/test_result/112980