Skip to content

Commit

Permalink
Fix for bitmap-handling in SADUMP dumpfiles, which associate each bit
Browse files Browse the repository at this point in the history
in a bitmap with a physical page in the reverse order that is used
in kdump-compressed format.  The bug had not been detected for a long
time because bitmaps in SADUMP formats consist mostly of 0x00 and
0xff excluding a very limited amount of memory space for firmware.
(indou.takao@jp.fujitsu.com, d.hatayama@jp.fujitsu.com)
  • Loading branch information
Dave Anderson committed Oct 20, 2015
1 parent 7d31095 commit ebca719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sadump.c
Expand Up @@ -715,7 +715,7 @@ is_set_bit(char *bitmap, uint64_t pfn)
ulong index, bit;

index = pfn >> 3;
bit = pfn & 7;
bit = 7 - (pfn & 7);

return !!(bitmap[index] & (1UL << bit));
}
Expand Down

0 comments on commit ebca719

Please sign in to comment.