Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp640427imd; Thu, 1 Nov 2018 03:14:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5dJFPjA8OqMkoMD2EkaPHlCyaMAI1eZtF9gLOb91wh6yp/5zrwb0TwAZ9k+zqpuDIZC0W7g X-Received: by 2002:a63:1b48:: with SMTP id b8mr6700971pgm.187.1541067287510; Thu, 01 Nov 2018 03:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541067287; cv=none; d=google.com; s=arc-20160816; b=0HfCLKja2XWbwTLk96TrmShfT0K9wSWMDoOO4VWtDXBR80yZFweJpzUFHmCIRN/EuD Jl1w/ROGF1L+dsTrv7d1ZqNGyX9pnq6Ih2sPU7zK9HpykbMs2fFpHTNvMgpawy+QldAH tkY68cqp7nqJG8M9nxZHzt9x4XcAMjax3rizmCA04uOE9nRZYl5vGcd2ziMaMwqSI4yY 84bd+nWlkqG7wnJfQ1ARsCmM9LcThNIYEAgb0VcWdHZdcsj1YKb3Y7P3Flt+d+rgNHK6 F+DLabqc8irsBn/xQuharmx0VGkxzlFhERrJUCv5X5hbmupR517P+hI0nG7zG9AJgHpQ y++A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NYLFw3Tbs3wRYYCO198jDVN+vCn/lwtE0puGgtrMyWk=; b=sAbGihrQwkMqbhQM8DavB4madJDh//6MwhvZp4zlwNxSr1KjtWe1JVfKUJSgMRkq8t 9cgWrkvd1eHiknGDx5h2Yv867DUPZjDs3xbMz/zqkV7fBdFP/MYG4a0mP+au2KbxLhBG l8etwgKkrsVHkwQcKNn5P4xmSJyZu5Q53zvu6Ogo4ScqZNtG2wBJ3F8EfJccd2bsT+J9 lLGUtnF4itXY27xcVeuFaoQUFTvjBVhkaf0COD4yVnD9sHClofquvSxzwG/2A83emyKN bOIfVKowhC4KWXyyBewf8ReIoVFBdTRLiXwXjtYDyfpMZquyk1uDjxyV/cdppjptUDHg FcaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LTnaAUk3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13-v6si29257633pgq.285.2018.11.01.03.14.33; Thu, 01 Nov 2018 03:14:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LTnaAUk3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727736AbeKATQL (ORCPT + 99 others); Thu, 1 Nov 2018 15:16:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:47606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbeKATQL (ORCPT ); Thu, 1 Nov 2018 15:16:11 -0400 Received: from devbox (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 47CD92081B; Thu, 1 Nov 2018 10:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541067231; bh=4f9/JYwKkffXHyozI8uwla/glWKAImJE1/DU/Q3rfIM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LTnaAUk3XO8PkjGHPnsRZUSCJTOluYMg5zRBoZMYw1dMaa3EillbsV+q/7iczXNAE +AJfIf4R/mAJVYk2R+9iyOnyrfiT4CWn6tgmlsf5A9s+6OIErOY3hdYG7SQ+m7xiN5 3+696RI5SqM8MwqfEc6En91gnrK2f4AmnaypBOrY= Date: Thu, 1 Nov 2018 19:13:47 +0900 From: Masami Hiramatsu To: Aleksa Sarai Cc: Steven Rostedt , Masami Hiramatsu , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Brendan Gregg , Christian Brauner , Aleksa Sarai , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kretprobe: produce sane stack traces Message-Id: <20181101191347.74eadff4a5d1fab2d79d7efe@kernel.org> In-Reply-To: <20181031133912.3j5tryq2vyhkdn4d@yavin> References: <20181026132210.12569-1-cyphar@cyphar.com> <20181030101206.2e5998ca3c75496c91ba5b09@kernel.org> <20181031090317.4e211fdd@vmware.local.home> <20181031133912.3j5tryq2vyhkdn4d@yavin> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Nov 2018 00:39:12 +1100 Aleksa Sarai wrote: > On 2018-10-31, Steven Rostedt wrote: > > > Anyway, until that merge happens, this patch looks good to avoid > > > this issue for generic solution (e.g. for the arch which doesn't > > > supports retstack). > > > > I think its time to come up with an algorithm that makes function graph > > work with multiple users, and have kretprobes be able to hook into it > > just like kprobes hooks into function tracer. > > > > I have some ideas on how to get this done, and will try to have an RFC > > patch set ready by plumbers. > > Should I continue working on this patchset? Yes, until we finally introduce Steven's algorithm on all arch (yeah, we still have some archs which don't support graph-tracer but supports kprobes), I think your patch is the best fix for this issue. Thank you, -- Masami Hiramatsu