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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1437576873.3214.248.camel@hp.com>
Date:	Wed, 22 Jul 2015 08:54:33 -0600
From:	Toshi Kani <toshi.kani@...com>
To:	Ashutosh Dixit <ashutosh.dixit@...el.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Dutt, Sudeep" <sudeep.dutt@...el.com>,
	"Rao, Nikhil" <nikhil.rao@...el.com>,
	"Williams, Dan J" <dan.j.williams@...el.com>
Subject: Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

On Wed, 2015-07-22 at 00:13 -0700, Ashutosh Dixit wrote:
> On Tue, Jul 21 2015 at 01:39:10 PM, Toshi Kani <toshi.kani@...com> wrote:
> > 
> > You can do the following instead.  If you have the physical address 
> > already
> > (i.e. the address you passed to ioremap), you can skip 
> > slow_virt_to_phys().
> >  pfn_to_page() is a hack for the time being so that you can use the 
> > same
> > DMA mapping APIs.
> > 
> >   phys = slow_virt_to_phys(vaddr);
> >   page = pfn_to_page(phys >> PAGE_SHIFT);
> > 
> > Dan is working on the change to introduce __pfn_t.  With this change, 
> > you
> > can pass a pfn, instead of a fake page pointer, to APIs.  You may want 
> > to
> > check if your APIs are covered in this change.
> > https://lkml.org/lkml/2015/6/5/802
> 
> Thanks, we can do this for now till Dan's changes come online. Also, we
> already have the physical address. We will submit a patch with this
> change.

Sounds great.  Thanks,
-Toshi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