Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1446746imu; Wed, 16 Jan 2019 20:11:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5T6ke5b2cWKzen4EFpLM/NMCxCqoTJ3PL1vwDUMAeOCe76a329JAuIAyapXn+3iFvIhFDu X-Received: by 2002:a62:7f93:: with SMTP id a141mr13381608pfd.96.1547698287707; Wed, 16 Jan 2019 20:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547698287; cv=none; d=google.com; s=arc-20160816; b=oI8JTORanvHFzxvI2Z0TDrWKCiELEOByy32+hlW4AL+yr8La8Xl074ahIWPOJSWpw7 aVoQmnwC/WQEVyZL3ljqO/Xn5xjQDRDUkD0XHZlW43mlWWnYYpopCLSB3u8R4vjpKBEX XmC2G+xaXZN9lbdcAbFpqHEOfJuYEG01SmabIGKnn7H6jj4OjhlB+pDBxGc9ls4fGy7G vRQV1c4/Y2dcN0IabvEHKB2IRP2iNCbEvpOMhGZOJntqVHnJEVwA7PhZH2j7MaefrOfy N1xN2ddQFAVFoW7mzE+L9gt0N9yV6lQFKUiVP3tTnjnz95T5J27s5jmaP560f8ukUzxm esnQ== 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; bh=sbqwv3Ffqx2Q4nIFtDJPKY9GnX4lhGJGuSsCfycM4ok=; b=swBXdm6nhzLe5y1vWYUaPPI74IZFOiyKHNsY3R9qKefOaOb+IfZUbOunhdTnQcz/sp QwHvkfymiwGcqoeQFfuo0SL8DdlycdZPXNjXNHWy26s7NWsSEuwF3vm6ucU9l2N8MkEG JKusMCfRcV+ZJC14HpbPglUgknQDrVmw7OYdgCwfqRGns7z+Foku1jeIjARXwuP8f1qc dVvpoov/n1zWQuU191dfBVJ2ZqE1xUcQntWorRWgEv1LdtwoBHRqgebhChvMQUeb/kfk MhqM8RYZlyaIhGCqjIfypFu1Nklp3eadmt/zJHmzloxeryMz41++fimtNaGaOrCOYDnM NMYQ== 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 d40si454904pla.427.2019.01.16.20.11.11; Wed, 16 Jan 2019 20:11:27 -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; 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 S2390580AbfAPNkO (ORCPT + 99 others); Wed, 16 Jan 2019 08:40:14 -0500 Received: from foss.arm.com ([217.140.101.70]:48450 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730657AbfAPNkO (ORCPT ); Wed, 16 Jan 2019 08:40:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A5A5780D; Wed, 16 Jan 2019 05:40:13 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 443C43F70D; Wed, 16 Jan 2019 05:40:12 -0800 (PST) Date: Wed, 16 Jan 2019 13:40:07 +0000 From: Will Deacon To: Masami Hiramatsu Cc: Catalin Marinas , Pratyush Anand , "David A . Long" , linux-arm-kernel@lists.infradead.org, linux-kernel , James Morse Subject: Re: [PATCH v2 0/4] arm64: kprobes: Update blacklist checking on arm64 Message-ID: <20190116134007.GA15255@fuggles.cambridge.arm.com> References: <154753341900.31541.8135985235882849464.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <154753341900.31541.8135985235882849464.stgit@devbox> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masami, On Tue, Jan 15, 2019 at 03:23:39PM +0900, Masami Hiramatsu wrote: > Hello, > > Here is the v2 series of update of the kprobe blacklist > checking on arm64. > > I found that some blacklist checking code were mis-placed in > arch_prepare_kprobe() and arch_within_kprobe_blacklist(). > Since the blacklist just filters by symbol, smaller than the > symbol, like extable must be checked in arch_prepare_kprobe(). > Also, all function (symbol) level check must be done by blacklist. > > For arm64, it checks the extable entry address in blacklist > and exception/irqentry function in arch_prepare_kprobe(). > And, RODATA check is unneeded since kernel/kprobes.c > already ensures the probe address is in kernel-text area. > > In v2, I updated [1/4]'s description and added James' > Reviewed-by. Also, in this version, I added a patch which > uses arch_populate_kprobe_blacklist() instead of > arch_within_kprobe_blacklist() so that user can see the full > list of blacklisted symbols under the debugfs. Assuming these are targetting the arm64 tree, are you intending to get them merged for 5.0? Will