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: <20100118071607.17d954a2@infradead.org>
Date:	Mon, 18 Jan 2010 07:16:07 -0800
From:	Arjan van de Ven <arjan@...radead.org>
To:	Felix Rubinstein <felixru@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: /dev/mem implementation

On Mon, 18 Jan 2010 14:18:22 +0200
Felix Rubinstein <felixru@...il.com> wrote:

> The usecase is broadcom 10GbE switch driver which maps DMA memory to
> userspace. I can find one more libe1000 which uses char driver to map
> DMA memory to userspace too.
> So, how can I implement userspace drivers in recent kernels which want
> to map DMA memory to userspace if STRICT_DEVMEM or PAT (either of
> them) are enabled.

for these cases the driver should provide it's own mmap method that
exposes only those pages that the hardware has access to. You need
something like this anyway to deal with the dma mapping api....



-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
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