Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4842609imj; Wed, 13 Feb 2019 01:58:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IbY5UqW6U52UmQqKzWJNzgwdbtWf61KVwJtRAfGVwsyEglZ+brkH9DVs3mja+BWM4s9tH5h X-Received: by 2002:a63:cf54:: with SMTP id b20mr8181979pgj.123.1550051909108; Wed, 13 Feb 2019 01:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550051909; cv=none; d=google.com; s=arc-20160816; b=eGpfqenTirKofzHIR2xcQOAHgRnE4vqGtdh3RHqYt+f3KkrnPf55WyOZ34C1vJu6UU mCI5b9DoZ6rm0jGTt4eod1a+j0i+qr3Fw0UvikMUHGdKnVcKpbjT95WJD70y7vO43yDN W61pbeZHxTBiP3mDrTYvGQj4858toA+JWiuQVju3S+ZjDD9Vh+VItp2mLtTLyPBhVW05 gULC5ZjuLqccZNte+27+ERO2fTet1zO7gHeRfKs9p1Y3H0FvIp/RtRgKCfede/VgVZto IDmYCTcLXp4KGgk5S5Dw1YuyuFabhBWCNYzlBHeukY0Yp0KoGxw2FthS/UOnwcFC2M5g ef2w== 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=tJadvOOpW0XKhtnMY260xrtOkruRY0lNhP4zR9JalGo=; b=E3gzppwoiXa6oC12CcCeOnSSc0C9kmAtm1T3wMrDrb4Jxch3s4wQ5HNlMqQ0NSAEDw +KVnMSSVEvrJwcScUIVeUpaZVZZhRUFmW6glUBu/ijK3z/C9zaKpmX/h3K3jJCPqDI6w iSXGepH1Qrs3N5TBPo67KBfrZHuu74hoF0DIPKMKria+A0I8OiROrXf0pOcnmj/LRVn1 y1MEG1AWbr7glFsrR/3UXecQTCpkKXC02jv7Kd3c/UfSDt6s5uRl9rakmV6I46v47OHc zEAB8peDVwf8qu8CJ1mA1eNxAy5aHliNtBW2V1bw9DjKMItQ8RDm6N9+FeTFcLHHdYux loRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s1YBfNyY; 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 88si16111540plb.288.2019.02.13.01.58.13; Wed, 13 Feb 2019 01:58:29 -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=s1YBfNyY; 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 S2389114AbfBMHNV (ORCPT + 99 others); Wed, 13 Feb 2019 02:13:21 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:36756 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387769AbfBMHNV (ORCPT ); Wed, 13 Feb 2019 02:13:21 -0500 Received: by mail-wm1-f45.google.com with SMTP id j125so1185427wmj.1 for ; Tue, 12 Feb 2019 23:13:20 -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=tJadvOOpW0XKhtnMY260xrtOkruRY0lNhP4zR9JalGo=; b=s1YBfNyYntbh0K9mFj9GIi8rUPUrxhEq9Td3u1fdgJjll05d/rrPLGftZtureb/wCl MKM1WXnA5seQOLCur4dHxNUWNMt5VGUxwOT6zv6Q2QjGAAuxX4YgCEA7+lDvk8AQk/sI OwGCvTu00zXWiH4ccv7wgGhksMwHXFFhIbcsNHKJQ4B5ahtHcWKiwDOZHkJ+qXBcPnMF Dc5cu2y2fBt6uAWlEfe058MqBEYBzDfu9Agp/FirxeBO9r4waWSnkPMdR1o2BWLvKFqF xVCyHmAa3U2FWaCtiwn6FDVimlJOI5s1LuowtY7hapxOdq2mlbE7ssLTF+4zRwYv+VL3 Cp7w== 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=tJadvOOpW0XKhtnMY260xrtOkruRY0lNhP4zR9JalGo=; b=C/SNV0CPdvE9q0GF2btK+DqWW2iGrtt2CbcrCGAKMSeXP+zJYUyW0SpIuzXv+YgZXW 4hZ4NySSbsnR14BcdT+AQfDPCFUyIRissIJlZRxi2huFEFDHgEM8I+hAPbFr94mImTiM n/h7RL1+MEzMnzPThxoIwkk+crn3v3PVhMzZFPAOfd/Jx972cqYUyXjZ3W/b5wdkKbzJ jQhge+AnvQ39IWPE9qXrZkUeOwP/iz1mVJGamPSHNnexTNvzFnQb7jJMH2LJEYZDgCy3 F7XY3JoRQc/Lstd/0WntWHVEArC3OAj9q9e25gcU2c84AYGQIGoDLc0L9n1Dnab8Evgq 0tgg== X-Gm-Message-State: AHQUAubpwuWAVaVuWVewCzwQxPM2tcU8JJCu5G3eQ70FOgv8peJDMhQh dMsPbRbVeynAQUckxIQYonPvl+FW X-Received: by 2002:a1c:a6c9:: with SMTP id p192mr2024424wme.58.1550041999422; Tue, 12 Feb 2019 23:13:19 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id m4sm5296649wmi.3.2019.02.12.23.13.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 23:13:18 -0800 (PST) Date: Wed, 13 Feb 2019 08:13:16 +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: <20190213071316.GA121801@gmail.com> References: <154998785011.31052.1475728497912659748.stgit@devbox> <154998799234.31052.6136378903570418008.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <154998799234.31052.6136378903570418008.stgit@devbox> 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 * 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? Thanks, Ingo