Bug 7616 - SMC-R Link-Group由对称类型协商为非对称类型时执行smcss -R系统发生core
Summary: SMC-R Link-Group由对称类型协商为非对称类型时执行smcss -R系统发生core
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: 5.10.y-16
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Wen_Gu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 15:59 UTC by henaumars
Modified: 2023-11-24 09:42 UTC (History)
2 users (show)

See Also:


Attachments
core (638.34 KB, image/png)
2023-11-23 15:59 UTC, henaumars
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henaumars 2023-11-23 15:59:47 UTC
Created attachment 909 [details]
core

Description of problem:
当SMC-R的Link-Group从SYM变为ASYMP(手动down掉一个网卡)后,在Server端或者Client端执行smcss -R,系统发生core

Version-Release number of selected component (if applicable):
系统:anolis8.8 5.10.134-16版本内核
网卡:2*CX5  2*CX6 Dx  驱动:5.10.134-16.an8.x86_64

How reproducible:
必现

Steps to Reproduce:
sysctl net.ipv6.conf.default.disable_ipv6=1
sysctl net.ipv6.conf.all.disable_ipv6=1
modprobe smc
modprobe smc_diag
sysctl net.tcp2smc=1
smcr ueid add 123(Client端执行)
ip a a 22.22.22.111/24 dev ens13np0(Client端执行)
ip a a 11.11.11.111/24 dev ens14np0(Client端执行)
smcr ueid add 456(Server端执行)
ip a a 22.22.22.211/24 dev ens13np0(Server端执行)
ip a a 11.11.11.211/24 dev ens14np0(Server端执行)
smcr ueid del SMCV2-DEFAULT-UEID

Server端:
iperf3 -s

Client端:
iperf3 -c 22.22.22.211 -i 1 -t 1000

查看Link-Group情况
smcr -dd linkgroup link-show all
smcss -R
此时建立起来对称链路

手动在Server端断掉一个网卡
ip link set ens13np0 down

查看Link-Group情况(Server端、Client端均可)
smcr -dd linkgroup link-show all(正常执行)
此时变为非对称链路
smcss -R(core,系统重启)

Actual results:
执行smcss -R后系统发生core,重启

Expected results:
命令正常执行并输出正确结果

Additional info:
core信息见附件