]> 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)
commitbe819182e2c4d0e0b387529a310e91a78821bbc7
treeedbbc7102182bdfb4d0494b0d9dea81d54a5f106
parent9bc5e83b18055b3380a3d1899fc4ff03ac4f5559
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