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>] [day] [month] [year] [list]
Message-ID: <6089204.lOV4Wx5bFT@arch>
Date:   Mon, 03 Jan 2022 05:54:01 +0100
From:   Fabian Maurer <dark.shadow4@....de>
To:     linux-kernel@...r.kernel.org
Subject: Usage of the UIO framework with DMA and x86 ports

Hello,

I want to port the pcnet32 driver to userland for learning purposes. Maybe for
something like ndiswrapper but in userspace.

I wanted to ask if it's possible to use UIO for PCI devices that need DMA and
x86 ports access. Preferably without writing my own kernel module.
The documentation I found i a bit... lacking.

Interrupts and memory-mapped-io are possible with uio_pci_generic, but not
sure about DMA and ports. Ports are doable with a custom kernel module, but I
didn't find anything for using DMA with UIO. Except for creating your own
solution.

Is there something in UIO that allows me to avoid messing with kernel modules?

Second, low priority question:
For the ndsiwrapper-in-userland idea I'd need to do the same with USB. Do I
need to create my own solution here or can this also be done with UIO?

Please CC me in replies.

Regards,
Fabian Maurer


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