Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp723094ybh; Wed, 11 Mar 2020 09:30:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvcZpKJSw3Ogqhf7mt+GSYaY9Cuh8ZfO7h24RDCD33DdPq1nUf3wulIeW3h3eWSJtFXt1V4 X-Received: by 2002:aca:4b56:: with SMTP id y83mr4092oia.142.1583944254801; Wed, 11 Mar 2020 09:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583944254; cv=none; d=google.com; s=arc-20160816; b=Q97zCms7F+RMo/YP5v4BSddM5MFO3GI/ky5aEC9W3ge8cq219BKqkXk5F3DZk9yoo7 wuQf0wtIonDZTg4vGh13T8xfCFVVOZNMeATaGsKQ/4oj5zAuXMOWZQx3cLorelLHdVnk sWzQvAp8G0QJwoFVfQXWrXmpFGSTcvOPP7CBK2soRdL3QbJDRyny4S3TbavIdg+IyQLJ MUDu76ExcSBvZ784Be75KWsTk3e6wvOp3WbL1nisCWCqTifFOaWIm7+ueDGs042A/FuZ Fx51twOxo3HAIJtTTWNfNqW+5hWWUjTge+f3/tBeO8RprQbQYpAQ7qtnPjy+ZSRe91ha vZng== 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=edaevGbFkigD52AbjQYSrRSgpicWo1ui25ykOuhj7AE=; b=vBp53vw68BkdgQ9/6fOvEmrwoxjEuNieNLETzD/uPufr66/v6Mt5ZLM+VBWiSLstbO jhC8LTReh4JYCcGCfVL0Ak1t0ttboFsOKOi61y85yHyZMRbOejNrWwpy5ky2/zSrmr7c jkbzHttJ0tFklpkwde8i0CAzzTlE1z5s+OvAcham7Pa/D6tMSgRZTaqApn0Kr0+IeeN5 8p5Z4LUEM0gm58K9QDhV5gMwuUPEtM48dE8PKRTjQCmgc5j0ohGyJkg2wCEQf1W4g8LW V68IJ/8qgEBG4WUHOAvvHFiiOKNTNG4OHJgrU35wc0ADYt3MP9KcVj4FjgA0XuF1nqg6 7frg== 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 h11si1405961oti.74.2020.03.11.09.30.38; Wed, 11 Mar 2020 09:30:54 -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 S1730202AbgCKQ3E (ORCPT + 99 others); Wed, 11 Mar 2020 12:29:04 -0400 Received: from foss.arm.com ([217.140.110.172]:51624 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729511AbgCKQ3E (ORCPT ); Wed, 11 Mar 2020 12:29:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B8FD47FA; Wed, 11 Mar 2020 09:29:03 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B93C63F6CF; Wed, 11 Mar 2020 09:29:00 -0700 (PDT) Date: Wed, 11 Mar 2020 16:28:58 +0000 From: Catalin Marinas To: Mark Brown Cc: Will Deacon , Alexander Viro , Paul Elliott , Peter Zijlstra , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , Marc Zyngier , Eugene Syromiatnikov , Szabolcs Nagy , "H . J . Lu " , Andrew Jones , Kees Cook , Arnd Bergmann , Jann Horn , Richard Henderson , Kristina =?utf-8?Q?Mart=C5=A1enko?= , Thomas Gleixner , Florian Weimer , Sudakshina Das , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v8 00/11] arm64: Branch Target Identification support Message-ID: <20200311162858.GK3216816@arrakis.emea.arm.com> References: <20200227174417.23722-1-broonie@kernel.org> <20200306102729.GC2503422@arrakis.emea.arm.com> <20200309210505.GM4101@sirena.org.uk> <20200310124226.GC4106@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310124226.GC4106@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 12:42:26PM +0000, Mark Brown wrote: > On Mon, Mar 09, 2020 at 09:05:05PM +0000, Mark Brown wrote: > > On Fri, Mar 06, 2020 at 10:27:29AM +0000, Catalin Marinas wrote: > > > > Does this series affect uprobes in any way? I.e. can you probe a landing > > > pad? > > > You can't probe a landing pad, uprobes on landing pads will be silently > > ignored so the program isn't disrupted, you just don't get the expected > > trace from those uprobes. This isn't new with the BTI support since > > the landing pads are generally pointer auth instructions, these already > > can't be probed regardless of what's going on with this series. It's > > already on the list to get sorted. > > Sorry, I realized thanks to Amit's off-list prompting that I was testing > that I was verifying with the wrong kernel binary here (user error since > it took me a while to sort out uprobes) so this isn't quite right - you > can probe the landing pads with or without this series. Can we not change aarch64_insn_is_nop() to actually return true only for NOP and ignore everything else in the hint space? We tend to re-use the hint instructions for new things in the architecture, so I'd rather white-list what we know we can safely probe than black-listing only some of the hint instructions. I haven't assessed the effort of doing the above (probably not a lot) but as a short-term workaround we could add the BTI and PAC hint instructions to the aarch64_insn_is_nop() (though my preferred option is the white-list one). -- Catalin