show_mem producing invalid output

From: Tom Lendacky
Date: Fri Jul 10 2015 - 13:50:38 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/