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=-11.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no 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 7D532C76194 for ; Thu, 25 Jul 2019 11:17:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41C9622BF5 for ; Thu, 25 Jul 2019 11:17:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="PFlEvXsH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403911AbfGYLRr (ORCPT ); Thu, 25 Jul 2019 07:17:47 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42952 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403888AbfGYLRp (ORCPT ); Thu, 25 Jul 2019 07:17:45 -0400 Received: by mail-pg1-f193.google.com with SMTP id t132so22874257pgb.9 for ; Thu, 25 Jul 2019 04:17:45 -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=ceQemw0wuGQ3uiCqTlyBUwO60vemC2ljY3rBL1bAUvc=; b=PFlEvXsHYv4lFKGCCfXZ2BH9B+e/+FJBGpnFm58EL07XzmLkrfPE7grKe+lK7OJ+3q abjryupEyT3OpTe6vXeYbGcL1BUr5elNwdNVi9kwG5uLVwrmRNAlILwAOBEDWE3BDhoL wa/mA/jPR9b/azqkL/67D+Mm2vUNeUnKTr67F6b6zVcvZzUWDrGmaUvbPo48izoM48MU N0VWZj0yxfEFkbETpli1M4tpWnMK/JyQnFJyyMLRYouRu9gpM1Vf3XJFNTnOwCnTu9Ld itsx5ZgymWeM6DKM8q2cX7rBLN4FseRE3aGipc8TJcBEDMtdp1GaAUz+JB2Q86Y09iS0 iOkA== 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=ceQemw0wuGQ3uiCqTlyBUwO60vemC2ljY3rBL1bAUvc=; b=ntkU+OfoJV1GoRVFj1h1UWPTynWcQ+tA4QKo8IM/MwJ9/ImQs1sW8BbB0a4/Shyu7c XGjnAPw4h7v3N8YCR9dd0IlHMPZtIF27Q+3FyeXkNqyymUzIQXUef+ME6jKDJg5cnXfl UF2ojIkLPKJDN13S+iox2KjA/NibLh/nRSWz6d2CWSpYsHCrjUYmYAByuMzQeVNhCuKw jJW52CmNQffJles+L+NlJRZiVI5Knmxwcrf9/euSBUFlOPJVrcNKT3tZJQgLYFB3L2WD U22srQzzsaLhI5NOb31d089pu9pSR/vePfKym8IVvChsDteyf5GNBfvKErRR9TS0ZHTP M5GQ== X-Gm-Message-State: APjAAAVTDhqiJbem6VyVOlfWbiAm8ZKkYJ6dozsghlWeJ2DnYZLlKxZw Yd2OD/5dtipee19NyzIVRvMfjw+GdOYBNm+IoIDpC9uUIQ0= X-Google-Smtp-Source: APXvYqzUlCi07nILNklNsNS4HJ/lH+Efr4GjVTNZTHkDEiuYwLiGivIelhkfNGv3x1TCnih2kaTB3NQT1G7052KvmkQ= X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr91662102pjp.47.1564053464334; Thu, 25 Jul 2019 04:17:44 -0700 (PDT) MIME-Version: 1.0 References: <7969018013a67ddbbf784ac7afeea5a57b1e2bcb.1563904656.git.andreyknvl@google.com> <20190724192504.GA5716@ziepe.ca> In-Reply-To: <20190724192504.GA5716@ziepe.ca> From: Andrey Konovalov Date: Thu, 25 Jul 2019 13:17:32 +0200 Message-ID: Subject: Re: [PATCH v19 11/15] IB/mlx4: untag user pointers in mlx4_get_umem_mr To: Jason Gunthorpe Cc: Linux ARM , Linux Memory Management List , LKML , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, kvm@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Vincenzo Frascino , Will Deacon , Mark Rutland , Andrew Morton , Greg Kroah-Hartman , Kees Cook , Yishai Hadas , Felix Kuehling , Alexander Deucher , Christian Koenig , Mauro Carvalho Chehab , Jens Wiklander , Alex Williamson , Leon Romanovsky , Luc Van Oostenryck , Dave Martin , Khalid Aziz , enh , Christoph Hellwig , Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Robin Murphy , Kevin Brodsky , Szabolcs Nagy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 24, 2019 at 9:25 PM Jason Gunthorpe wrote: > > On Tue, Jul 23, 2019 at 07:58:48PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends kernel ABI to allow to pass > > tagged user pointers (with the top byte set to something else other than > > 0x00) as syscall arguments. > > > > mlx4_get_umem_mr() uses provided user pointers for vma lookups, which can > > only by done with untagged pointers. > > > > Untag user pointers in this function. > > > > Reviewed-by: Jason Gunthorpe > > Acked-by: Catalin Marinas > > Reviewed-by: Kees Cook > > Signed-off-by: Andrey Konovalov > > --- > > drivers/infiniband/hw/mlx4/mr.c | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > Applied to rdma-for next, please don't sent it via other trees :) Sure, thanks! > > Thanks, > Jason