summaryrefslogtreecommitdiffstats
path: root/scripts/xen-hypercalls.sh
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-11-18 13:38:43 +0200
committerIngo Molnar <mingo@kernel.org>2016-11-21 11:28:36 +0100
commite96271f3ed7e702fa36dd0605c0c5b5f065af816 (patch)
tree06a8a4bb58ff3d0700ce8b224c2282bbf79247f0 /scripts/xen-hypercalls.sh
parente40ed1542dd779e5037a22c6b534e57127472365 (diff)
downloadblackbird-op-linux-e96271f3ed7e702fa36dd0605c0c5b5f065af816.tar.gz
blackbird-op-linux-e96271f3ed7e702fa36dd0605c0c5b5f065af816.zip
perf/core: Fix address filter parser
The token table passed into match_token() must be null-terminated, which it currently is not in the perf's address filter string parser, as caught by Vince's perf_fuzzer and KASAN. It doesn't blow up otherwise because of the alignment padding of the table to the next element in the .rodata, which is luck. Fixing by adding a null-terminator to the token table. Reported-by: Vince Weaver <vincent.weaver@maine.edu> Tested-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dvyukov@google.com Cc: stable@vger.kernel.org # v4.7+ Fixes: 375637bc524 ("perf/core: Introduce address range filtering") Link: http://lkml.kernel.org/r/877f81f264.fsf@ashishki-desk.ger.corp.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/xen-hypercalls.sh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud