Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1121235pxb; Fri, 22 Jan 2021 07:40:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW6gPGpQGnfF9j63nFr4N35gnAyhIedyJZtj/YFAJt1YmbLCduzA/jl9Ikcb8QdLrFnkTn X-Received: by 2002:a17:906:e106:: with SMTP id gj6mr3209049ejb.337.1611330019681; Fri, 22 Jan 2021 07:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611330019; cv=none; d=google.com; s=arc-20160816; b=qfjgZGH4HZgNzX4poKdjo3kZ5EUoihhXpvyFsEoDq3fjpHPW6kWXCWrQJHxzpXsEaG OY3XlB+uWRBiUv+WiUdLtCDJGjjMBKNdY4fMa5Xqp7J9fg2OZIzLNKBpNgtVQwUyqpMx HaNbL0FdmU2FBqFzRNG3a+3d6J9xOB5rEpLURCLrQMu1OHBoU9uGCq7bq6XKagwEYwjH 3TMcVgFMZkTL2njzU0xrVEqYOluLugpgIIrNVsgOqnPP1VWfXAz4CFXjh91mgXxfnR72 7+bim2kHoTvJ4wYFVi6+M1gEJaXHTP6p8cfaXaGpBm4r0j7DqJqy6zhtDteDyTr1IF3D DdWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9Irx/pVBu6cRDmqK9ZEUn+DQJGsiLd/3+Gw/mFKbY/c=; b=LVDLSO1bToTTVBn8oIYhlkMkDhbB06zMVn3fgsP7CPbaTt8Od7AVDipVcSzXC0o1RY 1phBVp+c8YsvfStrDRc2eN5fd4NzxnlCCV93TNZJsc49H+RV9R35YIzRuGNlVBzfJ/bz 6vt1lFxjTBAv4Af/DCFnfwPQ9QjkXlHNdRPoRU3OZDqlQR1jHSWNeO4xyrWOAN2I5eQi dlnU6ZFsZQZMgch7ilvbpXqalaZPXFk2xG1PqWxnnfHAuJyc6kMUte8MeZYofj8NtU92 ab4zq8ZeDjZptAyltUzcTtqOwcLmpW24gT3kh1uLJB5aKQ9cAO/yC5TBH3pclifhNwNK sQ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZCy4Jp8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si3346626ejg.566.2021.01.22.07.39.54; Fri, 22 Jan 2021 07:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZCy4Jp8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729093AbhAVPiy (ORCPT + 99 others); Fri, 22 Jan 2021 10:38:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:53288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729036AbhAVPhq (ORCPT ); Fri, 22 Jan 2021 10:37:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EE0E121D81; Fri, 22 Jan 2021 15:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611329825; bh=5lUEVa9PLDcanPTqWiXyf4Bt1OUsW3C1JiiAQUQkAQ0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=HZCy4Jp80NfNKEEkvvZTGGy1RRUqAm8otgYs9H/jDw785nwvA219LiXDNK1cF6vco EkMWsaFpNL5qFVNU8c4ftIb/vsU7/blRLRXx2v0A+X1QAgR7H5MKh5u8ITcdBjJY7y 6CnAQiJatUt2YGH/Ef+Pk59y8gWyjtDwvKVDlKPBTMQx8aICHZeD3gc3TCWFG3ZRv9 QYnrlaZRhZLxef8SRRtc3wbI/yIt9aLWPNcKL193Zmq/njtER8gampIKESbswH3uuy DxgHDTXKFR6yAITXikTvLHSBTgGXJ9VyJ2yhYlWqIfjUObV2+M+5BB2lzZakCRm2C+ wRUmWW4P3cnyA== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id B038F3522649; Fri, 22 Jan 2021 07:37:04 -0800 (PST) Date: Fri, 22 Jan 2021 07:37:04 -0800 From: "Paul E. McKenney" To: Naresh Kamboju Cc: Will Deacon , rcu@vger.kernel.org, open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, Peter Zijlstra , Steven Rostedt , Ingo Molnar , Catalin Marinas , Linux ARM , Vincenzo Frascino , Mark Rutland Subject: Re: rcu-torture: Internal error: Oops: 96000006 Message-ID: <20210122153704.GG2743@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20210121185521.GQ2743@paulmck-ThinkPad-P72> <20210121213110.GB23234@willie-the-truck> <20210121214314.GW2743@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 03:21:07PM +0530, Naresh Kamboju wrote: > On Fri, 22 Jan 2021 at 03:13, Paul E. McKenney wrote: > > > > On Thu, Jan 21, 2021 at 09:31:10PM +0000, Will Deacon wrote: > > > On Thu, Jan 21, 2021 at 10:55:21AM -0800, Paul E. McKenney wrote: > > > > On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh Kamboju wrote: > > > > > While running rcu-torture test on qemu_arm64 and arm64 Juno-r2 device > > > > > the following kernel crash noticed. This started happening from Linux next > > > > > next-20210111 tag to next-20210121. > > > > > > > > > > metadata: > > > > > git branch: master > > > > > git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > > > > > git describe: next-20210111 > > > > > kernel-config: https://builds.tuxbuild.com/1muTTn7AfqcWvH5x2Alxifn7EUH/config > > > > > > > > > > output log: > > > > > > > > > > [ 621.538050] mem_dump_obj() slab test: rcu_torture_stats = > > > > > ffff0000c0a3ac40, &rhp = ffff800012debe40, rhp = ffff0000c8cba000, &z > > > > > = ffff8000091ab8e0 > > > > > [ 621.546662] mem_dump_obj(ZERO_SIZE_PTR): > > > > > [ 621.546696] Unable to handle kernel NULL pointer dereference at > > > > > virtual address 0000000000000008 > > > > > > [...] > > > > > > > Huh. I am relying on virt_addr_valid() rejecting NULL pointers and > > > > things like ZERO_SIZE_PTR, which is defined as ((void *)16). It looks > > > > like your configuration rejects NULL as an invalid virtual address, > > > > but does not reject ZERO_SIZE_PTR. Is this the intent, given that you > > > > are not allowed to dereference a ZERO_SIZE_PTR? > > > > > > > > Adding the ARM64 guys on CC for their thoughts. > > > > > > Spooky timing, there was a thread _today_ about that: > > > > > > https://lore.kernel.org/r/ecbc7651-82c4-6518-d4a9-dbdbdf833b5b@arm.com > > > > Very good, then my workaround (shown below for Naresh's ease of testing) > > is only a short-term workaround. Yay! ;-) > > Paul, thanks for your (short-term workaround) patch. > > I have applied your patch and tested rcu-torture test on qemu_arm64 and > the reported issues has been fixed. May I add your Tested-by? And before I forget again, good to see the rcutorture testing on a non-x86 platform! Thanx, Paul