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: <20061013173207.2608.qmail@web32409.mail.mud.yahoo.com>
Date:	Fri, 13 Oct 2006 10:32:06 -0700 (PDT)
From:	Anil kumar <anils_r@...oo.com>
To:	linux-kernel@...r.kernel.org
Subject: page_address issue

Hi,

How can I confirm if the address returned from
page_address is correct?
The system is EM64T. My hardware supports only 32bit
DMA.
The kernel is 2.6.16 based (SLES10).
The following is the snippet of the code:
if(cmd->use_sg){

unsigned char *pBuf;
sg = (struct scatterlist *)cmd->request_buffer;

pBuf = (unsigned char
*)page_address(sg->page)+sg->offset

}

The number of DMA buffers returned from dma_map_sg is
one. 
I don't think it involves any page boundary issues as
the length of the buffer and offset are well within
the page.
The command is Inquiry. 
I checked the page is a NOT a HighMemPage

The system is 64bit, but the hardware dma capability
is only 32bit. Has this got something to do?
I also checked swiotlb is enabled.

Any help is greatly appreciated.

with regards,
  Anil


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
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