Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp519894imm; Thu, 26 Jul 2018 07:36:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdWwZbE+LjipC5Lw7ux3MdpnxK6RVD+FV2I4k+VjiLGQjQF0dKH0I1DIx3J35d1D8K2jeNC X-Received: by 2002:a63:c608:: with SMTP id w8-v6mr2222738pgg.16.1532615769017; Thu, 26 Jul 2018 07:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532615768; cv=none; d=google.com; s=arc-20160816; b=WATIbapO/3C3z7nUI73UFpitf3O1Lqt55qs02G68MeyXTDLdslVz6m6UrfH0mtQkl+ KEiWK8vUU+q5xOTrb0Rng3EL6MANBJvI9URPdYzm6pZeMzB+c5dG9POsSiN9WcqtJtTj 5N91dPkkssDVrGkjQhe3HkkH1QpsQg+iXOkO2rprk4dghLyUVemLyeYS/+4rD+m5KXn1 185HI23yPD6Zfgr3Ve6k3RL8hgQGq6TGdNSvnCicLaSOTr/jwBI4kPzdNQMAXLfCR2hY o/9ddETDbdj/fXFJl8i/iDhaAlzG+cVAtPAzYnzovaM0FgHS4YOAwLbEwmqrONeQTufL CYpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=52yzPSHXQvPXq6R6eUFm+UkOoKYuGo+Ah4R3UBQFFuY=; b=fJTfn9HtZVO27nFkgrc6Y/9Q2qjSyb5Fn7QpbTbn45ZjuSNdA1iUs+A3of43jzfA1G ZJFvbqoCL8FfDaebfJwI8Aey/n5w1JbD3VJ/Hxhclpdj5hb5hL8IrOCMPm//C3AHtYHC pm11VhOlx3JN6q9LPN8uQNMefjeONJD2vMcLwAWlGao0gE0gnY66q41zgiVaizlb5bS6 /Wp8BeD2mQP6w9FU5uUfDfXwSRHpbKBAhpxUcx0Wcu3pqLxomlGOQzZKL63BD21HK3uv F2euZJwpRBSFORY40N2fy6UtCuEYn6zNcjdrHqtA1zO4HXN0GoEWDFJdTRe4vO9dN0Rw oQQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uUCa5p5I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si1569534pfd.38.2018.07.26.07.35.53; Thu, 26 Jul 2018 07:36:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uUCa5p5I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731011AbeGZPvE (ORCPT + 99 others); Thu, 26 Jul 2018 11:51:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54300 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729923AbeGZPvE (ORCPT ); Thu, 26 Jul 2018 11:51:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=52yzPSHXQvPXq6R6eUFm+UkOoKYuGo+Ah4R3UBQFFuY=; b=uUCa5p5IsI7Xmi2GQPCitSKJo Ckiq/lyTZeWbb81SstUK78jk3O4YSIVrSOOqKYjImHQB4uqG3c0GylFc0/dXZKbBeou6g2KcMORVo 95X6nWvu88HLnPAAC8Ty+9SAW/gWDzeI0Mw+n/xKSsQp3+nx5bMxhNTJy8bSTCL1iWAeh1/NJMy4Z YLUYpDaLplAdAMOZIlDG4U8MJOfpxIz4JP5ha9TKiQvW2gO2OVjChyEOehsEWqCqJAHUe7LB8u3lS x72TOV6Nz3ySbF1XEXcOz8zzTJjTqrul/nQszpJMABT4RVhgCxOJXad+cAv5z5F3qUOSMbOlS/H6R G6yCJPqUA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fihKz-0003oa-P7; Thu, 26 Jul 2018 14:33:53 +0000 Date: Thu, 26 Jul 2018 07:33:53 -0700 From: Matthew Wilcox To: Hugh Dickins Cc: syzbot , "Kirill A. Shutemov" , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: kernel BUG at mm/shmem.c:LINE! Message-ID: <20180726143353.GA27612@bombadil.infradead.org> References: <000000000000d624c605705e9010@google.com> <20180709143610.GD2662@bombadil.infradead.org> <20180723140150.GA31843@bombadil.infradead.org> <20180723203628.GA18236@bombadil.infradead.org> <20180723225454.GC18236@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 25, 2018 at 11:53:15PM -0700, Hugh Dickins wrote: > Now I've learnt that an oops on 0xffffffffffffffbe points to EEXIST, > not to EREMOTE, it's easy: patch below fixes those four xfstests > (and no doubt a similar oops I've seen occasionally under swapping > load): so gives clean xfstests runs for non-huge and huge tmpfs. Excellent! I'm adding this: +++ b/lib/test_xarray.c @@ -741,6 +741,13 @@ static noinline void check_create_range_2(struct xarray *xa , unsigned order) XA_BUG_ON(xa, !xa_empty(xa)); } +static noinline void check_create_range_3(void) +{ + XA_STATE(xas, NULL, 0); + xas_set_err(&xas, -EEXIST); + xas_create_range(&xas); +} + static noinline void check_create_range(struct xarray *xa) { unsigned int order; @@ -755,6 +762,8 @@ static noinline void check_create_range(struct xarray *xa) if (order < 10) check_create_range_2(xa, order); } + + check_create_range_3(); } static LIST_HEAD(shadow_nodes); and fixing the bug differently ;-) But many thanks for spotting it! I'll look into the next bug you reported ...