Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306002 Details for
Bug 438056
makedumpfile -c on an existing vmcore fails on ppc
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to force rtas section to be a multiple of PAGE_SIZE
kexec-tools-1.102pre-ppc64-rtas.patch (text/plain), 1.47 KB, created by
Neil Horman
on 2008-05-19 19:46:18 UTC
(
hide
)
Description:
patch to force rtas section to be a multiple of PAGE_SIZE
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-05-19 19:46:18 UTC
Size:
1.47 KB
patch
obsolete
>diff -up kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c >--- kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig 2008-05-19 15:25:25.000000000 -0400 >+++ kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c 2008-05-19 15:33:22.000000000 -0400 >@@ -107,6 +107,7 @@ static int get_crash_memory_ranges(struc > struct dirent *dentry, *mentry; > int i, n, crash_rng_len = 0; > unsigned long long start, end, cstart, cend; >+ int page_size = getpagesize(); > > crash_max_memory_ranges = max_memory_ranges + 6; > crash_rng_len = sizeof(struct memory_range) * crash_max_memory_ranges; >@@ -219,6 +220,17 @@ static int get_crash_memory_ranges(struc > if (cend > crash_base + crash_size) > cend = crash_base + crash_size; > crash_memory_range[memory_ranges].start = cstart; >+ /* >+ * The rtas section created here is formed by reading rtas-base >+ * and rtas-size from /proc/device-tree/rtas. Unfortunately >+ * rtas-size is not required to be a multiple of PAGE_SIZE >+ * The remainder of the page it ends on is just garbage, and is >+ * safe to read, its just not accounted in rtas-size. Since >+ * we're creating an elf section here though, lets round it up >+ * to the next page size boundary though, so makedumpfile can >+ * read it safely without going south on us. >+ */ >+ cend = (cend + page_size - 1) & (~(page_size - 1)); > crash_memory_range[memory_ranges++].end = cend; > } > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438056
:
298450
|
298559
|
298698
|
298718
|
301320
| 306002