From patchwork Wed Feb 17 15:04:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirill A. Shutemov" X-Patchwork-Id: 8340121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CE7A49F372 for ; Wed, 17 Feb 2016 15:07:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA7D3202AE for ; Wed, 17 Feb 2016 15:07:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53B39203B6 for ; Wed, 17 Feb 2016 15:07:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aW3ft-0004mL-L3; Wed, 17 Feb 2016 15:05:53 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aW3fN-00030u-72 for linux-arm-kernel@lists.infradead.org; Wed, 17 Feb 2016 15:05:27 +0000 Received: by mail-wm0-x233.google.com with SMTP id g62so164793682wme.1 for ; Wed, 17 Feb 2016 07:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KgQ+HaU0+3+xEuRfLCDdetg2ZRfobU+0vgRIfshek+s=; b=uhTRBwcqqDQ/ik2Yq36ZWyhGtIMl+TpEWtvkbZZoDJMVrG5I/o+nAjjzE9PvYY6rdK MYLyAAsbAW6dLwY6O5OvLmW0SV6eGyCV4+skQA6BWgaBXMCK6nRUW+16SzGbkIey0/hg jSgqpb80O9kGLUhvS4iqNCEpKTXowTeZ8ric+5cF+2pwMi3uD1DIZyt+ucwYnmPxoPjV kYqVka1LQvnbBwQmng8bFY77VEULZaJyU/K97q1Vh9uM98AfNyLgcFmNidYaOutrJjt2 RynFoTqNaezqFruLOXH8ZIjDkyde8Mxn8Meo+UhgQyJhp6QdmT33tdlMY1sOBC62JwK6 uYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=KgQ+HaU0+3+xEuRfLCDdetg2ZRfobU+0vgRIfshek+s=; b=hdENuUq4Tfkr42QkW0tPAuzp3tXHMiYjuqTAwxsPUG9gHOWy4I9nXi6ClonJFj94f1 aYSZ21gNCmYR+yh4DUxivtNicuxiPrR/5d5FIjeAEFInYcjfurbIpp7nts9oyJ2CC5fZ C5sQWZVCmcsaF+RY0yFztIEmE14euRWBk/Uy42I7lfCSR8r8WFHDdeVKwGaePGZeyxSB c/HtI9zAuw7SBcfL9NXEcWaufOH0shTEl7B01z80J7k+ffg5kSVOH6+XZiXejNL7L69+ gZHpJUR13j9hPesv/48XyXU3+C6EI/mxBxeC1sxxYvL2a2piEkLjQs/Ap4I6GMdNwlKz Sp5g== X-Gm-Message-State: AG10YOTQIKJZehEePt/nuJlFQ8h/k7pKaDRQ7QEWwPt7L/OEEq012ZJ6Wwrm2Y1iDAC1Ag== X-Received: by 10.194.189.71 with SMTP id gg7mr2423392wjc.127.1455721499139; Wed, 17 Feb 2016 07:04:59 -0800 (PST) Received: from node.shutemov.name ([178.121.195.17]) by smtp.gmail.com with ESMTPSA id b203sm3525967wmh.8.2016.02.17.07.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2016 07:04:57 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id BF3986197AE1; Wed, 17 Feb 2016 17:04:56 +0200 (EET) Date: Wed, 17 Feb 2016 17:04:56 +0200 From: "Kirill A. Shutemov" To: Gerald Schaefer Subject: Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM) Message-ID: <20160217150456.GA15882@node.shutemov.name> References: <20160211205702.24f0d17a@thinkpad> <20160212154116.GA15142@node.shutemov.name> <56BE00E7.1010303@de.ibm.com> <20160212181640.4eabb85f@thinkpad> <20160212231510.GB15142@node.shutemov.name> <20160215113159.GA28832@node.shutemov.name> <20160215193702.4a15ed5e@thinkpad> <20160215213526.GA9766@node.shutemov.name> <20160216172444.013988d8@thinkpad> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160216172444.013988d8@thinkpad> User-Agent: Mutt/1.5.23.1 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160217_070521_696703_FEA216C2 X-CRM114-Status: GOOD ( 17.01 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrea Arcangeli , linux-s390@vger.kernel.org, Catalin Marinas , Heiko Carstens , linux-mm@kvack.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Sebastian Ott , linux-kernel@vger.kernel.org, Will Deacon , Christian Borntraeger , Paul Mackerras , "Aneesh Kumar K.V" , Benjamin Herrenschmidt , Martin Schwidefsky , Andrew Morton , Linus Torvalds , "Kirill A. Shutemov" , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Feb 16, 2016 at 05:24:44PM +0100, Gerald Schaefer wrote: > On Mon, 15 Feb 2016 23:35:26 +0200 > "Kirill A. Shutemov" wrote: > > > Is there any chance that I'll be able to trigger the bug using QEMU? > > Does anybody have an QEMU image I can use? > > > > I have no image, but trying to reproduce this under virtualization may > help to trigger this also on other architectures. After ruling out IPI > vs. fast_gup I do not really see why this should be arch-specific, and > it wouldn't be the first time that we hit subtle races first on s390, due > to our virtualized environment (my test case is make -j20 with 10 CPUs and > 4GB of memory, no swap). Could you post your kernel config? It would be nice also to check if disabling split_huge_page() would make any difference: diff --git a/mm/huge_memory.c b/mm/huge_memory.c index a75081ca31cf..26d2b7b21021 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -3364,6 +3364,8 @@ int split_huge_page_to_list(struct page *page, struct list_head *list) bool mlocked; unsigned long flags; + return -EBUSY; + VM_BUG_ON_PAGE(is_huge_zero_page(page), page); VM_BUG_ON_PAGE(!PageAnon(page), page); VM_BUG_ON_PAGE(!PageLocked(page), page);