Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

hyperstart: fix several mem leak #350

Merged
merged 1 commit into from
Apr 18, 2018
Merged

hyperstart: fix several mem leak #350

merged 1 commit into from
Apr 18, 2018

Conversation

keloyang
Copy link
Contributor

Signed-off-by: y00316549 yangshukui@huawei.com

Signed-off-by: y00316549 <yangshukui@huawei.com>
@gnawux
Copy link
Member

gnawux commented Jan 27, 2018

looks the portmapping case failed, right?

@Jimmy-Xu
Copy link

Can one of the admins verify this patch?

@gnawux
Copy link
Member

gnawux commented Jan 27, 2018

ok to test, hykins

@laijs laijs closed this Jan 31, 2018
@laijs laijs reopened this Jan 31, 2018
@Jimmy-Xu
Copy link

Can one of the admins verify this patch?

@sohu0106
Copy link

sohu0106 commented Apr 13, 2018

memory leak call trace:
hyper_ctlmsg_handle--->hyper_new_container--->hyper_setup_container--->hyper_setup_container_rootfs--->container_setup_modules
and
hyper_ctlmsg_handle--->hyper_new_container--->hyper_setup_container--->container_prepare_rootfs_dev--->hyper_rescan_scsi
each new container leak memory in pod, vm's memory will exhaust
ping @laijs

@bergwolf
Copy link
Member

retest this please, @hykins

@bergwolf
Copy link
Member

LGTM, thanks!

@bergwolf bergwolf merged commit 9cba4d0 into hyperhq:master Apr 18, 2018
@attritionorg
Copy link

Can someone (@keloyang, @bergwolf) confirm this is exploitable to conduct a DoS? I ask because CVE-2018-10205 was assigned to this issue, but there is no indication it is a vulnerability. Thanks!

@bergwolf
Copy link
Member

@attritionorg No, I don't think one can use the issue to create a DoS. For one thing, it only affects one VM. For another thing, it only happens once per VM to set up the kernel modules, and once per new container to scan the scsi bus.

@attritionorg
Copy link

@bergwolf thanks for clarifying!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants