Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3065934imm; Fri, 19 Oct 2018 04:39:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60IrviwDuiNl66JyVaoT3cUiXnTgr+icOFdOTXH/BZv/gtisHXXDpAoh3EnOSpvmPc1MI8x X-Received: by 2002:a63:4904:: with SMTP id w4-v6mr32146241pga.303.1539949147065; Fri, 19 Oct 2018 04:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539949147; cv=none; d=google.com; s=arc-20160816; b=E3M+4XCqpLhH+/BD0dIh/iHU9gb6jcOTuPNkCl89ERVLkzSP1H9FbhRRfBcmvWRJgh RMf3xYjpq/3R/MMoD0zeK6W4f3b02pHWzVrB1Q8ufW4mgqZT4zcjof4DfNUN8hFfMXZF 5oj1ZaSmyJDiKZbo57jecAgDv+1yolC88OytmKrhfnQ0jzuBhvQMYCYwDmw9IEJL20EC oagFONNkRmKi0xFd8ur32P+0G/C+vukg/SCqCtGLY7YpRBfHaOj20IA6bMqiW7WPBmeT Vyxap/eilGThxCdEcTZnUOusSK8HJSi/Iy4GAkmaybOveY2nFCbwl+sjHBuvuvxCbbuE b33Q== 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=iGj8H+RpLZDrDYcqfqJwjmJ/6NvACsUXzXb7KlU7oQU=; b=D0gg0jnxKI950tmEBOWNYAA5gQEWrCz9pQsz1mW1Fl+sel/lQsLoTvnNfj/5PTHiMb NHK28AJRQxxyTSwkUJCkGlXd3BpCLKBF9OHhN0hr6EOQQasKzV3FiH7FOMPxYZVHgaX7 zryhOEbdJ79wsNh9Il9Fg/VPbaLtc5S2akm2nbbchka1xs6jM5lHXcnlc6byQQx/7huh 2Yr320Mh5kmjpIdSC6te//JZEzmVN4d0BkKp1vdZqdeVCV9Mid2vSRkZoE1RyXJFdIC1 +gQvEpfsBquEhvJ4Sr6LV2uwiz0ZZrQSFY48eVDGt1N3+CW2V6SSc3QVepayVA5cWz2t enbg== 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 d23-v6si23236576plr.127.2018.10.19.04.38.51; Fri, 19 Oct 2018 04:39:07 -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 S1727382AbeJSToI (ORCPT + 99 others); Fri, 19 Oct 2018 15:44:08 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50902 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbeJSToI (ORCPT ); Fri, 19 Oct 2018 15:44:08 -0400 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 27ED980D; Fri, 19 Oct 2018 04:38:27 -0700 (PDT) Received: from mbp (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 06EF33F71D; Fri, 19 Oct 2018 04:38:23 -0700 (PDT) Date: Fri, 19 Oct 2018 12:38:21 +0100 From: Catalin Marinas To: Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, Mark Rutland , linux-arch@vger.kernel.org, Andrew Jones , Jacob Bramley , Arnd Bergmann , Ard Biesheuvel , Marc Zyngier , Adam Wallis , "Suzuki K . Poulose" , Will Deacon , Christoffer Dall , kvmarm@lists.cs.columbia.edu, Ramana Radhakrishnan , Amit Kachhap , Dave P Martin , linux-kernel@vger.kernel.org, Kees Cook Subject: Re: [RFC 12/17] arm64: move ptrauth keys to thread_info Message-ID: <20181019113820.jly74g2kk3cxf3yp@mbp> References: <20181005084754.20950-1-kristina.martsenko@arm.com> <20181005084754.20950-13-kristina.martsenko@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005084754.20950-13-kristina.martsenko@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 09:47:49AM +0100, Kristina Martsenko wrote: > From: Mark Rutland > > To use pointer authentication in the kernel, we'll need to switch keys > in the entry assembly. This patch moves the pointer auth keys into > thread_info to make this possible. > > There should be no functional change as a result of this patch. > > Signed-off-by: Mark Rutland > Signed-off-by: Kristina Martsenko Can we actually fold this into patch 7? It also leaves the door open to allowing per-thread keys. -- Catalin