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


Groups > linux.kernel > #1564039

Re: [PATCH v3 perf/core] perf script: fix a use after free crash.

From Krister Johansen <kjlx@templeofstupid.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 perf/core] perf script: fix a use after free crash.
Date 2017-01-21 02:50 +0100
Message-ID <t1SYx-6ok-1@gated-at.bofh.it> (permalink)
References <sVliW-6vr-13@gated-at.bofh.it> <sWwch-5Ye-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hey Arnaldo,

On Thu, Jan 05, 2017 at 10:23:31PM -0800, Krister Johansen wrote:
> If dso__load_kcore frees all of the existing maps, but one has already
> been attached to a callchain cursor node, then we can get a SIGSEGV in
> any function that happens to try to use this invalid cursor.  Use the
> existing map refcount mechanism to forestall cleanup of a map until the
> cursor iterates past the node.

It's been a couple of weeks since I sent you the v3 of this patch.  Last
time I fiddled with it, I was able to reproduce your 'perf top' core,
and was able to verify that the latest patch I sent out could survive
running 'perf top' through the course of a full kernel build.

Is there anything else I can do to help with this one?

Thanks,

-K

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


Thread

Re: [PATCH v3 perf/core] perf script: fix a use after free crash. Krister Johansen <kjlx@templeofstupid.com> - 2017-01-21 02:50 +0100

csiph-web