Skip to contentSkip to conversation

show_mem producing invalid output

DISCUSSION Tom Lendacky 1 participant 1 message Jul 10, 2015

lore
Share & tools
lore
#0 lore raw

Hi Vishnu,

Commit 49abd8c28046 ("lib/show_mem.c: add cma reserved information") causes the following output (last four lines shown):

...
261888 pages RAM
0 pages HighMem/MovableOnly
18446744073709545533 pages reserved
8192 pages cma reserved

The very large "pages reserved" number is obviously invalid and is the result of the subtraction in the printk where "reserved" is less than "totalcma_pages".

This is from an arm64 system.

Thanks,
Tom