Bug 1481047
Summary: | blkdev_issue_zeroout on dm-crypt container could cause OOM and kernel panic | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] LVM and device-mapper | Reporter: | Tom Yan <tom.ty89> | ||||||
Component: | device-mapper | Assignee: | Mikuláš Patočka <mpatocka> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | cluster-qe <cluster-qe> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac | ||||||
Target Milestone: | --- | Keywords: | Triaged | ||||||
Target Release: | --- | Flags: | rule-engine:
lvm-technical-solution?
|
||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2021-11-22 21:21:49 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Tom Yan
2017-08-13 21:07:01 UTC
Created attachment 1312799 [details]
Another test case that shows the problem (1/2)
You can see that there are 2713M available and I am making a zero out request of 2560M.
Created attachment 1312800 [details]
Another test case that shows the problem (2/2)
You can see the available memory can at least go down to as low as 273M (while 2713 - 2560 = 153M). Memory are released bit by bit as the zero pages get converted/encrypted and written to the disk, apparently.
There is a dm-crypt patch by Mikulas that should fix the issue https://www.redhat.com/archives/dm-devel/2017-August/msg00164.html fixed upstream by kernel commit 5059353df86e2573ccd9d43fd9d9396dcec47ca2 |