Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3393313imm; Fri, 19 Oct 2018 09:50:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61UVcJXzcjaWQeYvOTzuUjWSCFWSYFwDTtXL3Koao7OMLvgSnmtaIu2b+Cp92i2mvpxPA1o X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr33260206pgd.307.1539967810130; Fri, 19 Oct 2018 09:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539967810; cv=none; d=google.com; s=arc-20160816; b=zz3Fnhw0HaIrgdoYHxrMcyLKFHrPQ735wWhyOWJIhN6jSBdIPb5Mz7OKe3L7KJa/xN 1qGlL6bnaaCUvWT6+/GoWFJWdZ1BMkxcj7vkriuxjzG6/KijPoy7vA4YMHuawOyfpUlz WQsEo1e+B4y2jxnvgiHcZ8ATGuyDMWF53mMdI1dnECVQ+P7PHcGCsCQcTcgpFgHg7BKt IDt26/XNFlb+EuEI20areiNyVqkVBIV0EyTyN18lDYvxcYhpHsXrghlXCu833AH3mj0f 6bVlYNcUIoWHX6XQabK6kiyuKQSBmnVcLqzOZP8u7Kjfho71+pWr3x85EtoOclHp+TFH AvLQ== 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=+hr0l62+HDLRSrdcbEQyhbqrN6hEp4/aQYn+4/XSLrM=; b=ra30biQbs7oDgOQCL6HGsj8TxFnQTVMBrrTtdFDVoHncK/n0RMtTHHIRC7WNuO88TW 5ucIbOTnCLAoOixRVVvp4kGvIcztVdujHSWvNrmLVGaFdoq4yRDFwIu3r4IhowUBN1yN oLPM/t+fwI5qO25y3tFFHdL+jKR22yLAKPXjKpWJolFqjuNmGulf0D3p6nD6PikPY65A 03BQI319SsO+8FoqXyn5q5xT5v+eTjYLR4y4t0E2OoGJg90HkCIkGwkKNN9xYUnu6Yyc RXbLAtC0ohCUKZeWawJ6pVjrP4//WHAqLUljvWp3DPons6Pu7LKMfdpVS35haAyY43SE nPcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Df8+KY1d; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18-v6si22857726pgh.523.2018.10.19.09.49.54; Fri, 19 Oct 2018 09:50:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Df8+KY1d; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbeJTA4Z (ORCPT + 99 others); Fri, 19 Oct 2018 20:56:25 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35805 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727200AbeJTA4Z (ORCPT ); Fri, 19 Oct 2018 20:56:25 -0400 Received: by mail-lj1-f195.google.com with SMTP id o14-v6so31442789ljj.2; Fri, 19 Oct 2018 09:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+hr0l62+HDLRSrdcbEQyhbqrN6hEp4/aQYn+4/XSLrM=; b=Df8+KY1dID4yV+Ko5yzaV7jTsRE+nr4wtfTyFyIEinEwSsNPRwuhdlbdxxKpcmYNnG NPax8VOPFm+EkdkXaPkVvI5C8vGvZTqxOp32u/zXCJ5KuVOmd5lbNuNvb42RjGk9G5DX kHDF3oxSaKrPbwbayr5BLYF9Xr0Scsz+t7rv2patN3bIbzWe45ivGBNnwfK8rSs/7JSC pScB4r8Kugq2TgMISSGrgEZaL/Ssf6VQp+7ocpkslRH0IMT3W95I08vpsN1rej96qmgt c1rckGHH3KNDyCUl2kPSxf5+FBSQrJL2ritgVH9QOAyBdRddT3hEmBtwZuiNVCrpJkID z2qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+hr0l62+HDLRSrdcbEQyhbqrN6hEp4/aQYn+4/XSLrM=; b=ekDwBNFhBniKiyZrh8wN+66H3htIZXhsewm2fU0G1oqEiw9X7yL3UYSwpZXk2HxWT6 GrYnQIR550KHNfs0Z0E7BJ6E5R2lKLK7WzlL58a8aNMERvVeH9OrenvpTXTrTO6qRGA7 atOkD2D70Q9lCkf7s13LM4f4DqzSYPL6SobGLB3UBemGM7qXJfl2tMjUib45aBjTknM9 a/33VKVPKdmqKiNfBhL9qu8DRWQaeEVSpXPDxWf0mF+Nbm0TG4xgsYaycpTJ74Nvceqp SIqQlicsDGB9T+n/2RJ/WCQRmR0L55+8moY3sR+/XEqgInl10b8J37KvfAuMYgCAsgqG //BQ== X-Gm-Message-State: ABuFfog4n4Hl9Z8YH2W1kzL2ua2/36W4p1reZMrVBLnm7I66GplFVI5N BFdbrhJGuHMZ67XQM4KlTQ0= X-Received: by 2002:a2e:1b15:: with SMTP id b21-v6mr20272886ljb.104.1539967769258; Fri, 19 Oct 2018 09:49:29 -0700 (PDT) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id g14-v6sm5309895lja.96.2018.10.19.09.49.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Oct 2018 09:49:28 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id 1EE89460689; Fri, 19 Oct 2018 19:49:27 +0300 (MSK) Date: Fri, 19 Oct 2018 19:49:27 +0300 From: Cyrill Gorcunov To: Will Deacon Cc: Catalin Marinas , Kristina Martsenko , 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" , Christoffer Dall , kvmarm@lists.cs.columbia.edu, Ramana Radhakrishnan , Amit Kachhap , Dave P Martin , linux-kernel@vger.kernel.org, Kees Cook , Andrey Vagin Subject: Re: [PATCH v5 07/17] arm64: add basic pointer authentication support Message-ID: <20181019164927.GO2401@uranus.lan> References: <20181005084754.20950-1-kristina.martsenko@arm.com> <20181005084754.20950-8-kristina.martsenko@arm.com> <20181019111542.6wrvjguirglzg7vg@mbp> <20181019112404.GD14246@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181019112404.GD14246@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 12:24:04PM +0100, Will Deacon wrote: > > FWIW: I think we should be entertaining a prctl() interface to use a new > key on a per-thread basis. Obviously, this would need to be used with care > (e.g. you'd fork(); use the prctl() and then you'd better not return from > the calling function!). > > Assuming we want this (Kees -- I was under the impression that everything in > Android would end up with the same key otherwise?), then the question is > do we want: > > - prctl() get/set operations for the key, or > - prctl() set_random_key operation, or > - both of the above? > > Part of the answer to that may lie in the requirements of CRIU, where I > strongly suspect they need explicit get/set operations, although these > could be gated on CONFIG_CHECKPOINT_RESTORE=y. Indeed. Without get/set I think we won't be able to restore programs.