From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA27EC433DB for ; Thu, 21 Jan 2021 21:40:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 750BC206BE for ; Thu, 21 Jan 2021 21:40:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727701AbhAUVkN (ORCPT ); Thu, 21 Jan 2021 16:40:13 -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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93D30C433E0 for ; Thu, 21 Jan 2021 21:32:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E65D2064A for ; Thu, 21 Jan 2021 21:32:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E65D2064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Kx68fGllBU0U/8lmRdNtmSr/uj6+EUs6p6SxN5Z6LfA=; b=CESeMStecd0B0fmh97Nq+/38A P3Q7cH5k9AkB819MkDFoyfb4nCiZKkWwMeXQ5sgN3lNLlo+M2xrAOkoRU05AmBTe7n+ieTSeYI+b3 ENTRJPl32Z1zowhtdTbPgRxH85DAT7WXI5TJ18EnqHiVGYRjAn/v91Gb1SSrdotWZLHzHuddFWd4R C21M9++63BKgm4oXhutQOeJn8d8kMqCNtqx1A45q2LP/nnwQBqJVcRHYY2JfxtrCb6Saut7OtnVPJ ilfn8hkbvsOiHQ4HTddHSnHHsUaQkfCjpT1YKvagI4nuua0wUM8XJrLe+cxRCdtnPOHQo6Ok8r77M lERhz+6NA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2hXz-0003Tk-3C; Thu, 21 Jan 2021 21:31:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2hXw-0003Sj-Gg for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 21:31:17 +0000 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" 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-Disposition: inline In-Reply-To: <20210121185521.GQ2743@paulmck-ThinkPad-P72> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210121_163116_624096_F325963F X-CRM114-Status: GOOD ( 15.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, Peter Zijlstra , catalin.marinas@arm.com, Naresh Kamboju , open list , lkft-triage@lists.linaro.org, rcu@vger.kernel.org, Linux-Next Mailing List , Steven Rostedt , vincenzo.frascino@arm.com, Ingo Molnar , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel