From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f200.google.com (mail-yw0-f200.google.com [209.85.161.200]) by kanga.kvack.org (Postfix) with ESMTP id 25B826B025E for ; Fri, 24 Jun 2016 11:22:16 -0400 (EDT) Received: by mail-yw0-f200.google.com with SMTP id f75so174151616ywb.3 for ; Fri, 24 Jun 2016 08:22:16 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id w124si5218983qka.185.2016.06.24.08.22.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2016 08:22:15 -0700 (PDT) Date: Fri, 24 Jun 2016 10:22:12 -0500 From: Josh Poimboeuf Subject: Re: [PATCH v4 07/16] mm: Fix memcg stack accounting for sub-page stacks Message-ID: <20160624152212.5uutwkvfmj6sr24c@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Linus Torvalds , Jann Horn , Heiko Carstens , Vladimir Davydov , Johannes Weiner , Michal Hocko , linux-mm@kvack.org On Thu, Jun 23, 2016 at 09:23:02PM -0700, Andy Lutomirski wrote: > We should account for stacks regardless of stack size, and we need > to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the > units to kilobytes and Move it into account_kernel_stack(). > > Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat") > Cc: Vladimir Davydov > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: linux-mm@kvack.org > Reviewed-by: Vladimir Davydov > Acked-by: Michal Hocko > Signed-off-by: Andy Lutomirski Reviewed-by: Josh Poimboeuf -- Josh -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org