Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160621094625.GA15970@esperanza>
Date: Tue, 21 Jun 2016 12:46:25 +0300
From: Vladimir Davydov <vdavydov@...tuozzo.com>
To: Andy Lutomirski <luto@...nel.org>
CC: <x86@...nel.org>, <linux-kernel@...r.kernel.org>,
	<linux-arch@...r.kernel.org>, Borislav Petkov <bp@...en8.de>, Nadav Amit
	<nadav.amit@...il.com>, Kees Cook <keescook@...omium.org>, Brian Gerst
	<brgerst@...il.com>, "kernel-hardening@...ts.openwall.com"
	<kernel-hardening@...ts.openwall.com>, Linus Torvalds
	<torvalds@...ux-foundation.org>, Josh Poimboeuf <jpoimboe@...hat.com>, Jann
 Horn <jann@...jh.net>, Heiko Carstens <heiko.carstens@...ibm.com>, Johannes
 Weiner <hannes@...xchg.org>, Michal Hocko <mhocko@...nel.org>,
	<linux-mm@...ck.org>
Subject: Re: [PATCH v3 04/13] mm: Track NR_KERNEL_STACK in KiB instead of
 number of stacks

On Mon, Jun 20, 2016 at 04:43:34PM -0700, Andy Lutomirski wrote:
> Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a
> zone.  This only makes sense if each kernel stack exists entirely in
> one zone, and allowing vmapped stacks could break this assumption.
> 
> Since frv has THREAD_SIZE < PAGE_SIZE, we need to track kernel stack
> allocations in a unit that divides both THREAD_SIZE and PAGE_SIZE on
> all architectures.  Keep it simple and use KiB.
> 
> Cc: Vladimir Davydov <vdavydov@...tuozzo.com>
> Cc: Johannes Weiner <hannes@...xchg.org>
> Cc: Michal Hocko <mhocko@...nel.org>
> Cc: linux-mm@...ck.org
> Signed-off-by: Andy Lutomirski <luto@...nel.org>

Reviewed-by: Vladimir Davydov <vdavydov@...tuozzo.com>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.