Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1565088

Re: [PATCH] mm: ensure alloc_flags in slow path are initialized

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: ensure alloc_flags in slow path are initialized
Date Mon, 23 Jan 2017 17:10:02 +0100
Message-ID <t2PlU-9t-9@gated-at.bofh.it> (permalink)
References <t2LLk-6l3-15@gated-at.bofh.it> <t2Mo2-6yJ-27@gated-at.bofh.it>
X-Original-To Vlastimil Babka <vbabka@suse.cz>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=15qKua7VkJcJp8ICtEOZ9y+BdkmCpTM2N9u2rkPohUE=; b=RsporMsTfv50SCdyucBR7G3zrwoQGNkQLAV88YrwGroDfQkH58gITbmHLbys9KatMt LFhVduCxmy75Wc2AU7RoMKLo52BYnlMJLuqmBt4IUMjm4234O9BhRyjozsIhLzNe/y+s Xo3x3IOc++poPz6zuTXG4ekBPzHZqSM1LdlqHB2KDdyLF1ZKRIIjXpFe8Uj9fyRIj0+k LDtr4fw8Bq6iRaOjEyTc0GHU7a4STZEu563ft8dG0tD3PkaL3GJhTREMuFbqDJbe4rdQ pEibcLCGh7Ds/urORZ08ryaTj0HuBmyQpVJfTstCrnasElMyjNzuYQ80T5ErrAh+QWyg oxyQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=15qKua7VkJcJp8ICtEOZ9y+BdkmCpTM2N9u2rkPohUE=; b=kSqA7zHZBnCqq7O1psUk+UyH3ZTv/7e79i0Wh3NKZOHmDXBsHlwc8U4mq/nEMQ2y4S BO5AU0bfLbsAH/Nu/s9JVXHf6HXYPxi1noHRYjJfwHguNNgDC/PjBt9Quk8SW3dRx0gc DHUVVFoPzMtQfOTS/1Hd7By8zlB1Vfcka2oRKCV0SyP7T9vX5qLJLCkaYjwv+1qCV2eO 5u5l3X+08ZPaJVLNhTnA1lZhkY+PF24NWNtOUUjLPJl4BsNbv7NO8uUSoayiF6GXBkv0 8ErKWbe7JTsYw+A/swjplkFRzEUnBd3NawSu7vZp2BbMG0exVWE7kBUOTsqtghDQldOg 3rjw==
X-Gm-Message-State AIkVDXK2aHuu9gqD8TKW7UUFM6Chj3HTEBDJNd09jpll0mWOiugWxuHA/hfIHKZTo7IUJ7ZBwqUGzSFReirh+w==
X-Received by 10.36.175.83 with SMTP id l19mr15825410iti.113.1485187355345; Mon, 23 Jan 2017 08:02:35 -0800 (PST)
MIME-Version 1.0
X-Google-Sender-Auth HqeSEAJbXm2OPJLD0RnsA2X5Jrg
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc Andrew Morton <akpm@linux-foundation.org>, Mel Gorman <mgorman@techsingularity.net>, Michal Hocko <mhocko@suse.com>, Johannes Weiner <hannes@cmpxchg.org>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, linux-mm@kvack.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
X-Original-Date Mon, 23 Jan 2017 17:02:34 +0100
X-Original-Message-ID <CAK8P3a29aAA-YCkk=2h3iW=KTW=kq=gSniWfCzZs4nmpa8Adfw@mail.gmail.com>
X-Original-References <20170123121649.3180300-1-arnd@arndb.de> <ffce0866-0233-c7c4-027a-a0a1caa26cf3@suse.cz>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1565088

Show key headers only | View raw


On Mon, Jan 23, 2017 at 1:55 PM, Vlastimil Babka <vbabka@suse.cz> wrote:
> On 01/23/2017 01:16 PM, Arnd Bergmann wrote:

>> To be honest, I can't figure that out either, maybe it is or
>> maybe not,
>
>
> Seems the report is correct and not false positive, in scenario when we goto
> nopage before the assignment, and then goto retry because of __GFP_NOFAIL.

Ok, thanks for checking!

>> but moving the existing initialization up a little
>> higher looks safe and makes it obvious to both me and gcc that
>> the initialization comes before the first use.
>>
>> Fixes: 74eaa4a97e8e ("mm: consolidate GFP_NOFAIL checks in the allocator
>> slowpath")
>
>
> That's a non-stable -next commit ID for mmotm patch:
> mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath.patch
>
> The patch itself was OK, the problem only comes from integration with
> another mmotm patch (also independently OK):
> mm-page_alloc-fix-premature-oom-when-racing-with-cpuset-mems-update.patch
>
> By their ordering in mmotm, it would work to treat this as a fix for the
> GFP_NOFAIL patch, possibly merged into it.

Ok. I only tracked down which commit introduced the warning, which was
the one above.

    Arnd

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: ensure alloc_flags in slow path are initialized Arnd Bergmann <arnd@arndb.de> - 2017-01-23 13:20 +0100
  Re: [PATCH] mm: ensure alloc_flags in slow path are initialized Vlastimil Babka <vbabka@suse.cz> - 2017-01-23 14:00 +0100
    Re: [PATCH] mm: ensure alloc_flags in slow path are initialized Arnd Bergmann <arnd@arndb.de> - 2017-01-23 17:10 +0100
  Re: [PATCH] mm: ensure alloc_flags in slow path are initialized David Rientjes <rientjes@google.com> - 2017-01-24 00:00 +0100
  Re: [PATCH] mm: ensure alloc_flags in slow path are initialized Andrew Morton <akpm@linux-foundation.org> - 2017-01-24 01:00 +0100
    Re: [PATCH] mm: ensure alloc_flags in slow path are initialized Vlastimil Babka <vbabka@suse.cz> - 2017-01-24 10:20 +0100

csiph-web