Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp868366pxp; Wed, 9 Mar 2022 14:36:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzu9ldCsYk8h3Ygz+x2xtdnsU81eKl0PzeHiKtiMurQk4T4TlLFKnGLVXeXXRxiyxsFoLwf X-Received: by 2002:a17:907:d01:b0:6d7:9f7f:ef8a with SMTP id gn1-20020a1709070d0100b006d79f7fef8amr1820515ejc.656.1646865396737; Wed, 09 Mar 2022 14:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646865396; cv=none; d=google.com; s=arc-20160816; b=QMmgtI8jaltJoFe/hCVGxPU6uebGbDo9zMrx43z3y7VnsUb+4zfF844AxEAiLaei98 BlAwdZCw+yaRBB4flKwmgd68rAxNMWBT4017V8pK/LmXeWsscE+D4FqSq0pLCEWa2OaD AJOO/6b02NKGf+XyW5rNfpU3swOICHa2+hg3GkZooxKLxeGYBfI2D7+f3WtoIUYhp4eX R4/q6rxlExJSPZQiZroGl2v6nFcYJbvbMQ+61DFYskVKggPUSyWmviyOI2wCPTQTwqKM ZcC+eeBtOdIfAgfMrC9Axyi45YYA4svIjhIAHSjsgwSsWrAV05Jhck7m3rT5ozyHnSQE F0hA== 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=WuRiV0MwnoFueGO2XYJGp8esnQTXanM7Y/w/ZiBcWDw=; b=0S3yUMWorvj4qs09qNrv673wWL/gd0tZQRUmrNGDswGH/M8STghf6Sqss3E/kkVXyT Ob3p/aBurPDuh1midNlRIqn0XAwdfy1nqOfmDws//yu+UL4XxqX1IZ+oC2yy5CJCBD3c zvzivyT+TSH+3eIJ+WjTE+xRh6KOBYqOhOe/uROiVZHIeFLiIEs8y/y96TN/F2MHYDPN WW2s5i+cSBaI487jDpD+w8n4QBMuujkQvPjP3f/chMYaeWbChlyvh8j2+w/v534KtUQO F9p/ZRbjTPez+Oxxmk3GDyPomn6rRz5+b/JC2htjtzHAwK+5NY0SEOXHjSNiM0ZpROcC h2yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TkB1wVXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a056402254a00b004139d0f930asi3016095edb.305.2022.03.09.14.36.14; Wed, 09 Mar 2022 14:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TkB1wVXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236300AbiCIRBh (ORCPT + 99 others); Wed, 9 Mar 2022 12:01:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236187AbiCIRBD (ORCPT ); Wed, 9 Mar 2022 12:01:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55DA49AE4E; Wed, 9 Mar 2022 08:48:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 16283B82214; Wed, 9 Mar 2022 16:47:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0311C340E8; Wed, 9 Mar 2022 16:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646844474; bh=r4HgBdigGRlJ/gib60srGnwEHU/ybPJ/Pd5UYLaa/5U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TkB1wVXvtcj4gyhPwRPqGBevqJcu1ebizXT5hVQfLlCLJu0HjHSQFhBjiA90sZyW4 84Qk1XhX1Q+Bsc9Em4xWdS19uoHVfuHqZKKhfRoBin4C9ot1Jr44QfbIyiIBO1e5sV /T0Ktjq+RltVNFwG+9bWx2xKgD/zz3OmZyah08+LdZawEt+VM28xzIMqYaLB9sIE/v bYyTvQT3bc7sgiHnBvF9oMyaDCy5UPZSPtEFU/2juhlKfByltD85BLk5cyhCTletGF t0irZ7Zax720mXqo+CE73vHHJyIiVR+cSPc+2vFIpHmd+jtPrAVgbv2eMZe0P4NVdD CDtwqUeZmtDIw== Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-2db2add4516so30019627b3.1; Wed, 09 Mar 2022 08:47:54 -0800 (PST) X-Gm-Message-State: AOAM5315oTcghjA2LsSoY8iAdBIAbIrhSO9zOYZ/jScTrrg4Ao4TWXBe siFHYHHWZgpXmBlstqn6B+0Yc61A20yMM2R44KU= X-Received: by 2002:a81:854:0:b0:2db:255b:dd6 with SMTP id 81-20020a810854000000b002db255b0dd6mr585378ywi.140.1646844473928; Wed, 09 Mar 2022 08:47:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Wed, 9 Mar 2022 17:47:42 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [next] arm: Internal error: Oops: 5 PC is at __read_once_word_nocheck To: Naresh Kamboju Cc: "Russell King (Oracle)" , open list , Linux-Next Mailing List , Linux ARM , Linus Walleij , Arnd Bergmann , Corentin Labbe , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Mar 2022 at 17:38, Naresh Kamboju wrote: > > Hi Russell, > > On Wed, 9 Mar 2022 at 20:37, Russell King (Oracle) > wrote: > > > > On Wed, Mar 09, 2022 at 03:57:32PM +0100, Ard Biesheuvel wrote: > > > On Wed, 9 Mar 2022 at 15:44, Naresh Kamboju wrote: > > > > > > > Well, we unwound until: > > > > __irq_svc from migrate_disable+0x0/0x70 > > > > and then crashed - and the key thing there is that we're at the start > > of migrate_disable() when we took an interrupt. > > > > For some reason, this triggers an access to address 0x10, which faults. > > We then try unwinding again, and successfully unwind all the way back > > to the same point (the line above) which then causes the unwinder to > > again access address 0x10, and the cycle repeats with the stack > > growing bigger and bigger. > > > > I'd suggest also testing without the revert but with my patch. > > I have tested your patch on top of linux next-20220309 and still see kernel > crash as below [1]. build link [2]. > > [ 26.812060] 8<--- cut here --- > [ 26.813459] Unhandled fault: page domain fault (0x01b) at 0xb6a3ab70 > [ 26.816139] [b6a3ab70] *pgd=fb28a835 > [ 26.817770] Internal error: : 1b [#1] SMP ARM > [ 26.819636] Modules linked in: > [ 26.820956] CPU: 0 PID: 211 Comm: haveged Not tainted > 5.17.0-rc7-next-20220309 #1 > [ 26.824519] Hardware name: Generic DT based system > [ 26.827148] PC is at __read_once_word_nocheck+0x0/0x8 > [ 26.829856] LR is at unwind_frame+0x7dc/0xab4 > Thanks Naresh, Is this something that could be bisected? With the unwind change reverted, it is not obvious where the problem originated. Also, could you check whether it is reproducible on the ARM tree? (for-next on git://git.armlinux.org.uk/~rmk/linux-arm.git) Unfortunately, after having been able to reproduce this locally, the issue went away when I did the revert, so I am no longer seeing the problem. -- Ard.