]> git.baikalelectronics.ru Git - kernel.git/commit
leaking_addresses: add support for 5 page table levels
authorTobin C. Harding <me@tobin.cc>
Thu, 7 Dec 2017 03:40:29 +0000 (14:40 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commit35d3bceed4e0a4fe73c9403af13ec3dfbf98f197
tree7d050a4e680ac3370e197d66b80b6709c65ba685
parent64a2ffcdb3791134c890f83e31550ed6062282f2
leaking_addresses: add support for 5 page table levels

Currently script only supports 4 page table levels because of the way
the kernel address regular expression is crafted. We can do better than
this. Using previously added support for kernel configuration options we
can get the number of page table levels defined by
CONFIG_PGTABLE_LEVELS. Using this value a correct regular expression can
be crafted. This only supports 5 page tables on x86_64.

Add support for 5 page table levels on x86_64.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl