Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3426149yba; Mon, 29 Apr 2019 02:02:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhQsyLaPDJiRcV+bhbhrwXDZjQTnx5LYoqwHMd7JjkTCnprM+bVaheJw2ugwxnJabMJtiQ X-Received: by 2002:a65:5c82:: with SMTP id a2mr7487266pgt.378.1556528526261; Mon, 29 Apr 2019 02:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556528526; cv=none; d=google.com; s=arc-20160816; b=cVsMNOBUeqCU9HWFyUYG0lx8grHxNAG1D+GPDPvAHRvh3NgfM60dSa1+dzXaczgXeG l8p/GEnR46Um9pMAGfuWxKp80lpTcgCJ0nZEUlP1uzV5LFPmTeiqPmRCWXSLM3bGmmx3 OBmowq+MBugBtGnyxJEad6X4rZqP4Z7QyZZspQeGuKKqkG/H5qa2n5GcbqM8b2xjh+3K S4nstt8uF6ZiWUBjWFKGCL3ZthnpBsfw/Mpd8zxD+cQgbYrmhIExWjeyYb98wWC2DGP1 sG90c1CMbfM/L/LzDJt4ZOERmvPJHSzs7hnb1moCRmQLjsfdbg5cwlBcYd2hqbzVQjRV yOzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nCOPwC+RoJ+0Kuq2whcRe8vKYOlZitbvggm0zzqv3hs=; b=U0QN4IeeOx0HdL5q1JV6NiF+Yls8QaFM+DnqVtEis/Zu8FBSoGKvp+D6gFCsH5EmJm e+xLYJIW+LIemybrtzWY0fNYDLTPhu2UL5v8/qw8yGb+ZZaf2cTQfhhf39NYfzPGqH0w AZI7v1ZHwJrsV0IFDAWiRp2D0Gjo8KSQO3o4AJQwshmxJA+/Qe5m3tmW7TL0G5kS6ln7 6p8XjxJKF5XKGxYjdjv3K0jq4qYdzJgz0vbJ8A/9ApXfzFqA8R2QOgEV36hy0v20vYqE bADtaADzrDJqngMqGpvuOhyQAVqe6q89lx3esIp/ICysZTPTGTuGiZ7WDjT/nMYbEc33 uddA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f80si27002138pff.23.2019.04.29.02.01.51; Mon, 29 Apr 2019 02:02:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727699AbfD2JAp (ORCPT + 99 others); Mon, 29 Apr 2019 05:00:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:47878 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727525AbfD2JAm (ORCPT ); Mon, 29 Apr 2019 05:00:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E6CA5AD3A; Mon, 29 Apr 2019 09:00:40 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 83A30E0117; Mon, 29 Apr 2019 11:00:40 +0200 (CEST) Date: Mon, 29 Apr 2019 11:00:40 +0200 From: Michal Kubecek To: Jason Gunthorpe Cc: Heiko Carstens , Doug Ledford , Linus Torvalds , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [GIT PULL] Please pull RDMA subsystem changes Message-ID: <20190429090040.GB21672@unicorn.suse.cz> References: <20190428115207.GA11924@ziepe.ca> <20190429060947.GB3665@osiris> <20190429084030.GA4275@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429084030.GA4275@mellanox.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 08:40:37AM +0000, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 08:09:47AM +0200, Heiko Carstens wrote: > > On Sun, Apr 28, 2019 at 11:52:12AM +0000, Jason Gunthorpe wrote: > > > Hi Linus, > > > > > > Third rc pull request > > > > > > Nothing particularly special here. There is a small merge conflict > > > with Adrea's mm_still_valid patches which is resolved as below: > > ... > > > Jason Gunthorpe (3): > > > RDMA/mlx5: Do not allow the user to write to the clock page > > > RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages > > > RDMA/ucontext: Fix regression with disassociate > > > > This doesn't compile. The patch below would fix it, but not sure if > > this is what is intended: > > > > drivers/infiniband/core/uverbs_main.c: In function 'rdma_umap_fault': > > drivers/infiniband/core/uverbs_main.c:898:28: error: 'struct vm_fault' has no member named 'vm_start' > > vmf->page = ZERO_PAGE(vmf->vm_start); > > ^~ > > diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c > > index 7843e89235c3..65fe89b3fa2d 100644 > > +++ b/drivers/infiniband/core/uverbs_main.c > > @@ -895,7 +895,7 @@ static vm_fault_t rdma_umap_fault(struct vm_fault *vmf) > > > > /* Read only pages can just use the system zero page. */ > > if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) { > > - vmf->page = ZERO_PAGE(vmf->vm_start); > > + vmf->page = ZERO_PAGE(vmf->vma->vm_start); > > get_page(vmf->page); > > return 0; > > } > > > > Thanks Heiko, this looks right to me. > > I'm surprised to be seeing this at this point, these patches should > have been seen by 0 day for several days now, and they were in > linux-next already too.. Most architectures have versions of ZERO_PAGE() which ignore the argument so that the code builds anyway. I'm not sure if 0-day also tests s390x builds (which is where I ran into this). Michal Kubecek