Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp921052ybi; Wed, 19 Jun 2019 10:06:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGwEvGwMxFEpDFTBwQYcYHFygyxAUapfmoxmvrHqUbVGoal9FdyN3lya8esASlj8ftFAa1 X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr12691105pje.14.1560964000629; Wed, 19 Jun 2019 10:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560964000; cv=none; d=google.com; s=arc-20160816; b=RppP5XyHiTY58aQe3QFDzlPUE//Unsd9bAIVxhCqT1g6WvbFd5pFMxYv/PZYMDgnAq Fqg4cNFddAg56GYdli8Qnk1T8t9si88e0G1JLtyavxHbIvNZCJ4/mCpcu98K1Ia2qW12 c25f+VKzPcxPKwUytR0XGWiIfT6tL1MflKy8aKLGJKVc5mwjy8O9gobWny4HF9WSuWkD b78BDKyqwlmCccaqwC2WraepdKg5AOwp9RJmVUMKAEn91h+GSGLsDUqFPlhiNaHLPmDI zNoTZBljNHisYxjsSQVfXLujRsYTRrbCWubOE2jWHwo8QAK5v8Mx9neJBZSzG9dXTzIJ qhMQ== 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; bh=yoHsmyQ5fZnyJTwDwmkTrWJ6whUIlz4Ch0n0Np79pac=; b=CIEgS6RbaUHA+vmwGxviGfcXTDbS9t5z/K6uLFS4tmZYCCQTRI+L+Yo//uLhFb6nA1 lOP5DGKF2/9I9aFhxhwoqT/xANXZPx5L6VZcph6m6zu6bvPOaJeybAmxdnm6riyo12vB Iq4z3MceWWvjUa/iSeq/K49bfaUKmxEnTiHq8rym2rY6r+7FyJ4uwH29fTJThKlgKyza g8AZfLlzftNNGQ9gAgEf8ov3j7Tf7ntPquz15VhzfBVtB2cFiyVEgRp5yrE5Pe3U5UuD HlWI+X1Z3BkZ5BcnFvp6cY6ejpRjRoidIfuuNo8pqMUBzzF08eoeSAFQFEkozGpC8q09 +hHQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c14si3411746pgi.96.2019.06.19.10.06.23; Wed, 19 Jun 2019 10:06:40 -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; 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 S1727068AbfFSREt (ORCPT + 99 others); Wed, 19 Jun 2019 13:04:49 -0400 Received: from foss.arm.com ([217.140.110.172]:49174 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbfFSREt (ORCPT ); Wed, 19 Jun 2019 13:04:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4D1E2344; Wed, 19 Jun 2019 10:04:48 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A7C13F246; Wed, 19 Jun 2019 10:04:47 -0700 (PDT) Date: Wed, 19 Jun 2019 18:04:45 +0100 From: Will Deacon To: Al Viro Cc: Vicente Bergas , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas Subject: Re: d_lookup: Unable to handle kernel paging request Message-ID: <20190619170445.GI7767@fuggles.cambridge.arm.com> References: <23950bcb-81b0-4e07-8dc8-8740eb53d7fd@gmail.com> <20190522135331.GM17978@ZenIV.linux.org.uk> <20190522162945.GN17978@ZenIV.linux.org.uk> <10192e43-c21d-44e4-915d-bf77a50c22c4@gmail.com> <20190618183548.GB17978@ZenIV.linux.org.uk> <20190619162802.GF17978@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190619162802.GF17978@ZenIV.linux.org.uk> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Wed, Jun 19, 2019 at 05:28:02PM +0100, Al Viro wrote: > [arm64 maintainers Cc'd; I'm not adding a Cc to moderated list, > sorry] Thanks for adding us. > On Wed, Jun 19, 2019 at 02:42:16PM +0200, Vicente Bergas wrote: > > > Hi Al, > > i have been running the distro-provided kernel the last few weeks > > and had no issues at all. > > https://archlinuxarm.org/packages/aarch64/linux-aarch64 > > It is from the v5.1 branch and is compiled with gcc 8.3. > > > > IIRC, i also tested > > https://archlinuxarm.org/packages/aarch64/linux-aarch64-rc > > v5.2-rc1 and v5.2-rc2 (which at that time where compiled with > > gcc 8.2) with no issues. > > > > This week tested v5.2-rc4 and v5.2-rc5 from archlinuxarm but > > there are regressions unrelated to d_lookup. > > > > At this point i was convinced it was a gcc 9.1 issue and had > > nothing to do with the kernel, but anyways i gave your patch a try. > > The tested kernel is v5.2-rc5-224-gbed3c0d84e7e and > > it has been compiled with gcc 8.3. > > The sentinel you put there has triggered! > > So, it is not a gcc 9.1 issue. > > > > In any case, i have no idea if those addresses are arm64-specific > > in any way. > > Cute... So *all* of those are in dentry_hashtable itself. IOW, we have > these two values (1<<24 and (1<<24)|(0x88L<<40)) cropping up in > dentry_hashtable[...].first on that config. Unfortunately, those values don't jump out at me as something particularly meaningful on arm64. Bloody weird though. > There shouldn't be any pointers to hashtable elements other than ->d_hash.pprev > of various dentries. And ->d_hash is not a part of anon unions in struct > dentry, so it can't be mistaken access through the aliasing member. > > Of course, there's always a possibility of something stomping on random places > in memory and shitting those values all over, with the hashtable being the > hottest place on the loads where it happens... Hell knows... > > What's your config, BTW? SMP and DEBUG_SPINLOCK, specifically... I'd also be interesting in seeing the .config (the pastebin link earlier in the thread appears to have expired). Two areas where we've had issues recently are (1) module relocations and (2) CONFIG_OPTIMIZE_INLINING. However, this is the first report I've seen of the sort of crash you're reporting. Will