lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 29 Jan 2019 10:29:56 -0800 From: Ira Weiny <ira.weiny@...el.com> To: Joel Nider <joeln@...ibm.com> Cc: Jason Gunthorpe <jgg@...pe.ca>, Leon Romanovsky <leon@...nel.org>, Doug Ledford <dledford@...hat.com>, Mike Rapoport <rppt@...ux.ibm.com>, linux-mm@...ck.org, linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 3/5] RDMA/uverbs: add owner parameter to ib_umem_get On Tue, Jan 29, 2019 at 03:26:24PM +0200, Joel Nider wrote: > ib_umem_get is a core function used by drivers that support RDMA. > The 'owner' parameter signifies the process that owns the memory. > Until now, it was assumed that the owning process was the current > process. This adds the flexibility to specify a process other than > the current process. All drivers that call this function are also > updated, but the default behaviour is to keep backwards > compatibility by assuming the current process is the owner when > the 'owner' parameter is NULL. > > Signed-off-by: Joel Nider <joeln@...ibm.com> > --- [snip] > @@ -183,10 +196,11 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr, > > while (npages) { > down_read(&mm->mmap_sem); > - ret = get_user_pages_longterm(cur_base, > + ret = get_user_pages_remote_longterm(owner_task, > + mm, cur_base, > min_t(unsigned long, npages, > - PAGE_SIZE / sizeof (struct page *)), > - gup_flags, page_list, vma_list); > + PAGE_SIZE / sizeof(struct page *)), > + gup_flags, page_list, vma_list, NULL); qib was recently converted to get_user_pages_longterm. So qib would need to be updated as well. Ira
Powered by blists - more mailing lists