Closed
【OLK-6.6】【OLK5.10】 oenetcls ntuple卸载模块时需要主动释放sk entry列表 #9175
lixiasongAdd on  May 15Closed at  May 18
lixiasong
lixiasong
May 15 Create

环境信息

【OS版本】openEuler 24.03 (LTS-SP2)

【内核版本】5.10.0

【硬件平台】Kunpeng 920

【组网信息】NA

缺陷信息

oenetcls ntuple在卸载模块时,如果此时存在正在使用的连接和规则,会主动删除规则,但没有清理sk entry列表,需要主动清除。

【问题复现步骤】

加载oenetcls.ko后,打流过程中卸载oenetcls.ko,此时通过kmemleak可观测到未释放的对象。

【实际结果】

内存泄漏

【期望结果】

无内存泄漏

【已分析信息】

通过定位分析,在卸载eonetcls.ko清理资源时,未主动清理sk列表,仅在sock关闭时清理了sk对象,造成泄漏。

缺陷分析结构反馈

影响性分析说明:加载oenetcls.ko后,打流过程中卸载oenetcls.ko,此时通过kmemleak可观测到未释放的对象,出现内存泄漏。

缺陷严重等级: Moderate

缺陷根因说明:在卸载eonetcls.ko清理资源时,未主动清理sk列表,仅在sock关闭时清理了sk对象,造成泄漏。

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 15 Added label: sig/Kernel
openeuler-ci-bot
openeuler-ci-botCollaborators
May 15 Comments:

Welcome To openEuler Community

Hey @lixiasong , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Kernel ,
and any of the maintainers: @hanjunguo, @oekernel, @sanglipeng, @zeng_zhaorong, @zhengzengkai ,
and any of the committers: @CTC-XiboWang, @Frank_Sae, @GongLei-, @LiuYongQiang0816, @SuperSix173, @Tankll2021, @TrueAI, @allen-shi, @baratta, @caixu-blue, @chen-jun-hw, @chenjiesong, @chenjunxin1992, @chenke2026, @chiqijun, @chriszjh, @duanqiangwen, @fangfeng123, @fanghaiqinghw, @gaojuxin09, @gouhao2022, @guzitao, @hanjunguo, @hanliyang, @hellotcc, @hewanhan, @hjx_gitff, @hongwu-wang, @htforge, @hu-chunzhi, @hunan4222, @jackknight, @jerry_lilijun, @jiayi0118, @junlong-zheng, @juntianlinux, @kailiu42, @kaitiandu, @kazero00, @kevinzhu1, @kile2009, @koishimind, @kongzizaixian, @kylin-mayukun, @leoliu-oc, @li-huisong, @linan888, @linyunsheng, @liulongfang, @liyihang0226, @lostway1, @lujialin2, @markyuan4ta21, @mingqian218472, @mufengyan, @pigalsofine, @robinorg, @rock_hw, @sanglipeng, @shu-shengming, @shuaijiakun, @sming56_admin, @stavewu, @stkid, @wangboe2022, @wenzhiwei11, @whoisxxx, @wkfxxx, @woqidaideshi, @wsoydl, @xingmz1, @xukuohai, @yeweihua999, @ygn-ndwd-official, @yonghu_4dc5, @young-sun, @yuehaibing_planb, @yuzenghui1, @zhang-changzhong, @zhangyi089, @zhujianwei001, @zichengqu, @zqiao216 .

likedislike
lixiasonglixiasong
May 15 Associated pull request
lixiasonglixiasong
May 18 Modify description of issue
lixiasonglixiasong
May 18 Modify description of issue
openeuler-ci-botopeneuler-ci-botCollaborators
May 18 Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
May 18 changed custom state from 待办的 to 已完成