Bug 1342744
| Summary: | crashdumping does not work with modern kernels. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Oleg Drokin <green> | ||||
| Component: | kexec-tools | Assignee: | Pratyush Anand <panand> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | bhe, panand, ruyang | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| 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: | 2016-07-13 04:24:22 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
Oleg Drokin
2016-06-04 15:24:53 UTC
Created attachment 1174736 [details]
rename all page.count references to page.refcount
Apparently the problem is that the struct page's count member was renamed to refcount in recent kernels which makes makedumpfile highly confused.
I use this simple patch to fix the situation for me, but it does not really
work for older kernels then of course, so something better is needed.
Also the fallback if nothing worked to just dump the whole /proc/vmcore is likely still desirable to future-proof the system a bit.
makedumpfile upstream devel branch already has a patch to resolve it:
commit 2c21d4656e8d3c2af2b1e14809d076941ae69e96
Author: Vitaly Kuznetsov <vkuznets>
Date: Fri Jun 17 18:41:26 2016 +0900
[PATCH v2] Support _count -> _refcount rename in struct page
_count member was renamed to _refcount in linux commit 0139aa7b7fa12
("mm: rename _count, field of the struct page, to _refcount") and this
broke makedumpfile. The reason for making the change was to find all users
accessing it directly and not through the recommended API. I tried
suggesting to revert the change but failed, I see no other choice than to
start supporting both _count and _refcount in makedumpfile.
Signed-off-by: Vitaly Kuznetsov <vkuznets>
Posted patch: https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org/thread/7KVMNBABUDZYMPTGYZKQKJQBWROH5C2W/ Testing: https://beaker.engineering.redhat.com/jobs/1397964 http://koji.fedoraproject.org/koji/taskinfo?taskID=14879746 Merged in rawhide branch. |