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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 10 May 2007 04:47:32 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	maheshk@...c.in
Cc:	linux-kernel@...r.kernel.org, kernelnewbies@...linux.org
Subject: Re: [HOWTO] accessing the DMA mapped data

From: Mahesh <maheshk@...c.in>
Date: Thu, 10 May 2007 17:11:17 +0530

> Hi, > You haven't given an example of where this might actually
> happen.  > > The driver is where the DMA mappings almost always
> occur because > that is the layer that knows the bus technology and
> therefore > the correct DMA interfaces to call.  > > What kind of
> driver do you have and what is this upper layer > doing the mappings
> for you but not giving you a pointer to > the kernel buffer as well?
> > Here I am dealing with a infiniband (see www.openfabrics.org)
> network device driver. The layer above the driver is the standard
> infiniband core interface. Now I have a situation where I need to
> peek into the packets and do some modifications(some hacking). So I
> just want know whether I can access the original data region using
> the bus address generated by the dma_map_single.

You can't, therefore you need to ask the Inifiniband guys to perhaps
tweak the infiniband driver interfaces so that you can get at the
buffer or provide some other mechanism by which you can accomplish
what you're trying to do.
-
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