[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 2/8] arm64: Handle MTE tags zeroing in __alloc_zeroed_use
From: |
Steven Price |
Subject: |
Re: [PATCH v14 2/8] arm64: Handle MTE tags zeroing in __alloc_zeroed_user_highpage() |
Date: |
Wed, 9 Jun 2021 09:56:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 07/06/2021 18:07, Catalin Marinas wrote:
> On Mon, Jun 07, 2021 at 12:08:10PM +0100, Steven Price wrote:
>> From: Catalin Marinas <catalin.marinas@arm.com>
>>
>> Currently, on an anonymous page fault, the kernel allocates a zeroed
>> page and maps it in user space. If the mapping is tagged (PROT_MTE),
>> set_pte_at() additionally clears the tags under a spinlock to avoid a
>> race on the page->flags. In order to optimise the lock, clear the page
>> tags on allocation in __alloc_zeroed_user_highpage() if the vma flags
>> have VM_MTE set.
>>
>> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
>> Signed-off-by: Steven Price <steven.price@arm.com>
>
> I think you can drop this patch now that Peter's series has been queued
> via the arm64 tree:
>
> https://lore.kernel.org/r/20210602235230.3928842-4-pcc@google.com
>
Thanks for the heads up - I hadn't seen that land. I'll drop this patch
from the next posting.
Steve
- [PATCH v14 0/8] MTE support for KVM guest, Steven Price, 2021/06/07
- [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Steven Price, 2021/06/07
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Marc Zyngier, 2021/06/09
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Steven Price, 2021/06/09
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Marc Zyngier, 2021/06/09
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Catalin Marinas, 2021/06/09
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Steven Price, 2021/06/10
- Re: [PATCH v14 1/8] arm64: mte: Handle race when synchronising tags, Catalin Marinas, 2021/06/10
[PATCH v14 2/8] arm64: Handle MTE tags zeroing in __alloc_zeroed_user_highpage(), Steven Price, 2021/06/07
[PATCH v14 3/8] arm64: mte: Sync tags for pages where PTE is untagged, Steven Price, 2021/06/07
[PATCH v14 5/8] KVM: arm64: Save/restore MTE registers, Steven Price, 2021/06/07
[PATCH v14 4/8] KVM: arm64: Introduce MTE VM feature, Steven Price, 2021/06/07
[PATCH v14 6/8] KVM: arm64: Expose KVM_ARM_CAP_MTE, Steven Price, 2021/06/07
[PATCH v14 7/8] KVM: arm64: ioctl to fetch/store tags in a guest, Steven Price, 2021/06/07
[PATCH v14 8/8] KVM: arm64: Document MTE capability and ioctl, Steven Price, 2021/06/07