All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Morse <james.morse@arm.com>
To: Amit Daniel Kachhap <amit.kachhap@arm.com>,
	linux-arm-kernel@lists.infradead.org
Cc: Christoffer Dall <christoffer.dall@arm.com>,
	Marc Zyngier <marc.zyngier@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	Andrew Jones <drjones@redhat.com>,
	Dave Martin <Dave.Martin@arm.com>,
	Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>,
	kvmarm@lists.cs.columbia.edu,
	Kristina Martsenko <kristina.martsenko@arm.com>,
	linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>,
	Julien Thierry <julien.thierry@arm.com>
Subject: Re: [PATCH v6 0/6] Add ARMv8.3 pointer authentication for kvm guest
Date: Tue, 26 Feb 2019 18:03:56 +0000	[thread overview]
Message-ID: <7dac868e-c0dc-ce20-a183-b42f694ffb12@arm.com> (raw)
In-Reply-To: <1550568271-5319-1-git-send-email-amit.kachhap@arm.com>

Hi Amit,

On 19/02/2019 09:24, Amit Daniel Kachhap wrote:
> This patch series adds pointer authentication support for KVM guest and
> is based on top of Linux 5.0-rc6. The basic patches in this series was
> originally posted by Mark Rutland earlier[1,2] and contains some history
> of this work.
> 
> Extension Overview:
> =============================================
> 
> The ARMv8.3 pointer authentication extension adds functionality to detect
> modification of pointer values, mitigating certain classes of attack such as
> stack smashing, and making return oriented programming attacks harder.
> 
> The extension introduces the concept of a pointer authentication code (PAC),
> which is stored in some upper bits of pointers. Each PAC is derived from the
> original pointer, another 64-bit value (e.g. the stack pointer), and a secret
> 128-bit key.
> 
> New instructions are added which can be used to:
> 
> * Insert a PAC into a pointer
> * Strip a PAC from a pointer
> * Authenticate and strip a PAC from a pointer
> 
> The detailed description of ARMv8.3 pointer authentication support in
> userspace/kernel and can be found in Kristina's generic pointer authentication
> patch series[3].


> This patch series is based on just a single patch from Dave Martin [8] which add
> control checks for accessing sys registers. 

Ooeer, If you miss this patch, (like I did) the series still applies to rc6, it just
doesn't build. If you depend on extra patches like this, please re-post them as part of
the series. (you need to add your Signed-off-by if picked the patch up from the list).

This lets people apply the series from the list (everyone has a script to to do this),
without having to go and find the dependencies.


> [8]: https://lore.kernel.org/linux-arm-kernel/1547757219-19439-13-git-send-email-Dave.Martin@arm.com/

This is v4 of Dave's patch. He changed the subject and posted a v5 here:
https://lore.kernel.org/linux-arm-kernel/1550519559-15915-13-git-send-email-Dave.Martin@arm.com/

Re-posting the patch you tested with would avoid someone accidentally pickup v5, then
trying to work out how its supposed to work with your series. (check_present() was
replaced by a restrictions() bitmask).


As we can't have both, and v5 of that patch has been reviewed, could you rebase onto it?
You'll need to pick up any tags and make any changes reviewers asked for. If you could
note 'this v7 patch is Dave's v5 with $changes', then it makes it clear what is going on.



Thanks,

James

WARNING: multiple messages have this Message-ID (diff)
From: James Morse <james.morse@arm.com>
To: Amit Daniel Kachhap <amit.kachhap@arm.com>,
	linux-arm-kernel@lists.infradead.org
Cc: Mark Rutland <mark.rutland@arm.com>,
	Andrew Jones <drjones@redhat.com>,
	Julien Thierry <julien.thierry@arm.com>,
	Marc Zyngier <marc.zyngier@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	Christoffer Dall <christoffer.dall@arm.com>,
	Kristina Martsenko <kristina.martsenko@arm.com>,
	kvmarm@lists.cs.columbia.edu,
	Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>,
	Dave Martin <Dave.Martin@arm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 0/6] Add ARMv8.3 pointer authentication for kvm guest
