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


Groups > linux.kernel > #1565841

Re: perf: use-after-free in perf_event_for_each

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: perf: use-after-free in perf_event_for_each
Date 2017-01-24 14:20 +0100
Message-ID <t39aV-4LM-3@gated-at.bofh.it> (permalink)
References <t2N0J-71T-7@gated-at.bofh.it> <t2QhY-Jd-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jan 23, 2017 at 06:04:42PM +0100, Peter Zijlstra wrote:
> On Mon, Jan 23, 2017 at 02:30:12PM +0100, Dmitry Vyukov wrote:
> > Hello,
> > 
> > The following program triggers use-after-free in perf_event_for_each:
> > https://gist.githubusercontent.com/dvyukov/f1c354a8356e42f4d0b3d912e1bec956/raw/31d7ecdf6dc2c7327b80ef8581a39c823bbe405d/gistfile1.txt

I've been running 60 concurrent instances of that thing for hours now,
and have not been able to reproduce :-/

I did enable CONFIG_KASAN but otherwise booted as normal, and the thing
says:

[    0.000000] kasan: KernelAddressSanitizer initialized

Is there anything else I should do?

I've ran out of ideas and it would be very helpful if I could prod at
something that fails...

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


Thread

perf: use-after-free in perf_event_for_each Dmitry Vyukov <dvyukov@google.com> - 2017-01-23 14:40 +0100
  Re: perf: use-after-free in perf_event_for_each Peter Zijlstra <peterz@infradead.org> - 2017-01-23 18:10 +0100
    Re: perf: use-after-free in perf_event_for_each Peter Zijlstra <peterz@infradead.org> - 2017-01-24 14:20 +0100
      Re: perf: use-after-free in perf_event_for_each Dmitry Vyukov <dvyukov@google.com> - 2017-01-24 14:30 +0100
        Re: perf: use-after-free in perf_event_for_each Peter Zijlstra <peterz@infradead.org> - 2017-01-24 14:50 +0100
  Re: perf: use-after-free in perf_event_for_each Peter Zijlstra <peterz@infradead.org> - 2017-01-26 16:50 +0100
    Re: perf: use-after-free in perf_event_for_each Dmitry Vyukov <dvyukov@google.com> - 2017-01-27 14:30 +0100
    Re: perf: use-after-free in perf_event_for_each Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2017-01-27 14:50 +0100
    [tip:perf/core] perf/core: Fix use-after-free bug tip-bot for Peter Zijlstra <tipbot@zytor.com> - 2017-01-30 13:00 +0100

csiph-web