scripts: add leaking_addresses.pl
PATCH 1/1 scripts: add leaking_addresses.pl
Currently we are leaking addresses from the kernel to user space. This script is an attempt to find those leakages. Script parses dmesg output and /proc and /sys files for hex strings that look like kernel addresses.
Only works for 64 bit kernels, the reason being that kernel addresses on 64 bit kernels have 'ffff' as the leading bit pattern making greping possible. On 32 kernels we don't have this luxury.
Signed-off-by Tobin C. Harding <[email protected]>
---
Changes since RFC V2
- Refactor the code that skips directories and files into helper functions.
- Add documentation.
- Add an entry in MAINTAINERS.
MAINTAINERS | 5 + scripts/leaking_addresses.pl | 282 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 287 insertions(+) create mode 100755 scripts/leaking_addresses.pl
MAINTAINERS +5 -0
@@ -7745,6 +7745,11 @@ S: Maintained F: Documentation/scsi/53c700.txt F: drivers/scsi/53c700* +LEAKING_ADDRESSES +M: Tobin C. Harding <[email protected]> +S: Maintained +F: scripts/leaking_addresses.pl + LED SUBSYSTEM M: Richard Purdie <[email protected]> M: Jacek Anaszewski <[email protected]>
scripts/leaking_addresses.pl new file +282 -0
282 lines not on this page · raw message
Signature · 1 line
2.7.4