]> 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)
commit2f042c93a138f87a2f85e80daa5dbab6bf138045
tree7d050a4e680ac3370e197d66b80b6709c65ba685
parentf9d2a42dacf96eb8a10259edafec0f66c9921d52
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