Date: Tue, 26 Feb 2019 18:03:56 +0000	[thread overview]
Message-ID: <7dac868e-c0dc-ce20-a183-b42f694ffb12@arm.com> (raw)
In-Reply-To: <1550568271-5319-1-git-send-email-amit.kachhap@arm.com>

Hi Amit,

On 19/02/2019 09:24, Amit Daniel Kachhap wrote:
> This patch series adds pointer authentication support for KVM guest and
> is based on top of Linux 5.0-rc6. The basic patches in this series was
> originally posted by Mark Rutland earlier[1,2] and contains some history
> of this work.
> 
> Extension Overview:
> =============================================
> 
> The ARMv8.3 pointer authentication extension adds functionality to detect
> modification of pointer values, mitigating certain classes of attack such as
> stack smashing, and making return oriented programming attacks harder.
> 
> The extension introduces the concept of a pointer authentication code (PAC),
> which is stored in some upper bits of pointers. Each PAC is derived from the
> original pointer, another 64-bit value (e.g. the stack pointer), and a secret
> 128-bit key.
> 
> New instructions are added which can be used to:
> 
> * Insert a PAC into a pointer
> * Strip a PAC from a pointer
> * Authenticate and strip a PAC from a pointer
> 
> The detailed description of ARMv8.3 pointer authentication support in
> userspace/kernel and can be found in Kristina's generic pointer authentication
> patch series[3].


> This patch series is based on just a single patch from Dave Martin [8] which add
> control checks for accessing sys registers. 

Ooeer, If you miss this patch, (like I did) the series still applies to rc6, it just
doesn't build. If you depend on extra patches like this, please re-post them as part of
the series. (you need to add your Signed-off-by if picked the patch up from the list).

This lets people apply the series from the list (everyone has a script to to do this),
without having to go and find the dependencies.


> [8]: https://lore.kernel.org/linux-arm-kernel/1547757219-19439-13-git-send-email-Dave.Martin@arm.com/

This is v4 of Dave's patch. He changed the subject and posted a v5 here:
https://lore.kernel.org/linux-arm-kernel/1550519559-15915-13-git-send-email-Dave.Martin@arm.com/

Re-posting the patch you tested with would avoid someone accidentally pickup v5, then
trying to work out how its supposed to work with your series. (check_present() was
replaced by a restrictions() bitmask).


As we can't have both, and v5 of that patch has been reviewed, could you rebase onto it?
You'll need to pick up any tags and make any changes reviewers asked for. If you could
note 'this v7 patch is Dave's v5 with $changes', then it makes it clear what is going on.



Thanks,

