From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB7F1C07E99 for ; Fri, 9 Jul 2021 23:29:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA6E6613C3 for ; Fri, 9 Jul 2021 23:29:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA6E6613C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To: Message-Id:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XRJGLcD9EFOPxJpGx6N+HxgKILp0zXN2DxrC0UQ190o=; b=I+TEH12h1kPQWu YUBEXYyEkHsDbK8o2I/WcZpHBtUdcp4F417wYuvZgUCsiyDPdTpdZBEjjax5cg1zk1XlMwSyCk6oM nbOE7aa6vmgJCsChVmGE7TFMXoMAP8i79K/9lWRr6l2SVSHckywXsWdI+hYOh8zFJbvFLE2R1kzxT tC1SALbYGLg7PZuLMX6xzKyfHn1xDgOFHFUJNwRUW1+BA7ZeV9hE3Rl/bjmcw04t2MY2GPeT3JMAk v1EMmE1GsfVPc+hAp3qX+79rLGNdJ+UB/X5So2zjlKeNqy6qUl0pSdy+OA0elKgczhrRPJ/MnWISB jvCtIq+K4qLaAP2oTgzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1zuP-002bl2-Ia; Fri, 09 Jul 2021 23:27:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1zuL-002bkR-Fr for linux-arm-kernel@lists.infradead.org; Fri, 09 Jul 2021 23:27:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B3C1613B2; Fri, 9 Jul 2021 23:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625873264; bh=FPE3+BhCWyOoJj1St5NWSfhZrajf2+MELy947NPkjCA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ROq96No2ekMQXtnoNmbFZOIeTknxLfvKGyk3X33N4C4ej1+bHMjFXkjyHxVVuNlZP ySJAXi7W+6vkdrM/9uzHW0SDgxti583pfThbKzECsAybx32n9l2Blnzv3Fh3qyhh3B 34Kt75sRUCKqDUEQtwculdws9jxFO7YM6jSGFv1Y= Date: Fri, 9 Jul 2021 16:27:42 -0700 From: Andrew Morton To: Peter Collingbourne Cc: Catalin Marinas , Vincenzo Frascino , Dave Martin , Will Deacon , Andrea Arcangeli , Alistair Delva , Lokesh Gidra , William McVicker , Evgenii Stepanov , Mitch Phillips , Linux ARM , linux-mm@kvack.org, Andrey Konovalov , stable@vger.kernel.org Subject: Re: [PATCH v4 2/2] selftest: use mmap instead of posix_memalign to allocate memory Message-Id: <20210709162742.ee10cac911a6304e97ab1b5e@linux-foundation.org> In-Reply-To: <20210707184313.3697385-3-pcc@google.com> References: <20210707184313.3697385-1-pcc@google.com> <20210707184313.3697385-3-pcc@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210709_162745_602697_964582DD X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 7 Jul 2021 11:43:13 -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. Doesn't apply to current mainline. Can you please resync and redo? > Co-developed-by: Lokesh Gidra > Signed-off-by: Lokesh Gidra > Signed-off-by: Peter Collingbourne > Fixes: c47174fc362a ("userfaultfd: selftest") > Cc: # 5.4 This patch then won't apply to earlier kenrels, so please be prepared to help Greg resolve this. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel