Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp551827pxb; Thu, 21 Jan 2021 13:42:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzI2ZiAKF/XtDY3Tj9iejbAS8HTqYbWr7YbdcIXopZRxZhYdnTfd0noqIwszjYxzDvhnbUc X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr855427edc.323.1611265323384; Thu, 21 Jan 2021 13:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611265323; cv=none; d=google.com; s=arc-20160816; b=ZIdavo8qGg8N7mwmXJuNm8ztlWs+izqftId5NgvniOrKdPt+u4hsshkyKY1aad+OGA AyT+uv15MlODMpuZkWBT76eGumthjYcIrX0whhKF64lyV/D2N04VYhsTCw9p3HBUoDvR S6NbjsK3+8DzYpq8/67dEDGKzs9Da7brCMYsEjqzx3kn8fESrofhDAqGohLDr67KHbMW lbwTpLFvfiJj4ahlH9yTXcSna6o4oeZ2HEOxX4WALcVOtyLSPhxhdi/Hhv+ojBAu8W9U rAhnolLyOdpWVRTuM1pMAKEYNnbUwiqhOS30W9VSx3fhnQT+dWJOpikH/F3RZJoIXgvx FYHQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=8O3TqXV/UGT7utkSduxaSj2aVxiO6xi4Oj3ak6ifdkk=; b=JkDFThMGYBuYMiGGEmUgasuOVuO8PgvPu0pkdPvy+DyxRvbv6g1K99x7bwUolaHCMe xFYkIAoQ0rm5FWNIpRVVZ1k6dWSMmikJ0/S8Y2VNvdZMc2osih99KdCtpperKQUmA1wA Ec16mJR/0jzFWZoEBGknQYd6w2sp2k5qyD+sEhOIMHn7wWHLVMcYoa4nB8SL1/Qa2n2q Vq1JldnnohnxGbX4m8W5RylrgUJA0ss0cdVvXFOSDOkzk/erGdZrfDVDJmOCg9tjD9be pdAdCUP6Y8bvtnlfSYPzWXEgr5MGj6QM4eyDuFnLtUaTtdyDYiBNlA77nN0dcVkyjECW 9NNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s3E9tnK1; 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 de13si2113634edb.279.2021.01.21.13.41.39; Thu, 21 Jan 2021 13:42:03 -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=s3E9tnK1; 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 S1727664AbhAUVkH (ORCPT + 99 others); Thu, 21 Jan 2021 16:40:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:38276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbhAUVb6 (ORCPT ); Thu, 21 Jan 2021 16:31:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E23E23A53; Thu, 21 Jan 2021 21:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611264675; bh=L5lsmNVyN/gM7eKC23++Z8NFz5Zp1K8u7Gf3EzsLgTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s3E9tnK1u5bQtDZDhFxLwTEjQoye8OEe0JSXIIJXh59aGqORZ3Q8zdNRiWOaMY+g0 TyUNgL3pMTFaj2i3ooCy4cYUQgvFaWz8j3pr7ekeyTHWMRQm9QUVerC+yaSarK3yAv k+nnKZRsH9DipeZjI+Gyv2WfmmJpfAvnKNk38ZgnZtopWjVX/ds6YZFCJlf7Fzsgmw rtNd74QkiodsM0W+U02QglBYZ24GfAaF4uX1/H7V2igVdCZbkDbyUU9SgJ8QuK+MpZ bvOiVG6YGB0g+tiI+r4SIy132vvXRgO3YyF2zsSGpEidBTJBECm2W4/wcn4D2sWSrO m+qCinZgzKkHw== Date: Thu, 21 Jan 2021 21:31:10 +0000 From: Will Deacon To: "Paul E. McKenney" Cc: Naresh Kamboju , rcu@vger.kernel.org, open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, Peter Zijlstra , Steven Rostedt , Ingo Molnar , catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, vincenzo.frascino@arm.com, mark.rutland@arm.com Subject: Re: rcu-torture: Internal error: Oops: 96000006 Message-ID: <20210121213110.GB23234@willie-the-truck> References: <20210121185521.GQ2743@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210121185521.GQ2743@paulmck-ThinkPad-P72> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Will