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]
Date:	Mon, 10 Nov 2014 16:23:57 -0800
From:	Joel Fernandes <agnel.joel@...il.com>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	"kernelnewbies@...nelnewbies.org" <kernelnewbies@...nelnewbies.org>
Cc:	Andrew Morton <akpm@...ux-foundation.org>
Subject: Confusion about __do_fault and MM_ANONPAGES

Hi,

I have some confusion about when is anon=1 when __do_fault is called.

__do_fault seems to be called only when the page fault is of a linear
or a non-linear mapping. My understanding is neither of these can be
anonymous, so I am confused about the below code fragment:

In which case is anon=1 when memory.c::__do_fault is called?
In __do_fault, you'll see something like...
        if (anon) {
            inc_mm_counter_fast(mm, MM_ANONPAGES);
            page_add_new_anon_rmap(page, vma, address);
        } else {


Thanks!
Joel
--
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