Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp632378ybd; Sat, 22 Jun 2019 11:04:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaEbzxdoXVudTjvZiM1AfLVCqVGhOu6QOcLOhZk262bg0QAqyQdqMVtGcPebiSy7DUbiBE X-Received: by 2002:a63:f510:: with SMTP id w16mr24901369pgh.0.1561226681878; Sat, 22 Jun 2019 11:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561226681; cv=none; d=google.com; s=arc-20160816; b=eSxL9KWdykKztb5Pmikb7gAKaOH4xukEm4ab06CIgrHAMBJXsLOYaArRBZQprvnryd JaJaNCtTDdr+Me+SgDFwkd6c9MHg+y2JxlDtd/pk5UimJTyshO8/fiy0NIwPb7kaxPg8 V+oj0satS+8lIUULXAVyXS+Nn/xJ8iErQpyWb0g9VZPvMWUaubLDJvt32KqlTUWMt+6A YnTnugYgurI3yK3xjB+12Tv1jMVefk5jLAOOvjAtCnml1v5J8WttktIQxDXSGrICNI5y 7isQeKCrDW/2hPokMLk1rcCET0bK2/8tmpmjNQyx1xTwDol9CKJEonGuOfGmePwYIKUC x9TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent :references:in-reply-to:message-id:mime-version:date:subject:cc:to :from:dkim-signature; bh=MvdVlfsCZCzoiO3dWaS7svRVtEzJywqCcVUPGHCcDEY=; b=abuAfGJ+8ruVI2Fmb4npJOxbN0lk2IHr3mkWcp4DVsxUrXDPqygrwEjxuQjpcTbji2 T8cbYmM/+GwwYPBYlxsUw9mlprHc0b8u4fahHrV68ioI4WSCj2UY5h6I0xDuCVwJ9DI5 0M7Y3mS8ZvbXp8pD32goTgA4aAywZWo/GmMjqMtBLv/fQVMVfaEP/AQ4gkfhFPJW7Mb2 3+OrrTzKew8ddC+e3XFw4IFHL3obLVZhNFPslJx9LsKH1FDPK1BwxrsSN1UtGb5Xab80 lu798sgkchC0Qye8Po9G06EasT7zskN7YlgcF8HaF25W1FZy5PGqME9sQW4NRO2FiQM/ i0+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sRilaimF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si5206678pgp.497.2019.06.22.11.04.23; Sat, 22 Jun 2019 11:04:41 -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=pass header.i=@gmail.com header.s=20161025 header.b=sRilaimF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726430AbfFVSCY (ORCPT + 99 others); Sat, 22 Jun 2019 14:02:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44136 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfFVSCY (ORCPT ); Sat, 22 Jun 2019 14:02:24 -0400 Received: by mail-wr1-f68.google.com with SMTP id r16so9553398wrl.11; Sat, 22 Jun 2019 11:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:mime-version:message-id:in-reply-to :references:user-agent:content-transfer-encoding; bh=MvdVlfsCZCzoiO3dWaS7svRVtEzJywqCcVUPGHCcDEY=; b=sRilaimFeaePIYvUwtlO1PJMAd7GYlH/2BTb3QuVFlcXeebELLDg49wv+7OV/8s353 2ix06k0Vj/SkuFx5HkmQ2iu4KpaVsy0yRQGztD4WrEVP5IENxBnKBn1yAQikMz/IY1gW rz3EM5F7XA4NuzDE6aXSWaQ1VjRY/ipjHzBI6GleCLN8LLYpmIow2dZkBY2fK9X2yoWF PdvH8NNebh274GufOsmCvHqDn5dU/BBti+LvvxujmK5TIX92VIDaIu3BRWtf2a0JUJx5 cXoykUUfB7HRzYXUkArpvOEt5GZsQijFbXFNB6Nf+yl6ppbcfsgTgiFkpWF3JQXkfk2n 402Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:mime-version:message-id :in-reply-to:references:user-agent:content-transfer-encoding; bh=MvdVlfsCZCzoiO3dWaS7svRVtEzJywqCcVUPGHCcDEY=; b=PzhWnwJDBfjem/oOpqjheusToiCgQ+d63onyFijfQppw5hzjbekv7jh0UpvdshVD1Q b/hst7HMdWqCQAcUhbdj+NaqcHSrAWm6x1i2PECzvX8RxnnT0SkVo4Fcly7gfMuLhbFx jzSKgc6d+11brDBc+FH5dnUE18ntOFodeCxvCTGOrriCrLHqStAhmUFpHQMMk72OPcwT VceD3YzUs5wZ0gMttfE3zP7afVjiRbPEgvX95HWmGgqgG6eyeqZPwgOJprJOMfozAMoI wRo2F5C589hv3ciiHkCEpxkFEHQy8v58twf+kpL7LKjxja9p7SmHoz/Xbrm/Ky4TU22x ASQA== X-Gm-Message-State: APjAAAWaAlFlYhqn5gMqwN9jQGuW2pQDX9hNTSsv4D5DXHA5tzcKNj+u AqvkRA81NiCNy2ntxRTcbSESHdVPNvRMGA== X-Received: by 2002:adf:82e7:: with SMTP id 94mr8603119wrc.95.1561226542020; Sat, 22 Jun 2019 11:02:22 -0700 (PDT) Received: from localhost ([92.59.185.54]) by smtp.gmail.com with ESMTPSA id q15sm4621055wrr.19.2019.06.22.11.02.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 22 Jun 2019 11:02:20 -0700 (PDT) From: Vicente Bergas To: Al Viro Cc: , , Catalin Marinas , Will Deacon Subject: Re: =?iso-8859-1?Q?d=5Flookup:_Unable_to_handle_kernel_paging_request?= Date: Sat, 22 Jun 2019 20:02:19 +0200 MIME-Version: 1.0 Message-ID: In-Reply-To: <20190619170940.GG17978@ZenIV.linux.org.uk> 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> <20190619170940.GG17978@ZenIV.linux.org.uk> User-Agent: Trojita Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, i think have a hint of what is going on. With the last kernel built with your sentinels at hlist_bl_*lock it is very easy to reproduce the issue. In fact it is so unstable that i had to connect a serial port in order to save the kernel trace. Unfortunately all the traces are at different addresses and your sentinel did not trigger. Now i am writing this email from that same buggy kernel, which is v5.2-rc5-224-gbed3c0d84e7e. The difference is that I changed the bootloader. Before was booting 5.1.12 and kexec into this one. Now booting from u-boot into this one. I will continue booting with u-boot for some time to be sure it is stable and confirm this is the cause. In case it is, who is the most probable offender? the kernel before kexec or the kernel after? The original report was sent to you because you appeared as the maintainer of fs/dcache.c, which appeared on the trace. Should this be redirected somewhere else now? Regards, Vicen=C3=A7. On Wednesday, June 19, 2019 7:09:40 PM CEST, Al Viro wrote: > On Wed, Jun 19, 2019 at 06:51:51PM +0200, Vicente Bergas wrote: > >>> What's your config, BTW? SMP and DEBUG_SPINLOCK, specifically... >>=20 >> Hi Al, >> here it is: >> https://paste.debian.net/1088517 > > Aha... So LIST_BL_LOCKMASK is 1 there (same as on distro builds)... > > Hell knows - how about > static inline void hlist_bl_lock(struct hlist_bl_head *b) > { > =09BUG_ON(((u32)READ_ONCE(*b)&~LIST_BL_LOCKMASK) =3D=3D 0x01000000); > bit_spin_lock(0, (unsigned long *)b); > } > > and > > static inline void hlist_bl_unlock(struct hlist_bl_head *b) > { > __bit_spin_unlock(0, (unsigned long *)b); > =09BUG_ON(((u32)READ_ONCE(*b)&~LIST_BL_LOCKMASK) =3D=3D 0x01000000); > } > > to see if we can narrow down where that happens?