crash icon indicating copy to clipboard operation
crash copied to clipboard

why "PHYSICAL" does not match "PMD entry" value?

Open leveryd opened this issue 3 years ago • 1 comments

[root@instance-fj5pftdp ~]# crash -v

crash 7.2.3-11.el7_9.1
crash> vtop ffffffff80000000
VIRTUAL           PHYSICAL
ffffffff80000000  e4e00000

PGD DIRECTORY: ffffffffb2c10000
PAGE DIRECTORY: 117a14067
   PUD: 117a14ff0 => 117a15063
   PMD: 117a15000 => 0   // PMD entry

as linux kernel documentation, 0xffffffff80000000 will be mapped to physical address 0, but why it shows "e4e00000" as actual and why "PHYSICAL"(e4e00000) does not match "PMD entry"(0) value?

leveryd avatar Dec 13 '21 14:12 leveryd

The e4e00000 is calculated using phys_base, which varies with machine, KASLR, etc. It looks like the page is not mapped on your machine.

k-hagio avatar Jan 20 '22 01:01 k-hagio