public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm•com>
To: Peter Collingbourne <pcc@google•com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm•com>,
	Dave Martin <Dave.Martin@arm•com>, Will Deacon <will@kernel•org>,
	Andrew Morton <akpm@linux-foundation•org>,
	Andrea Arcangeli <aarcange@redhat•com>,
	Alistair Delva <adelva@google•com>,
	Lokesh Gidra <lokeshgidra@google•com>,
	William McVicker <willmcvicker@google•com>,
	Evgenii Stepanov <eugenis@google•com>,
	Mitch Phillips <mitchp@google•com>,
	Linux ARM <linux-arm-kernel@lists•infradead.org>,
	linux-mm@kvack•org, Andrey Konovalov <andreyknvl@gmail•com>,
	stable@vger•kernel.org
Subject: Re: [PATCH v4 2/2] selftest: use mmap instead of posix_memalign to allocate memory
Date: Thu, 8 Jul 2021 13:59:19 +0100	[thread overview]
Message-ID: <20210708125919.GB9966@arm.com> (raw)
In-Reply-To: <20210707184313.3697385-3-pcc@google.com>

On Wed, Jul 07, 2021 at 11:43:13AM -0700, Peter Collingbourne wrote:
> This test passes pointers obtained from anon_allocate_area to the
> userfaultfd and mremap APIs. This causes a problem if the system
> allocator returns tagged pointers because with the tagged address ABI
> the kernel rejects tagged addresses passed to these APIs, which would
> end up causing the test to fail. To make this test compatible with
> such system allocators, stop using the system allocator to allocate
> memory in anon_allocate_area, and instead just use mmap.
> 
> Co-developed-by: Lokesh Gidra <lokeshgidra@google•com>
> Signed-off-by: Lokesh Gidra <lokeshgidra@google•com>
> Signed-off-by: Peter Collingbourne <pcc@google•com>
> Fixes: c47174fc362a ("userfaultfd: selftest")
> Cc: <stable@vger•kernel.org> # 5.4
> Link: https://linux-review.googlesource.com/id/Icac91064fcd923f77a83e8e133f8631c5b8fc241

Reviewed-by: Catalin Marinas <catalin.marinas@arm•com>

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

  reply	other threads:[~2021-07-08 13:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-07 18:43 [PATCH v4 0/2] userfaultfd: do not untag user pointers Peter Collingbourne
2021-07-07 18:43 ` [PATCH v4 1/2] " Peter Collingbourne
2021-07-08 12:58   ` Catalin Marinas
2021-07-07 18:43 ` [PATCH v4 2/2] selftest: use mmap instead of posix_memalign to allocate memory Peter Collingbourne
2021-07-08 12:59   ` Catalin Marinas [this message]
2021-07-09 23:27   ` Andrew Morton

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=20210708125919.GB9966@arm.com \
    --to=catalin.marinas@arm$(echo .)com \
    --cc=Dave.Martin@arm$(echo .)com \
    --cc=aarcange@redhat$(echo .)com \
    --cc=adelva@google$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=andreyknvl@gmail$(echo .)com \
    --cc=eugenis@google$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-mm@kvack$(echo .)org \
    --cc=lokeshgidra@google$(echo .)com \
    --cc=mitchp@google$(echo .)com \
    --cc=pcc@google$(echo .)com \
    --cc=stable@vger$(echo .)kernel.org \
    --cc=vincenzo.frascino@arm$(echo .)com \
    --cc=will@kernel$(echo .)org \
    --cc=willmcvicker@google$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox