Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp903565pxb; Fri, 22 Jan 2021 02:03:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTOsBXTGw2QqCPk5RVXZiCS6XM+FCwkA06qphTfRiwSvCUXwx65yMSiQXZSMr2HR0yRD2e X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr2467023ejb.437.1611309835099; Fri, 22 Jan 2021 02:03:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611309835; cv=none; d=google.com; s=arc-20160816; b=aXKDLE15Wl7aotRKxzyjYkKBDE5BOSzINuvXZ7zxyXaiiQ519+/GWeL4qh094mVndy Uzm4b6pfW/OIWnEZiI7RMVx3NcHmW1yAbp43KGrWHN4XdG6VCCMQ0YPVtucDMKbF/sdr TpkXiPEpuWTSj2NTal2yUX8NdaqeudMDtQcDL5lUDDMYUvDH3ErQDkHsnKy4FQFB7wcm ixjwaYp2lscQqXoZmnKe7h4QIUwj8e7w87y7FNvsXFKyYxe407Bn9F1y6vH45maOU++g 9PZYirWyOa/KJnbGoBtiGpIKsbbH8ooXM1YT+06Q1uP+Z3RMOmWtgQa6cs7FJtFfkjE8 EnMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6SOZ0cafIsQ2pjxZKEsji3NjTpPSIIGuynZ9xZcUToY=; b=o/5ufn+Rmm05Of1cT9+i+MImL/H2QYZo7VKU9l+mJ2Qx9e2AmanotSVzjN1FAoRq6z kxPBC5JiVKn74ivEx7yfQkJOHzx+KaUVv2NDmVYO8yMk/o5YEhzNO0f2a+q9ApGP+k3t AZc95CCHMyu5ZVhrDm5Li1aThbePfa7GEdUf7dd65IK0bTsSAoIf8irLv1e92eK4+00o 9U2/x7CB6s7a2QXrR6VwL9ysJBIF9MXnIo7gGPD0uyfl+C7MWRPIqYXE8gGEFgt3hCPt ITJO41b+ml712+7+sCmDqmkyUEsbyREdFfp8ntwjnjy77L/VTrpXLyQST9qg5C+UkbLM evxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztKqHymK; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si3046355ejt.89.2021.01.22.02.03.30; Fri, 22 Jan 2021 02:03:55 -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=@linaro.org header.s=google header.b=ztKqHymK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727226AbhAVKAm (ORCPT + 99 others); Fri, 22 Jan 2021 05:00:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbhAVKAL (ORCPT ); Fri, 22 Jan 2021 05:00:11 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9805C061352 for ; Fri, 22 Jan 2021 01:51:19 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id by1so6808466ejc.0 for ; Fri, 22 Jan 2021 01:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6SOZ0cafIsQ2pjxZKEsji3NjTpPSIIGuynZ9xZcUToY=; b=ztKqHymKyLAIKP1qDj25Z0vFnV8lkexGar1wlQhZ7Rfg8c4jimASSEu3EMx6QNc9xt /UvDVuSdpibwYuUfHMvcomb5tGn1OeKvoi71lF5ZwUl6ePE7Mfc57I4uQf5xNJ8tXEEy mOyktrWbjdAv6URUuvt7PwLdEnteAaSEkHPyO8vXOhNbrfQHerbzre3VYp/h/evQYlJB fouV9L1yJo/0dB4OCITN92tMCAmOB1RGGoybCsptJuKlo3e3nsyMl5diLyQRC9L816BZ BD9BAva69CDiC6VvjgBjZ04DmOq03Vlb5IxAl8CNhdH54iD+BlXZAk6UeQKt99ShdIVL dbIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6SOZ0cafIsQ2pjxZKEsji3NjTpPSIIGuynZ9xZcUToY=; b=cLkZ6xTrYwWfIPkjqTI7kIoZRVsbPLPGooz/s9xIbffn8s1fKDXg6CMYMAGPqIZxmp SwM06asOHbIh91OlxESdmd2le5a8YL9Ze5ka6ZsIk1lGpbWW/wq3/QjHs/iK7RBNgJUw aEXkOGBwY/zaEyuP4XC7MRuVI/wxpCyW0W926I/dJ/pnRwPwVsGNB2hitWKVv0EKinIl c15euZD8mYJq9rfP+ULAVwthhT/PsN+UXgQp5L+XaqRbWPOfA7NPuPw7Jb8pXNUg2XG+ eNkIwzLJAp3qR522lmK11hDoDHyPO7nZOg5xH/EQcGg850hyaHNGy9AoY90Xin5WU1WC v3kQ== X-Gm-Message-State: AOAM530dUsAQQzkZVNBk/wgaMa7NTu2UuiUclp5XzQZEgGXEneD95MPq I55JGT0FfPHpUr+1ZTvt646HFhwaNNeVPKBWxE7RPA== X-Received: by 2002:a17:906:4443:: with SMTP id i3mr2288434ejp.133.1611309078552; Fri, 22 Jan 2021 01:51:18 -0800 (PST) MIME-Version: 1.0 References: <20210121185521.GQ2743@paulmck-ThinkPad-P72> <20210121213110.GB23234@willie-the-truck> <20210121214314.GW2743@paulmck-ThinkPad-P72> In-Reply-To: <20210121214314.GW2743@paulmck-ThinkPad-P72> From: Naresh Kamboju Date: Fri, 22 Jan 2021 15:21:07 +0530 Message-ID: Subject: Re: rcu-torture: Internal error: Oops: 96000006 To: "Paul E. McKenney" 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. - Naresh