Bug 8159 - test_sockmap 在测试时阻塞在第5个子用例
Summary: test_sockmap 在测试时阻塞在第5个子用例
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: bpf (show other bugs) bpf
Version: 5.10.y-16
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xiangzao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 10:04 UTC by WangYibo
Modified: 2024-02-04 11:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WangYibo uniontech_group 2024-02-02 10:04:17 UTC
内核版本:5b9c475e320a (HEAD -> release-5.10, tag: 5.10.134-16, origin/release-5.10) Anolis: kernel release 5.10.134-16

测试步骤:
1. 进入内核源码并:cd tools/testing/selftests/bpf
2. make test_sockmap ;make test_progs
3. 运行 ./test_sockmap ,测试用例测完子程序 # 4/ 6  sockmap::txmsg test ingress redirect:OK 接着无输出,会卡在第5个子测试用例。
4. 查看系统中的sockmap进程:ps fax |grep sockmap
  13076 pts/0    S+     0:00  |           \_ ./test_sockmap
  13129 pts/0    S+     0:00  |               \_ ./test_sockmap
  13130 pts/0    Z+     0:00  |               \_ [test_sockmap] <defunct>
  13237 pts/1    S+     0:00              \_ grep --color=auto sockmap
可以判断是因为子进程 13129 睡眠未完成导致。 
5. 此问题在上游 5.10 lts 也存在,是在backport 5.15的补丁才引入该bug的,在5.10 lts 上的commit id是:c842a4c4ae7f bpf: sockmap, strparser, and tls are reusing qdisc_skb_cb and colliding
6. 这个问题应该是上游lts也没有正确回合补丁,肯定是缺了一部分补丁导致的,请研发的同学可以根据以上线索可以确认,并试着修复下。