From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932582AbbLHDYL (ORCPT ); Mon, 7 Dec 2015 22:24:11 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34750 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932347AbbLHDYK (ORCPT ); Mon, 7 Dec 2015 22:24:10 -0500 Date: Mon, 7 Dec 2015 19:24:06 -0800 From: Alexei Starovoitov To: Dmitry Vyukov Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Eric Dumazet , Sasha Levin Subject: Re: use-after-free in __perf_install_in_context Message-ID: <20151208032405.GA47397@ast-mbp.thefacebook.com> References: <20151207153630.GB6356@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2015 at 05:09:21PM +0100, Dmitry Vyukov wrote: > > So it would be _awesome_ if we could somehow extend this callchain to > > include the site that calls call_rcu(). > > We have a patch for KASAN in works that adds so-called stack depot > which allows to map a stack trace onto uint32 id. Then we can plumb I was hacking something similar to categorize stack traces with u32 id. How are you planning to limit the number of such stack traces ? and what is the interface for user space to get stack trace from an id?