]> 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)
commit118fceda9a508bb9b4c5fee2846b578a3a9cef74
tree7d050a4e680ac3370e197d66b80b6709c65ba685
parent09c5b4007d059df5e4ee9546be9519cc74ca0f3f
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