Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1411548pxb; Fri, 22 Jan 2021 15:26:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJw145wBEOD8u8n0EjLkX235dgQSpKSSSUHkLaBfpPVJ1Jpag2NKO4WIniurZ+3CmuBhTuDE X-Received: by 2002:a17:906:3b82:: with SMTP id u2mr4643488ejf.66.1611357995246; Fri, 22 Jan 2021 15:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611357995; cv=none; d=google.com; s=arc-20160816; b=YaA5JR7xDabe3hCyBry51OBm6Ej9SlNtWzjz+SGoXQFMaX5bTujtDUY+08IdA241Gv K0AEaPP+GVYOkWoGT2pUiOiyUTYEQgTJjQcIri0Q3usaiBpS4y7CfNOjcmsTqaSxo/14 2LmXVNX+UH+kfAK5uHe0uOGebRGKWPLOOR+EnydBQmr1ScEan+u2UPWxQ7SSk3tDKSKy LyuCl5OwkvN+SI2NF6uaB6cso7jeuBpye98lrINL8TvG+AVG7FTt1aukYyiytw52bAm6 Rap2TwIM+KdkHJT+tBj2g5Zs4hlJ8s3BLuOaqyiWlaeVZwe9chRDwMKW9K93VC/n5y60 6iFA== 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=yPyjgcVFAFlsY88F0NKmLK+f4uFbRKkN4hvVOsIBlHg=; b=gcgojXi7e4CyeFhfh/lCZwBWhpj6gQs+8B2EwyvegnclzKJ1dfb92UIDmk+WfPn6dB fT9aky8+UlGUi9/bopPNQKGkNJ8SVUcrkoB657nbxeVnhtCiiX5TSpnGjpX2X21qQ1UG 6doYu26RH3Q4LtokvefVeRcvWX6PkTVmo4iHRUdwXMY5IAjzl7N13o3RTMn1MM31shey c9XbWteq+A7QklEzIlfN2WFfwAKWwIAAI2Wjam/+ySo719q4rl1yhLruGVopRhfXt/bS 98D5h2DACjVYktTS/oC2HBXXZ40dGgfi5O7Xd8Zxow5voBjjU16GocSGvKPMPoP8/r1s HJpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QOsTrl7l; 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 jg13si3758739ejc.669.2021.01.22.15.26.11; Fri, 22 Jan 2021 15:26:35 -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=QOsTrl7l; 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 S1728442AbhAVXYh (ORCPT + 99 others); Fri, 22 Jan 2021 18:24:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:46326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728270AbhAVXYZ (ORCPT ); Fri, 22 Jan 2021 18:24:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0971923B51; Fri, 22 Jan 2021 23:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611357820; bh=gBpq+x+WrBcMxLANHAJZem6iOs03mqvdVd0gvK3+OyI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=QOsTrl7lxfr1poYM95xiUaJij33Pip75daCvAm+iZOO8v3sYwJbm8LsRit9VjiJNV WL83gM6kvXnS7LIYkKWu/T4D43d52jY3rhLgzVuRZJ028lyCm0QdEVz+VyF0TrApct 1iM2ihJcofHiUv0/jOtX59GaZS1O0rElYmQAYfqs2B71ci4+xlt4yrykgM9bzX9t2h ef6KP4+baiDX5W9wx7Roq1hjuAh21P/xp4V+jQ7TZoVa3ieoR+uAnIalRd/bF8opfW YLWm+HbyL2c+/bref1hEprUEXhpuYFLY9Mwd1+JE45oCHk9pbEgRUruwNEeMyZp9Hl RvjOrAbRcuk2Q== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id DA940352267C; Fri, 22 Jan 2021 15:23:39 -0800 (PST) Date: Fri, 22 Jan 2021 15:23:39 -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: <20210122232339.GI2743@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20210121185521.GQ2743@paulmck-ThinkPad-P72> <20210121213110.GB23234@willie-the-truck> <20210121214314.GW2743@paulmck-ThinkPad-P72> <20210122153704.GG2743@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 09:16:38PM +0530, Naresh Kamboju wrote: > On Fri, 22 Jan 2021 at 21:07, Paul E. McKenney wrote: > > > > 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? > > Yes. Please add Reported-by and Tested-by. Very good! I have added: Tested-by: Naresh Kamboju Because I folded the workaround into the first commit in the series, instead of adding your Reported-by, I added the following to that commit: [ paulmck: Explicitly check for small pointers per Naresh Kamboju. ] > > And before I forget again, good to see the rcutorture testing on a > > non-x86 platform! > > We are running rcutorture tests on arm, arm64, i386 and x86_64. Nice!!! Some ARMv8 people are getting bogus (but harmless) error messages because parts of rcutorture think that all the world is an x86. I am looking at a fix, but need to work out what the system is. To that end, coul you please run the following on the arm, arm64, and i386 systems and tell me what the output is? gcc -dumpmachine > Happy to test ! And thank you very much for your testing efforts!!! Thanx, Paul