Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1209893pxb; Fri, 22 Jan 2021 09:36:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF1wKt6PAchgyJ83qmYJcTwSmDMIveUMtcuQ24tvhEhjJTzkeNCTuSw6jFlPfAnh4mKNfD X-Received: by 2002:a17:907:9810:: with SMTP id ji16mr509084ejc.394.1611337008447; Fri, 22 Jan 2021 09:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611337008; cv=none; d=google.com; s=arc-20160816; b=aLC0x/Ub+mV5JIyx+NkdNvG8133wXMS4w+8yQMgmzlSIFs1Fx+UlaBwbeoKsn908ND wUwsNAZNsjp9X875STWqN7WmabuRXiNmMO2e9lTGZFDMCKw5NlR7UtTqY6q8jTWB61nG Zu9sGuANaz2HZXD7fqFEao9v7/CYLmgtKj5oR0tI8jpmQREnKebNLleqgNev/fW5BV/c gI7+tE1Lz8TxEOIffaCz0C5NArQ0f6xnUcDYOKi+p9jRLj3DcSbO1kgirWZrr+cZw/yM 5BZTmrTyUel477wHCziqftnpCC+/jgF9VLY6GD6LVfGcTAPN8U1izyt3b7bJA0VfRVL6 PfzA== 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=PpPrYrILqskXnutNdHkDCAFwbGpo3OQRJkbVZqI6O1A=; b=WqanwJTKAEN2p2N57BVl0tG7HukRoR4cH0p2h1nvPzybVoSZAvfinXndKESd4xRM4j 6ZQ3jis90UFnuYyj3E6BMjJOAmGwzQ/7zh8q6Y1BYO0YPci+nwWQ3ei5qfpmyLGlgz7q LhEKhFaVNry8ORovexXX+vFslah6zzx0fG++ROh6wh0xmW5r3bUrN6WjEHiwesA98sVw Q+05nqQDQSDcopVsEMC51dEMtDh9TuhKnOsNJMJVgCAPF5kQK8BcSZu+M4l+LcbAxj2G RejjIiIj0hPmN1afScAp6mGL/BQnPPeCyXGipnDDkWvbO/sjPY4fdG7G1we1ezI2Dnjy aInw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C2+CmALY; 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 ze12si3213740ejb.221.2021.01.22.09.36.24; Fri, 22 Jan 2021 09:36:48 -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=C2+CmALY; 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 S1730092AbhAVRbG (ORCPT + 99 others); Fri, 22 Jan 2021 12:31:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727486AbhAVPrb (ORCPT ); Fri, 22 Jan 2021 10:47:31 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21279C06178B for ; Fri, 22 Jan 2021 07:46:51 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id hs11so8322344ejc.1 for ; Fri, 22 Jan 2021 07:46:51 -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=PpPrYrILqskXnutNdHkDCAFwbGpo3OQRJkbVZqI6O1A=; b=C2+CmALYEOr/GCPo7GmqxPD3YW/Veyf0yeltDyUF5vls7X44uYfnMP06+jjzns5z7c DvgkUnkjk8RuByc3fpKR+cgGPeMHLjGBtE0eDbF23X+E1l25GYXYuh4QgoOfQOphDfDD /D0MEsy9Ia1rsMY1S5uL2OUyJ0Z7H6QxcZObbNZUpGRQ/zLDiI82/9/A1w/h23RDydK4 dMBXLbSRYXp0/PIYTRYOauI+w08hbHv5XQJoKQuO+01TBRCSkG94p5O10oQaKHVsxkdm VjjyxT8Dcgg/iC5rzWcE3zBvrcYQmpaZNMeIF3F25DW5vfWAVrp41N/ACRXcKKgka21y VwsQ== 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=PpPrYrILqskXnutNdHkDCAFwbGpo3OQRJkbVZqI6O1A=; b=G2zg3QjsPWlYoNXgNH6kjs7uJ7iwWQ5YLwvBvw1mjHtW8TK/nAJXg5mU9N0Rf74NSk MiO6A0u5Gy/5JpgShVpx65wqucYaBx12RohzJXu9UJQh3kwlhLUv92R8/j/TMNRhL9kf i05BL9A62IZOFFHtHT3fhcLZtEqQZw1XeJjgnNIl+3SMT3Knp61UE4+FI6aq7qUyImvC VXjBNRn8IVDHi8lHI7urr6lebVwfBKwls/r7o4USuAIfyIIM8ROZNnaAaX5ZeVBsl3au ouORF0yBdCVXqLP8/SPuYeb6svKN+LbNm5HEz+afr3/nSG7hxeD5S22q6oxyTYSFzv/P e1Ww== X-Gm-Message-State: AOAM530NGq38aaUgdNm4lGWkZolDtye7kv9gdUdJ31HiX0tHk6OMw+08 plp0lHUJVgNhK0Ux1pa0OqBya0ZTOa6N2Awgg97niA== X-Received: by 2002:a17:906:2695:: with SMTP id t21mr3534463ejc.287.1611330409763; Fri, 22 Jan 2021 07:46:49 -0800 (PST) MIME-Version: 1.0 References: <20210121185521.GQ2743@paulmck-ThinkPad-P72> <20210121213110.GB23234@willie-the-truck> <20210121214314.GW2743@paulmck-ThinkPad-P72> <20210122153704.GG2743@paulmck-ThinkPad-P72> In-Reply-To: <20210122153704.GG2743@paulmck-ThinkPad-P72> From: Naresh Kamboju Date: Fri, 22 Jan 2021 21:16:38 +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 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. > > 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. Happy to test ! - Naresh