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-next>] [day] [month] [year] [list]
Date:	Tue, 17 Nov 2015 15:21:35 +0000
From:	alan hopes <hopes.alan@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: read physical address space

Hi,

I am new to kernel and working on a college project.

I have kernel module which takes process ID. Based on the PID, I walk
its page tables and get to PTE for a particular VMA area.

I convert PTE to physical address (phy_addr) and now I want to read
from the that physical address.

I have made sure the page containing the physical address is mapped
but if I do printk (*phys_addr) , then kernel crashes.

I think I am missing some important concept here. Do I need another
driver to access physical space, may be a PCI driver as RAM being a
PCI device ?

Thanks
Alan
--
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