Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4248039imu; Sat, 19 Jan 2019 05:33:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4cdfyRiy2Y+I/wV3YEWw0RCmY8O8coIPcZjIanSZOoYfZire6O/EFGFiUW8ZSwbFZSHtvc X-Received: by 2002:a62:798f:: with SMTP id u137mr23427287pfc.168.1547904821382; Sat, 19 Jan 2019 05:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547904821; cv=none; d=google.com; s=arc-20160816; b=04WOdpVxf2KWRquOhDH4kaumKXnmx2LGKTm9X/CNSxlskk6T7kQaBq+5RAm7P1pl9s ibeKdb6+/kdfj1bQD3hiH5NdJH+uOBT5JVC98mmpttdQ0uW5XqTYGWAGLaypQSobRv/G Y/1Igmu5Y8F4YbasgQaxiMMqnuXtX0kO44gA3hj+RDGKkB7IekNEKLvmS9tZDUcuK2F2 QtLy74/M413F9eelO4Gqam02n5EB98T80oqOpP8B1665dVaEo+1khhlssEy3nFdj6XYn jeYNFRJH2ActnZYj6jXBWmEVZQf5CYGAKrwQ5PF41PGGoX7dVKDDas3suay4rhkKi34Z y3Zw== 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=h8z9zXGP/j1upHdl4msrzBDCzt6xFR7mzUabYs35ISI=; b=H+QJaOmBxuDrbXx3tXF4O83z6Za/abV4pdzarNZugmn5eYMFDF7NQlipE3Nda3sWzT R7VpcCP6VBD2+Hr1cepYnZWh6xwQRrqC0vkGg0qMJ/ZJLpheQB/gcC7/CzHJveJrC4xn TI7PAIAzPa6ID97tKYm0Btr2tW6i2fj7I5qiBfLQ8x5FkQV7tKvaZYCHGUMVDtcbV8qG deYdlM0ZZHBIxTdqp897TAkdpNwi3AT2ed3t0omueCLg1Ka7eCiElMDgwvDk4LsIwsXn EUCEx7nJqI1HCOuqu6bv03NsS2tTItbACs4k6iecS5mbqqzuS2eZZGE64VmVbNRREwPN 5MAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JWpGMpGg; 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 j61si7093402plb.232.2019.01.19.05.33.25; Sat, 19 Jan 2019 05:33:41 -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=pass header.i=@kernel.org header.s=default header.b=JWpGMpGg; 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 S1728119AbfASNbb (ORCPT + 99 others); Sat, 19 Jan 2019 08:31:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:57424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbfASNbb (ORCPT ); Sat, 19 Jan 2019 08:31:31 -0500 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 BBAA82086A; Sat, 19 Jan 2019 13:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547904691; bh=69JKOV4aZJgNkcHQhaXRUy/LvLRubnjjGz8b+joy6xg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JWpGMpGgYrSJ1SYVCdWK2KR35Hl+lLtVPTNZ9mE64uCtu7UEB3zj6PQ9SCmO6ZfmV znxq3kbP9ixGV2mTPkbQJEJX9tviIGJcIE2R8osVWjyn87HZKhNotKTcORumLHrz3N G1R4EcQywDrJiKRl0LuKkxD/Cq8BNlalfWcuB3+Q= Date: Sat, 19 Jan 2019 22:31:26 +0900 From: Masami Hiramatsu To: Will Deacon 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: <20190119223126.6741b98ffae45b52f433a650@kernel.org> In-Reply-To: <20190116134007.GA15255@fuggles.cambridge.arm.com> References: <154753341900.31541.8135985235882849464.stgit@devbox> <20190116134007.GA15255@fuggles.cambridge.arm.com> 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 Hi Will, On Wed, 16 Jan 2019 13:40:07 +0000 Will Deacon wrote: > 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? No, I don't rush it, since these are not bugfix but just enhancements. (User can see the blacklisted symbols precisely) If you think you are easy to pick this to arm64/next, it is OK to me. Thank you, -- Masami Hiramatsu