登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
9
Star
1
Fork
45
src-openEuler
/
iproute
代码
Issues
3
Pull Requests
5
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
关于iprute2使用ip link xstats查询发生coredump的问题
已完成
#ICGD8T
任务
tangce
创建于
2025-06-19 15:41
我在使用iprute2使用ip link xstats查询bond信息时遇到一个问题,当我创建bond后打算用ip link xstats命令查询bond扩展信息时发生了栈溢出接着coredump了,我并没有通过代码看出根因所以需要一些帮助,以下是我发现问题的过程 示例: ifconfig eth1 up modprobe bonding mode=4 max_bonds=1 lacp_rate=1 miimon=100 ip addr add 7.7.0.100/24 dev bond0 ip link xstats type bond dev bond0 结果如下: [root@localhost /]# ip link xstats type bond bond0 LACPDU Rx 0 LACPDU Tx 0 LACPDU Unknown type Rx 0 LACPDU Illegal Rx 0 Marker Rx 0 Marker Tx 0 Marker response Rx 0 Marker response Tx 0 Marker unknown type Rx 0 *** stack smashing detected ***: terminated Aborted (core dumped) 通过valgrind的定位的结果如下: [root@localhost /]# valgrind ip link xstats type bond dev bond0 ==242893== Memcheck, a memory error detector ==242893== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==242893== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==242893== Command: ip link xstats type bond dev bond0 ==242893== bond0 LACPDU Rx 0 LACPDU Tx 0 LACPDU Unknown type Rx 0 LACPDU Illegal Rx 0 Marker Rx 0 Marker Tx 0 Marker response Rx 0 Marker response Tx 0 Marker unknown type Rx 0 *** stack smashing detected ***: terminated ==242893== ==242893== Process terminating with default action of signal 6 (SIGABRT) ==242893== at 0x498AB5C: __pthread_kill_implementation (pthread_kill.c:44) ==242893== by 0x493CF45: raise (raise.c:26) ==242893== by 0x492733B: abort (abort.c:79) ==242893== by 0x49281A8: __libc_message.cold (libc_fatal.c:152) ==242893== by 0x4A1621A: __fortify_fail (fortify_fail.c:24) ==242893== by 0x4A17435: __stack_chk_fail (stack_chk_fail.c:24) ==242893== by 0x157A81: bond_print_stats_attr (iplink_bond.c:877) ==242893== by 0x157B02: bond_print_xstats (iplink_bond.c:895) ==242893== by 0x1846A9: rtnl_dump_filter_l (libnetlink.c:926) ==242893== by 0x185A01: rtnl_dump_filter_nc (libnetlink.c:969) ==242893== by 0x16B0BF: iplink_ifla_xstats (iplink_xstats.c:71) ==242893== by 0x118C3C: do_cmd (ip.c:131) ==242893== ==242893== HEAP SUMMARY: ==242893== in use at exit: 33,878 bytes in 4 blocks ==242893== total heap usage: 8 allocs, 4 frees, 66,755 bytes allocated ==242893== ==242893== LEAK SUMMARY: ==242893== definitely lost: 0 bytes in 0 blocks ==242893== indirectly lost: 0 bytes in 0 blocks ==242893== possibly lost: 0 bytes in 0 blocks ==242893== still reachable: 33,878 bytes in 4 blocks ==242893== suppressed: 0 bytes in 0 blocks ==242893== Rerun with --leak-check=full to see details of leaked memory ==242893== ==242893== For lists of detected and suppressed errors, rerun with: -s ==242893== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Aborted (core dumped) 通过gdb调试,在bond_print_stats_attr这个函数执行完毕后触发了__stack_chk_fail 这个问题我最先在6.6.0版本发现,替换了最新的6.15.0版本后发现仍然有这个问题,我还尝试了5.15.0版本,发现是正常的 因此我怀疑有一些修改触发了这个问题,但我不能确定问题根因,希望得到帮助
我在使用iprute2使用ip link xstats查询bond信息时遇到一个问题,当我创建bond后打算用ip link xstats命令查询bond扩展信息时发生了栈溢出接着coredump了,我并没有通过代码看出根因所以需要一些帮助,以下是我发现问题的过程 示例: ifconfig eth1 up modprobe bonding mode=4 max_bonds=1 lacp_rate=1 miimon=100 ip addr add 7.7.0.100/24 dev bond0 ip link xstats type bond dev bond0 结果如下: [root@localhost /]# ip link xstats type bond bond0 LACPDU Rx 0 LACPDU Tx 0 LACPDU Unknown type Rx 0 LACPDU Illegal Rx 0 Marker Rx 0 Marker Tx 0 Marker response Rx 0 Marker response Tx 0 Marker unknown type Rx 0 *** stack smashing detected ***: terminated Aborted (core dumped) 通过valgrind的定位的结果如下: [root@localhost /]# valgrind ip link xstats type bond dev bond0 ==242893== Memcheck, a memory error detector ==242893== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==242893== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==242893== Command: ip link xstats type bond dev bond0 ==242893== bond0 LACPDU Rx 0 LACPDU Tx 0 LACPDU Unknown type Rx 0 LACPDU Illegal Rx 0 Marker Rx 0 Marker Tx 0 Marker response Rx 0 Marker response Tx 0 Marker unknown type Rx 0 *** stack smashing detected ***: terminated ==242893== ==242893== Process terminating with default action of signal 6 (SIGABRT) ==242893== at 0x498AB5C: __pthread_kill_implementation (pthread_kill.c:44) ==242893== by 0x493CF45: raise (raise.c:26) ==242893== by 0x492733B: abort (abort.c:79) ==242893== by 0x49281A8: __libc_message.cold (libc_fatal.c:152) ==242893== by 0x4A1621A: __fortify_fail (fortify_fail.c:24) ==242893== by 0x4A17435: __stack_chk_fail (stack_chk_fail.c:24) ==242893== by 0x157A81: bond_print_stats_attr (iplink_bond.c:877) ==242893== by 0x157B02: bond_print_xstats (iplink_bond.c:895) ==242893== by 0x1846A9: rtnl_dump_filter_l (libnetlink.c:926) ==242893== by 0x185A01: rtnl_dump_filter_nc (libnetlink.c:969) ==242893== by 0x16B0BF: iplink_ifla_xstats (iplink_xstats.c:71) ==242893== by 0x118C3C: do_cmd (ip.c:131) ==242893== ==242893== HEAP SUMMARY: ==242893== in use at exit: 33,878 bytes in 4 blocks ==242893== total heap usage: 8 allocs, 4 frees, 66,755 bytes allocated ==242893== ==242893== LEAK SUMMARY: ==242893== definitely lost: 0 bytes in 0 blocks ==242893== indirectly lost: 0 bytes in 0 blocks ==242893== possibly lost: 0 bytes in 0 blocks ==242893== still reachable: 33,878 bytes in 4 blocks ==242893== suppressed: 0 bytes in 0 blocks ==242893== Rerun with --leak-check=full to see details of leaked memory ==242893== ==242893== For lists of detected and suppressed errors, rerun with: -s ==242893== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Aborted (core dumped) 通过gdb调试,在bond_print_stats_attr这个函数执行完毕后触发了__stack_chk_fail 这个问题我最先在6.6.0版本发现,替换了最新的6.15.0版本后发现仍然有这个问题,我还尝试了5.15.0版本,发现是正常的 因此我怀疑有一些修改触发了这个问题,但我不能确定问题根因,希望得到帮助
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
sig/Networking
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (43)
master
openEuler-24.03-LTS
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP1
openEuler-25.09
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-SP4
openEuler-25.03
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-24.09
sync-pr158-openEuler-22.03-LTS-SP3-to-openEuler-22.03-LTS-Next
openEuler-20.03-LTS-SP1
openEuler-22.03-LTS
openEuler-20.03-LTS-SP3
openEuler-22.03-LTS-Next
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-20.09
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-21.09
openEuler1.0-base
openEuler1.0
openEuler-24.03-LTS-SP2-update-20251011
openEuler-24.03-LTS-update-20251011
openEuler-24.03-LTS-SP1-update-20251011
openEuler-25.09-release
openEuler-24.03-LTS-update-20250718
openEuler-24.03-LTS-SP1-update-20250718
openEuler-24.03-LTS-SP2-update-20250718
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250425
openEuler-22.03-LTS-SP3-update-20250425
openEuler-24.03-LTS-SP1-update-20250425
openEuler-24.03-LTS-SP1-update-20250428
openEuler-22.03-LTS-SP4-update-20250425
openEuler-20.03-LTS-SP4-update-20250425
openEuler-25.03-release
openEuler-24.03-LTS-SP1-update-20250221
openEuler-24.03-LTS-update-20250221
openEuler-22.03-LTS-SP4-update-20250221
openEuler-22.03-LTS-SP3-update-20250221
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-update-20241213
openEuler-22.03-LTS-SP3-update-20241213
openEuler-22.03-LTS-SP1-update-20241213
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/iproute.git
git@gitee.com:src-openeuler/iproute.git
src-openeuler
iproute
iproute
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册