Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp674399imd; Thu, 1 Nov 2018 03:52:24 -0700 (PDT) X-Google-Smtp-Source: AJdET5d61Jz/VVuQhxhgXHOWqV9CReBYf99dPF0UQ7Mu59Xk0MSsw95FQCqTD3cnKYaLPytkc/Rk X-Received: by 2002:a62:1fdb:: with SMTP id l88-v6mr7214204pfj.213.1541069544530; Thu, 01 Nov 2018 03:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541069544; cv=none; d=google.com; s=arc-20160816; b=NfgOFV6roIQNoUsBMko7YXsxmoRNVVgRvI4Rcqhx00WaDL9feCguLIh/mtWX9z1NcN 41Rdo4qFdIaimkpsNXB9AFhxNZM8HFjyg2G9ciwbgXv1MFE43Crghp7G/KEnagMVCyR4 FkNk1DTla4qZ0lJG1zyGtGpPFEX+yQ9tDTaj+/7sQLHIW0ks+KiPKL3gifBYWr7NrVIL +jokaIALaDv5KNlyJ1yp0Ktkh5OLJiR0rD08QZVs3S56S8I5h8t2bw3mVpG7NgzmcofQ eKOErjSLtXXzO7cub2slyjsYWeIVWVH8fwKlGJpTUkwgSgEzjrd30mgc3eHgBAS7ddh+ mtag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3vaByJTNr26noQuzwCIrL+YafQr19o9Aq7DQHDBAFC4=; b=AEBFXm2VZd9qDjCn9ylD5XYV/BIQpfCYoWNEeAgCieXQCSjVJ/Tv7tN1txRNsq7RE3 vyw6t0w+aagEEoEqty+K+7NarGw7EJZ4Ck+WYCFSPya6DjEmnN/REQKIooHjlVzKbD8H 3YWTiblsuXCCSYTxFqOWDOUTHgWchoIVdHRIgtRlU0jATKtDKHppU2BCJcWn6wyGdgGB I685FCZQ4ei2bzQsNN6e9+UV48wgjDB+UuIHepLUDqyzBd0TO/v8WDW3T7I7wJWBbbi3 /F2oJuAxJFwXxCnROGSGnfs+wsMDKVpDHsTHHyM2TsamkzDsRj9dnW4ms3SnBzDTVGPQ Omdw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q201-v6si14664353pfq.14.2018.11.01.03.52.09; Thu, 01 Nov 2018 03:52:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbeKATwi (ORCPT + 99 others); Thu, 1 Nov 2018 15:52:38 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:55278 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbeKATwi (ORCPT ); Thu, 1 Nov 2018 15:52:38 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9F63D4B6C5; Thu, 1 Nov 2018 11:50:10 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id vwuC7OzXJZOW; Thu, 1 Nov 2018 11:49:59 +0100 (CET) Date: Thu, 1 Nov 2018 21:49:48 +1100 From: Aleksa Sarai To: Masami Hiramatsu Cc: Steven Rostedt , "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: <20181101104948.bc7wk453bfryhhk7@yavin> References: <20181026132210.12569-1-cyphar@cyphar.com> <20181030101206.2e5998ca3c75496c91ba5b09@kernel.org> <20181031090317.4e211fdd@vmware.local.home> <20181031133912.3j5tryq2vyhkdn4d@yavin> <20181101191347.74eadff4a5d1fab2d79d7efe@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mfvf6vzxsoivpjki" Content-Disposition: inline In-Reply-To: <20181101191347.74eadff4a5d1fab2d79d7efe@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mfvf6vzxsoivpjki Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-11-01, Masami Hiramatsu 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). > > >=20 > > > I think its time to come up with an algorithm that makes function gra= ph > > > work with multiple users, and have kretprobes be able to hook into it > > > just like kprobes hooks into function tracer. > > >=20 > > > I have some ideas on how to get this done, and will try to have an RFC > > > patch set ready by plumbers. > >=20 > > Should I continue working on this patchset? >=20 > 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. Thanks, I just sent a v3. Though, even with Steven's hooking of kprobes I think you'd still need to stash away the stack trace somewhere (or am I misunderstanding the proposal?). --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --mfvf6vzxsoivpjki Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEb6Gz4/mhjNy+aiz1Snvnv3Dem58FAlva2ksACgkQSnvnv3De m5+IKA//fWlK5aWXmaK9C+YmWL1Q3IG+m4i6rzoV42tQO3bZkFWwomExK/zvk6p0 ojzzXTffRBApcmUGqGEZPVHI1evGwHx5Xb60yFSFYXeIJmp5soeZuQEjK+NVpMo+ onnd+yNNevsBgRd6wEM+RM19mu8RaoakdYKB3D9m020p7VSkpXY1nHHznKdxzm+O xhD3ePM6ObgTPRVxy30FvtjNtf4RNaLKBBJfoflAnRsKsLaHCUt+yXISHaL0TpbR FDpZ+p01AE5nOA6hjM33ekYM4/p0TQ4YRNtCQz5lxUALcdyngkzD14f3DvUyuKQl wQRxe8S5LU3ePHeocLCvcVVZ3jgz9bxooeyRVTd4pjlSxrPn26lWMYBxN+U4LRoA qhwkccS9vgqJwMfhPdvmI97iiMm2Y9bD5htZK80Tmb6bLNnnJR4kFiKYcIcpPcG2 Ml/qoYLdn0MXE+SEQ25Rao0ql8YZsiWXqyNMBWcJCWwIg2dJ1oldZGnajjGRL9wy lly6v8RpS5tPBOnDvP4glazDj8mIXCCXbOj/3RnAvR6ci3PneWCKm2fA1kM1T5YK HTnCSpkKkPySYhafQUF+CP/hiUuFQg4mo3opjbug8i9jhjNrj8ffUlzMFF2z1VDZ SQMRu9KUCX+mC34h2yYuq8H/tVZ+exv4Xxm6m5UUR00Z9H3S6Y4= =bD1t -----END PGP SIGNATURE----- --mfvf6vzxsoivpjki--