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=-3.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 58CDFC4321A for ; Tue, 11 Jun 2019 15:35:53 +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 2DA642080A for ; Tue, 11 Jun 2019 15:35:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JdDdWqZe"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="sLMq+bA6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DA642080A Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/uBmxxeHeBwZ7jGlxvClQeBZcsEIrYQqRmty2ERqENE=; b=JdDdWqZeKsr8Sg YJTsHHidmcUiMAQaMkMrzB4mVNreA8sK+PZIqyPqkpriFzD/yCzO+KFQp4WVdEXldntqQ+WrcJ4er BdYCKvn5u4xaDJOQP1l38FVk+jaLeoUsTMzDxWA79Axg1qUaI0vBi+F2bhZLYnSJVKGOjR3WA7bpn h0C8TQh8Vwx7Q7i7EZUr0l/8Q6mUX07WFlPrpn1HuRzdbseeoqPi0Et2877CnvGH/WcuQTCoB0+ZB MnaWAwb+g+ONy0wmfu73wOgUZEGflSUPjIr2JEC6R7pPBQuHZRTWrTluo3NUjRrsjXyq/pTnBiqSU WZuchrd27acvZwziMhBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1haioM-00055S-T4; Tue, 11 Jun 2019 15:35:46 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haioK-00054n-09 for linux-arm-kernel@lists.infradead.org; Tue, 11 Jun 2019 15:35:45 +0000 Received: by mail-pf1-x441.google.com with SMTP id m30so7151213pff.8 for ; Tue, 11 Jun 2019 08:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8h42m3mke7DA8ejB89qFnTkC5cX+aLshhHC5jTwYOa4=; b=sLMq+bA6sOUYAuoQSdZze7aS/o01HRJh37fgBzOaTlULVRlgN1Pzky0WnEt9ggPhRi JH1qa8PI3fUsxopnA8vxXjk80emL0gwgHoi/kN+wCfZhW7CtGG3mN+/yxVY59EUBa1rS M4cxQ83xr93VSRZJzwzbUXprtAi+dT3meCk3L8KOZ/xZDFb/kZqFJzv63133Zz0lw9er v1LYil8+krDw44YMHLuvpYAB34RsEpHwQbuoHBJWYMzgMu6DfV6usjm0aFv9/2YjnuNW tz3JzLRCLMzdWSO9grr5tL4TPlHUr6KXqW3Th206n5IMIeoSFDjvZhgTeHCUKYHlgpUu bTiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8h42m3mke7DA8ejB89qFnTkC5cX+aLshhHC5jTwYOa4=; b=ktyqVbKGFRsSMpO0QJ8REvmejOVYL89ppZK1kswDmTsiqfBoh1E03OxTXjS+h4pIol zy9Y93tU+3JwUGd5osTMp7Ln4EmvjaWfvyp2BilRmUCGE6B9s1jfBCuRGswCtK4GBb/h vOBK68fgjF4pCCLqlFV3aMY9hoqetiOMcndDgJQNidQfek7kdtmBKGH8LhqxZ1cYZN/z T3+FTXAiSDQfSGgYZqIx88pgjttX5tp/mswpXdAQfQf6Qhq8BbsQlsyEIWzdZX3uKg1C 26JGrpMMv146KvSUaScQBDcbBxmPbob1Zsvd3fG6pPWr8BiNvFl6iO2p6oKISJRTvCt9 oTzg== X-Gm-Message-State: APjAAAW/sdPUxan62K7/dmrIGGOsqnIvagW7Ehy1VKUVdVBszCixg4U2 KZP/kC6Vh9hXwhbBKTnYZlp7WlvX4wESOKNZ0GqOEA== X-Google-Smtp-Source: APXvYqwVttVVtet3fqIi0VnES8Ilb/p6V60nSXc7x8WFpoZ7Ynv9ahn+wWxWGukqfJnR2JBKBovfx92r2kGjPnyP20Q= X-Received: by 2002:a63:1919:: with SMTP id z25mr21205093pgl.440.1560267342622; Tue, 11 Jun 2019 08:35:42 -0700 (PDT) MIME-Version: 1.0 References: <045a94326401693e015bf80c444a4d946a5c68ed.1559580831.git.andreyknvl@google.com> <20190610142824.GB10165@c02tf0j2hf1t.cambridge.arm.com> In-Reply-To: <20190610142824.GB10165@c02tf0j2hf1t.cambridge.arm.com> From: Andrey Konovalov Date: Tue, 11 Jun 2019 17:35:31 +0200 Message-ID: Subject: Re: [PATCH v16 05/16] arm64: untag user pointers passed to memory syscalls To: Catalin Marinas X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190611_083544_063015_329ABFAF X-CRM114-Status: GOOD ( 14.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , kvm@vger.kernel.org, Szabolcs Nagy , Will Deacon , dri-devel@lists.freedesktop.org, Linux Memory Management List , Khalid Aziz , "open list:KERNEL SELFTEST FRAMEWORK" , Felix Kuehling , Vincenzo Frascino , Jacob Bramley , Leon Romanovsky , linux-rdma@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christoph Hellwig , Jason Gunthorpe , Dmitry Vyukov , Dave Martin , Evgeniy Stepanov , linux-media@vger.kernel.org, Kevin Brodsky , Kees Cook , Ruben Ayrapetyan , Ramana Radhakrishnan , Alex Williamson , Mauro Carvalho Chehab , Linux ARM , Kostya Serebryany , Greg Kroah-Hartman , Yishai Hadas , LKML , Jens Wiklander , Lee Smith , Alexander Deucher , Andrew Morton , enh , Robin Murphy , Christian Koenig , Luc Van Oostenryck Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 10, 2019 at 4:28 PM Catalin Marinas wrote: > > On Mon, Jun 03, 2019 at 06:55:07PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0x00) as syscall arguments. > > > > This patch allows tagged pointers to be passed to the following memory > > syscalls: get_mempolicy, madvise, mbind, mincore, mlock, mlock2, mprotect, > > mremap, msync, munlock. > > > > Signed-off-by: Andrey Konovalov > > I would add in the commit log (and possibly in the code with a comment) > that mremap() and mmap() do not currently accept tagged hint addresses. > Architectures may interpret the hint tag as a background colour for the > corresponding vma. With this: I'll change the commit log. Where do you you think I should put this comment? Before mmap and mremap definitions in mm/? Thanks! > > Reviewed-by: Catalin Marinas > > -- > Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel