mirror of
https://github.com/crash-utility/crash
synced 2025-02-13 03:46:58 +00:00
Fix for data access from "split" compressed kdump dumpfiles. Without
the patch, if a dumpfile read targets physical memory in the first memory page stored in the second or later sequential split dumpfile, incorrect data will be returned. (qiaonuohan@cn.fujitsu.com)
This commit is contained in:
parent
8095fe408b
commit
3edf484e29
@ -1095,7 +1095,7 @@ read_diskdump(int fd, void *bufptr, int cnt, ulong addr, physaddr_t paddr)
|
||||
for (i=0; i<num_dumpfiles; i++) {
|
||||
start_pfn = dd_list[i]->sub_header_kdump->start_pfn_64;
|
||||
end_pfn = dd_list[i]->sub_header_kdump->end_pfn_64;
|
||||
if ((pfn >= start_pfn) && (pfn <= end_pfn)) {
|
||||
if ((pfn >= start_pfn) && (pfn < end_pfn)) {
|
||||
dd = dd_list[i];
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user