]> git.baikalelectronics.ru Git - kernel.git/commit
leaking_addresses: add range check for vsyscall memory
authorTobin C. Harding <me@tobin.cc>
Thu, 7 Dec 2017 01:33:21 +0000 (12:33 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commit830f01d11f4ea518ece606a429ad6e8045318f4e
treeedbbc7102182bdfb4d0494b0d9dea81d54a5f106
parent31d00b4e0190b3a7e0fd906e67107920f3db2317
leaking_addresses: add range check for vsyscall memory

Currently script checks only first and last address in the vsyscall
memory range. We can do better than this. When checking for false
positives against $match, we can convert $match to a hexadecimal value
then check if it lies within the range of vsyscall addresses.

Check whole range of vsyscall addresses when checking for false
positive.

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