Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4843464imj; Wed, 13 Feb 2019 01:59:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IYRcZe4FvRsOjQ+HMooeiwrE0cIv3hhJrb7JEE+gVSq/XD05ylcAUiCjW3G8T3BxsCdTm2P X-Received: by 2002:a17:902:8212:: with SMTP id x18mr6233539pln.217.1550051989532; Wed, 13 Feb 2019 01:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550051989; cv=none; d=google.com; s=arc-20160816; b=Q/QcmXdWvre/PnJ5zWqbBiDFWWoqyEeXkVqqhns+X1xXqD+u5K/eg+9ilLC+GL+MIf cQ0drOfCub13jOSDmfmUkOIcgatAXSZRLT7nRDIm6aOhmR6He87daNlgDSlWPME1vZU5 qUrx/jRh4oZ5PlnWwkDnG5FyNAaGlLrYTEVbkoggnfGYTAceWtS2iCacQYQ6i2/X4wjb D01taqjhpfFCB6Tgqjb9wy7yoZyZTO3IHZJi9HaaUI+IhBICyrR/J3v8KyxdHdXByVqD +lqKgrg3/TPdEsZD3CNUYbYBvXiWJzEeFAuqHzVNvX2fJ9gucSoTMKeOi09zqdCc39ld rvnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Iq0cmgIDwrMrikIoJnjo7xQm1OAkpZH739uIZKuVEZU=; b=UYkdQsgLEJdmJOsmUNoT5ZbOx1m51h5RsOTbDuzksKm9Qb0jzeUELjJBrm26xSoh5C zGtR/2T/+kJZcGh5DAualttQ6RdxT0U7v2LqD8LcCQVwqPYknYDi12+poDqfva5klZJU TKSp85VHzL35G5aHIfOG3Zkr21qZ9GG/xB35FbV+0BYEeV8+6vDBL2LGKXMgoaFw8Kr8 sCGYJhQXlvsBG+nXmGpTLyxiaIzNNSypG7vnnnV6izKWqEtdbNjktHKe7MXpB8Nprg6O 9+6DxWXxzTFRu2qL7SIIL1cLfa73jreVSnzxY3xQ43u88Y/QmgzuMBAovMFkeHjgJpCT uk/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=H9r4fjRq; 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=fail (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 p24si587554pgl.117.2019.02.13.01.59.33; Wed, 13 Feb 2019 01:59:49 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=H9r4fjRq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389282AbfBMHRQ (ORCPT + 99 others); Wed, 13 Feb 2019 02:17:16 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40474 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729686AbfBMHRQ (ORCPT ); Wed, 13 Feb 2019 02:17:16 -0500 Received: by mail-wm1-f66.google.com with SMTP id q21so1173157wmc.5 for ; Tue, 12 Feb 2019 23:17:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Iq0cmgIDwrMrikIoJnjo7xQm1OAkpZH739uIZKuVEZU=; b=H9r4fjRqZl+zdh/h02O4KFeuxfs1H2tY9idTKnZgY53aato3T9czbSAx2uX4x1LUUA dVNIWp25lUhnl1lP7/EW22K73RT5hWxpZPk8hy8yqHUmZIIuEDChF30rZ65ansbz0H/7 ihRP/Od2l/yOqSV036uZN/z1BPS5NK43x92pua9k/On5IeEP8UCg4UBUMUVasAru6fg6 fyaVSLfINCljP5+1cyf87kvWo5uaDZrJEczm1ON7Uk118GB0utstZuX4eJavR7W/4tuq 7pW6InXjv2xk3jrM/i0l91fSe7tRy1U38Cor5T+OavAhNNPml5ondSMTx5EvdShaEIvR j34g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Iq0cmgIDwrMrikIoJnjo7xQm1OAkpZH739uIZKuVEZU=; b=drXDXi5Xgb2MF+r6B/FJKBUylhnKezpLLfn3vGnSRdheVzBVZAS/tE8zqyIKZopgbV bNM288IOq16fnOzldtkY+ixVLBerZyx8IxKJhNwC0fhwgiP9XnNh/lwJO67OsQKBqKAM Lcn0FTODWkHXhiiNgbhaGE6blyCiLXRTcMW7wxhcFjjS/uCIZvfb6rnTWGUg4XQTxNQE aq1UTSWwCKVt3NWrYkLw/dga4gGfFubrlP3FJ+esg5pr/QMNdnvILEq60+QFfCj4+XET VsHHsdQppRD2R76N9uJNh46ooNjC7EjgOUHuJ902tpcMjGrHuFtjIThrqMxZrKHRiMQt H1yQ== X-Gm-Message-State: AHQUAuZlBGYplB0fCAruDSIDEcSU/2EWyyCaA4ZfpbrqvCNN8Tj+L1i/ QevPlP+tvwNQ9m8fItVPAEw= X-Received: by 2002:a1c:2787:: with SMTP id n129mr2079379wmn.128.1550042234146; Tue, 12 Feb 2019 23:17:14 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id z1sm9344221wrw.28.2019.02.12.23.17.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 23:17:13 -0800 (PST) Date: Wed, 13 Feb 2019 08:17:11 +0100 From: Ingo Molnar To: Masami Hiramatsu Cc: Ingo Molnar , peterz@infradead.org, Mathieu Desnoyers , linux-kernel , Andrea Righi , Steven Rostedt Subject: Re: [PATCH -tip v3 05/10] kprobes: Search non-suffixed symbol in blacklist Message-ID: <20190213071711.GB121801@gmail.com> References: <154998785011.31052.1475728497912659748.stgit@devbox> <154998799234.31052.6136378903570418008.stgit@devbox> <20190213071316.GA121801@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190213071316.GA121801@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > Newer gcc can generate some different instances of a function > > with suffixed symbols if the function is optimized and only > > has a part of that. (e.g. .constprop, .part etc.) > > > > In this case, it is not enough to check the entry of kprobe > > blacklist because it only records non-suffixed symbol address. > > > > To fix this issue, search non-suffixed symbol in blacklist if > > given address is within a symbol which has a suffix. > > > > Note that this can cause false positive cases if a kprobe-safe > > function is optimized to suffixed instance and has same name > > symbol which is blacklisted. > > But I would like to chose a fail-safe design for this issue. > > > > Signed-off-by: Masami Hiramatsu > > Why did you not add Steven's Reviewed-by tag? The series looks fine otherwise, so I applied it with Steve's reviewed-by tag added. Thanks, Ingo