Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216738

Re: [PATCH] perf tools: Fix potential array out of bounce accessing

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] perf tools: Fix potential array out of bounce accessing
Date 2015-09-01 12:10 +0200
Message-ID <q3QFQ-3qt-19@gated-at.bofh.it> (permalink)
References <q3KAq-2Z8-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Sep 01, 2015 at 03:29:44AM +0000, Wang Nan wrote:
> There is a problem in dwarf-regs.c of sh, sparc and x86 that it is
> possible to make an out-of-bound array accessing when searching
> register names. This patch fixes it by replacing '<=' to '<', so when
> register (number == XXX_MAX_REGS), get_arch_regstr() returns NULL.
> 

Acked-by: Jiri Olsa <jolsa@kernel.org>

thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] perf tools: Fix potential array out of bounce accessing Wang Nan <wangnan0@huawei.com> - 2015-09-01 05:40 +0200
  Re: [PATCH] perf tools: Fix potential array out of bounce accessing Matt Fleming <matt@codeblueprint.co.uk> - 2015-09-01 10:50 +0200
  Re: [PATCH] perf tools: Fix potential array out of bounce accessing Jiri Olsa <jolsa@redhat.com> - 2015-09-01 12:10 +0200
  RE: [PATCH] perf tools: Fix potential array out of bounce accessing 平松雅巳 / HIRAMATU,MASAMI   <masami.hiramatsu.pt@hitachi.com> - 2015-09-01 13:20 +0200
  [tip:perf/urgent] perf dwarf:   Fix potential array out of bounds access tip-bot for Wang Nan <tipbot@zytor.com> - 2015-09-02 09:30 +0200

csiph-web