From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751730AbcFXOOK (ORCPT ); Fri, 24 Jun 2016 10:14:10 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:32912 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbcFXOOJ (ORCPT ); Fri, 24 Jun 2016 10:14:09 -0400 Date: Fri, 24 Jun 2016 16:05:58 +0200 From: Michal Hocko To: Oleg Nesterov Cc: Linus Torvalds , Andy Lutomirski , Andy Lutomirski , the arch/x86 maintainers , Linux Kernel Mailing List , "linux-arch@vger.kernel.org" , Borislav Petkov , Nadav Amit , Kees Cook , Brian Gerst , "kernel-hardening@lists.openwall.com" , Josh Poimboeuf , Jann Horn , Heiko Carstens Subject: Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core) Message-ID: <20160624140558.GA20208@dhcp22.suse.cz> References: <20160623143126.GA16664@redhat.com> <20160623170352.GA17372@redhat.com> <20160623185221.GA17983@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160623185221.GA17983@redhat.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 23-06-16 20:52:21, Oleg Nesterov wrote: > On 06/23, Linus Torvalds wrote: > > > > On Thu, Jun 23, 2016 at 10:03 AM, Oleg Nesterov wrote: > > > > > > Let me quote my previous email ;) > > > > > > And we can't free/nullify it when the parent/debuger reaps a zombie, > > > say, mark_oom_victim() expects that get_task_struct() protects > > > thread_info as well. > > > > > > probably we can fix all such users though... > > > > TIF_MEMDIE is indeed a potential problem, but I don't think > > mark_oom_victim() is actually problematic. > > > > mark_oom_victim() is called with either "current", > > This is no longer true in -mm tree. > > But I agree, this is fixable (and in fact I still hope TIF_MEMDIE will die, > at least in its current form). We can move the flag to the task_struct. There are still some bits left there. This would be trivial so that the oom usage doesn't stay in the way. -- Michal Hocko SUSE Labs