James

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-02-26 18:04 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19  9:24 [PATCH v6 0/6] Add ARMv8.3 pointer authentication for kvm guest Amit Daniel Kachhap
2019-02-19  9:24 ` Amit Daniel Kachhap
2019-02-19  9:24 ` Amit Daniel Kachhap
2019-02-19  9:24 ` [PATCH v6 1/6] arm64/kvm: preserve host HCR_EL2 value Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 11:50   ` Mark Rutland
2019-02-21 11:50     ` Mark Rutland
2019-02-21 11:50     ` Mark Rutland
2019-02-25 18:09     ` Marc Zyngier
2019-02-25 18:09       ` Marc Zyngier
2019-02-28  6:43     ` Amit Daniel Kachhap
2019-02-28  6:43       ` Amit Daniel Kachhap
2019-02-21 15:49   ` Dave Martin
2019-02-21 15:49     ` Dave Martin
2019-03-01  5:56     ` Amit Daniel Kachhap
2019-03-01  5:56       ` Amit Daniel Kachhap
2019-02-25 17:39   ` James Morse
2019-02-25 17:39     ` James Morse
2019-02-26 10:06     ` James Morse
2019-02-26 10:06       ` James Morse
2019-03-02 11:09     ` Amit Daniel Kachhap
2019-03-02 11:09       ` Amit Daniel Kachhap
2019-03-02 11:09       ` Amit Daniel Kachhap
2019-02-19  9:24 ` [PATCH v6 2/6] arm64/kvm: preserve host MDCR_EL2 value Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 11:57   ` Mark Rutland
2019-02-21 11:57     ` Mark Rutland
2019-02-21 11:57     ` Mark Rutland
2019-02-21 15:51   ` Dave Martin
2019-02-21 15:51     ` Dave Martin
2019-03-01  6:10     ` Amit Daniel Kachhap
2019-03-01  6:10       ` Amit Daniel Kachhap
2019-03-01  6:10       ` Amit Daniel Kachhap
2019-02-19  9:24 ` [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 12:29   ` Mark Rutland
2019-02-21 12:29     ` Mark Rutland
2019-02-21 15:51     ` Dave Martin
2019-02-21 15:51       ` Dave Martin
2019-03-01  6:17       ` Amit Daniel Kachhap
2019-03-01  6:17         ` Amit Daniel Kachhap
2019-02-28  9:07     ` Amit Daniel Kachhap
2019-02-28  9:07       ` Amit Daniel Kachhap
2019-02-21 15:53   ` Dave Martin
2019-02-21 15:53     ` Dave Martin
2019-03-01  9:35     ` Amit Daniel Kachhap
2019-03-01  9:35       ` Amit Daniel Kachhap
2019-02-26 18:31   ` James Morse
2019-02-26 18:31     ` James Morse
2019-02-26 18:31     ` James Morse
2019-03-04 10:51     ` Amit Daniel Kachhap
2019-03-04 10:51       ` Amit Daniel Kachhap
2019-03-04 10:51       ` Amit Daniel Kachhap
2019-02-19  9:24 ` [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 12:34   ` Mark Rutland
2019-02-21 12:34     ` Mark Rutland
2019-02-28  9:25     ` Amit Daniel Kachhap
2019-02-28  9:25       ` Amit Daniel Kachhap
2019-02-21 15:53   ` Dave Martin
2019-02-21 15:53     ` Dave Martin
2019-03-01  9:41     ` Amit Daniel Kachhap
2019-03-01  9:41       ` Amit Daniel Kachhap
2019-03-01 12:22       ` Dave P Martin
2019-03-01 12:22         ` Dave P Martin
2019-03-01 12:22         ` Dave P Martin
2019-02-26 18:33   ` James Morse
2019-02-26 18:33     ` James Morse
2019-03-04 10:56     ` Amit Daniel Kachhap
2019-03-04 10:56       ` Amit Daniel Kachhap
2019-02-19  9:24 ` [PATCH v6 5/6] arm64/kvm: control accessibility of ptrauth key registers Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 15:53   ` Dave Martin
2019-02-21 15:53     ` Dave Martin
2019-02-26 18:34   ` James Morse
2019-02-26 18:34     ` James Morse
2019-02-19  9:24 ` [kvmtool PATCH v6 6/6] arm/kvm: arm64: Add a vcpu feature for pointer authentication Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-19  9:24   ` Amit Daniel Kachhap
2019-02-21 15:54   ` Dave Martin
2019-02-21 15:54     ` Dave Martin
2019-03-01 10:37     ` Amit Daniel Kachhap
2019-03-01 10:37       ` Amit Daniel Kachhap
2019-03-01 11:24       ` Dave P Martin
2019-03-01 11:24         ` Dave P Martin
2019-03-01 11:24         ` Dave P Martin
2019-03-04 11:08         ` Amit Daniel Kachhap
2019-03-04 11:08           ` Amit Daniel Kachhap
2019-03-04 11:08           ` Amit Daniel Kachhap
2019-03-05 11:11           ` Dave Martin
2019-03-05 11:11             ` Dave Martin
2019-03-05 11:11             ` Dave Martin
2019-02-26 18:03 ` James Morse [this message]
2019-02-26 18:03   ` [PATCH v6 0/6] Add ARMv8.3 pointer authentication for kvm guest James Morse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7dac868e-c0dc-ce20-a183-b42f694ffb12@arm.com \
    --to=james.morse@arm.com \
    --cc=Dave.Martin@arm.com \
    --cc=amit.kachhap@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=christoffer.dall@arm.com \
    --cc=drjones@redhat.com \
    --cc=julien.thierry@arm.com \
    --cc=kristina.martsenko@arm.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=ramana.radhakrishnan@arm.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.