Re: Find PTE for a virtual address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 28, 2010 at 12:05 AM, Mulyadi Santosa
<mulyadi.santosa@xxxxxxxxx> wrote:
> On Mon, Jun 28, 2010 at 09:54, sam shepperd <samshepperd@xxxxxxxxx> wrote:
>> Kindly thanks - that helps.  However the virtual address of the kernel
>> symbol I am looking up in memory is not within current->mm.
>
> Are you sure? Theoritically, kernel address space is mapped throughout
> all the task structure (e.g current->mm etc)
>
> After all, if it's a symbol address you're looking for, have you tried
> http://lxr.linux.no/linux+v2.6.34/+code=kallsyms_lookup_name and see
> if it suits you?

I think so.  The address returned by kallsyms_lookup_name is
0xCxxxxxxx (kernel virtual memory on x86).  I searched and it did not
occur inside current->mm for me (I am using a module so the ranges
returned were userspace virtual memory for insmod).

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux