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]
Date:	Thu, 20 Dec 2007 16:23:39 +0100
From:	Peter Zijlstra <peterz@...radead.org>
To:	Hugh Dickins <hugh@...itas.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	linux-mm <linux-mm@...ck.org>, Nick Piggin <npiggin@...e.de>,
	riel <riel@...hat.com>, Lennart Poettering <mztabzr@...inter.de>
Subject: Re: [rfc][patch] mm: madvise(WILLNEED) for anonymous memory


On Thu, 2007-12-20 at 16:18 +0100, Peter Zijlstra wrote:

> +static int madvise_willneed_anon_pte(pte_t *ptep,
> +		unsigned long start, unsigned long end, void *arg)
> +{
> +	struct vm_area_struct *vma = arg;
> +	struct page *page;
> +
> +	page = read_swap_cache_async(pte_to_swp_entry(*ptep), GFP_KERNEL,

Argh, with HIGHPTE this is done inside a kmap_atomic.

/me goes complicate the code with page pre-allocation..


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