commit | 79c93b1812d3a408edd9470d0dbfca6e91d7cc93 | [log] [tgz] |
---|---|---|
author | Sergei Trofimovich <siarheit@google.com> | Fri Nov 11 23:11:30 2016 +0000 |
committer | Sergei Trofimovich <siarheit@google.com> | Fri Nov 11 23:12:27 2016 +0000 |
tree | ca00ebd147dfdef87ec5cfdd79a1ffeb92769f36 | |
parent | cb086437cfcefcf7396ddc9cffcf4a6ac1594f3c [diff] |
linux/perf.c: fix --linux_perf_bts_block startup case The failure: $ honggfuzz -f in/ --linux_perf_bts_block -- /usr/bin/tiff -D ___FILE___ [2016-11-11T23:11:20+0000][W][5951] arch_perfOpen():223 mmap(mmapAuxBuf) failed, try increasing the kernel.perf_event_mlock_kb sysctl (up to even 300000000): Cannot allocate memory [2016-11-11T23:11:20+0000][E][5951] arch_perfEnable():261 Cannot set up perf for PID=5953 (_HF_DYNFILE_BTS_BLOCK) [2016-11-11T23:11:20+0000][F][5951] arch_prepareChild():248 Couldn't enable perf counters for pid 5953 It seems aux data also needs WRITE permissions. At least this change fixes startup for me. Reported-by: Mateusz Lenik Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Description
Code
Requirements
Trophies
The tool has been used to find a few interesting security problems in major software packages; Examples:
Other
This is NOT an official Google product.