Path: csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Vegard Nossum Newsgroups: linux.kernel Subject: Re: kernel BUG at mm/mempolicy.c:1699! Date: Fri, 29 Jul 2016 21:20:02 +0200 Message-ID: References: X-Original-To: Dmitry Vyukov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway X-Original-Cc: Andrey Ryabinin , Alexander Potapenko , kasan-dev , LKML , Linux MM X-Original-Date: Fri, 29 Jul 2016 21:10:23 +0200 X-Original-Message-ID: <579BAA1F.6000704@oracle.com> X-Original-References: <579B991C.9050809@oracle.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1452525 On 07/29/2016 08:05 PM, Dmitry Vyukov wrote: > On Fri, Jul 29, 2016 at 7:57 PM, Vegard Nossum wrote: >> ------------[ cut here ]------------ >> kernel BUG at mm/mempolicy.c:1699! [...] >> In particular, it's interesting that the kernel/exit.c line is >> >> mpol_put(tsk->mempolicy); >> >> and alloc_pages_current() does (potentially): >> >> pol = get_task_policy(current);. >> >> The bug seems very new or very rare or both. > > This is https://github.com/google/kasan/issues/35 > It is introduced with stackdepot. Ah, cool. Would it be enough to set __GFP_THISNODE in depot_save_stack() so it uses &default_policy instead of current->mempolicy? Vegard