From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id 618966B025F for ; Thu, 18 Jan 2018 11:58:33 -0500 (EST) Received: by mail-it0-f70.google.com with SMTP id y20so10915188ita.5 for ; Thu, 18 Jan 2018 08:58:33 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n132sor4330433ita.136.2018.01.18.08.58.32 for (Google Transport Security); Thu, 18 Jan 2018 08:58:32 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4a6681a7-5ed6-ad9c-5d1d-73f1fcc82f3d@linux.intel.com> References: <201801160115.w0G1FOIG057203@www262.sakura.ne.jp> <201801170233.JDG21842.OFOJMQSHtOFFLV@I-love.SAKURA.ne.jp> <201801172008.CHH39543.FFtMHOOVSQJLFO@I-love.SAKURA.ne.jp> <201801181712.BFD13039.LtHOSVMFJQFOFO@I-love.SAKURA.ne.jp> <20180118122550.2lhsjx7hg5drcjo4@node.shutemov.name> <20180118131210.456oyh6fw4scwv53@node.shutemov.name> <4a6681a7-5ed6-ad9c-5d1d-73f1fcc82f3d@linux.intel.com> From: Linus Torvalds Date: Thu, 18 Jan 2018 08:58:31 -0800 Message-ID: Subject: Re: [mm 4.15-rc8] Random oopses under memory pressure. Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen Cc: "Kirill A. Shutemov" , Tetsuo Handa , "Kirill A. Shutemov" , Andrew Morton , Johannes Weiner , Joonsoo Kim , Mel Gorman , Tony Luck , Vlastimil Babka , Michal Hocko , Andrea Arcangeli , "hillf.zj" , Hugh Dickins , Oleg Nesterov , Peter Zijlstra , Rik van Riel , Srikar Dronamraju , Vladimir Davydov , Ingo Molnar , Linux Kernel Mailing List , linux-mm , the arch/x86 maintainers On Thu, Jan 18, 2018 at 6:38 AM, Dave Hansen wrote: > On 01/18/2018 05:12 AM, Kirill A. Shutemov wrote: >> - if (pte_page(*pvmw->pte) - pvmw->page >= >> - hpage_nr_pages(pvmw->page)) { > > Is ->pte guaranteed to map a page which is within the same section as > pvmw->page? Otherwise, with sparsemem (non-vmemmap), the pointer > arithmetic won't work. Lovely. Finally a reason for this bug that actually seems to make sense. Thanks guys. Tetsuo - does Kirill's latest patch fix this for you? The one with Subject: [PATCH] mm, page_vma_mapped: Fix pointer arithmetics in check_pte() in the body of the email? I'm really hoping it does, since this seems to make sense. Linus -- 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