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]
Message-ID: <689eb3470908261328m51e00168x144cf4c7241051f3@mail.gmail.com>
Date:	Wed, 26 Aug 2009 13:28:05 -0700
From:	Anupama Chandwani <anupama.chandwani@...il.com>
To:	Jiri Kosina <jkosina@...e.cz>
Cc:	linux kernel mailing list <linux-kernel@...r.kernel.org>
Subject: Re: All pages belonging to a process

Hi Jiri,

>>       /* For all vma-s of a process */
>>       for (vma = task->mm->mmap; vma!=NULL; vma = vma->next)
>
> you mean vma->vm_next?

Sorry for the typo, it is vma = vma->vm_next

>
>>       {
>>                pgd = pgd_offset(mm, address);
>>                if (!pgd_present(*pgd))
>>                     continue;
>>
>>                pud = pud_offset(pgd, address);
>>                if (!pud_present(*pud))
>>                     continue;
>>
>>                pmd = pmd_offset(pud, address);
>>                if (!pmd_present(*pmd))
>>                     continue;
>>
>>               pte = pte_offset_map_lock (task->mm->vm_mm, pmd, address, &ptl);
>>
>>               print pte_pfn(*pte) and other debug info;
>>
>>               pte_unmap_unlock(pte, ptl);
>>       }
>> }
>>
>> The code hangs. I do not get anything in dmesg.
>
> Do you have mmap_sem locked?

I didnt, but that didnt solve the problem.

>
> --
> Jiri Kosina
> SUSE Labs
>



-- 
Cheers,
Anupama Chandwani
--
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