Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9448804rwd; Wed, 21 Jun 2023 07:35:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4L6NO6WfqnSvrbqww4J0Mcbk0e+ANob5oPZ+JLUpuJSi5/yBGg7U9WV1WEGoVQWf4lm5/0 X-Received: by 2002:a17:90a:6ac5:b0:25e:a4ac:8516 with SMTP id b5-20020a17090a6ac500b0025ea4ac8516mr11365347pjm.46.1687358156025; Wed, 21 Jun 2023 07:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687358156; cv=none; d=google.com; s=arc-20160816; b=ltWhyATI5xiMNO0iv3YAxvtQH4v+jSKNsZPqYPW2hAAOAJHWjAt8PQk63VnmlsTQdm Dy/MhF2adEiMnx2TvfwLVXc1sihMxJP6rxpZC4VLuebvONrsD/dxKQ18au4S9hydH3+9 +kpuwshbhWSftENLS6PqgEhFR/xIViHoNesBYUow5PfUYV8BCA6xv5QhzHTvGtYRQWUm D0FmOxhsukaPoZ2EX1vHBcL7iDx5392z20TDFjianV8dmPH8ojE07v66wxrO77JaBU66 mEHu160+N9ufngvOOnZBZTm89V446dqXD6wgmkI66pxFY2elbGohbnZeDZfKu7bqTloK QV7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3LR4PDkdrWuA9l6EMLBodrJpcuDoMtm6x2sjEnKK0/g=; b=FS4/yNNWl7zGNn97G27eRzD++ozjIY3WQHPOgUEDgVO5HvlAkMis7S+LD+mrT4fEzk +ivZ4g3+aDatzOw1+XABcUtV0gxFQoZYcJBP6to1k9/QP3WUjHaDOVDFEiD288FCO/cw erkueZITdPx6IGWSi4l/7S/dz3KctNz4R0Ii/qb37f4lNVw5ZItDtzMNwR2pLvEOdAO2 Q92Tf8Pf8w/eTMNf/hrcn7Pf4abccBn6avUdedEzuPM+ui57TqzYhPFUPBooKIgDVJ+I A7oP6udT1EQdbqcHbaqFu0h5M/a94/OExTzMOsfKiL3PcStJr6aIVURYCkQaIYe1WYso 6VDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gNpimUkP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a639208000000b0054fdc588111si3998993pgd.438.2023.06.21.07.35.41; Wed, 21 Jun 2023 07:35:56 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=gNpimUkP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbjFUOQ5 (ORCPT + 99 others); Wed, 21 Jun 2023 10:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232560AbjFUOQ4 (ORCPT ); Wed, 21 Jun 2023 10:16:56 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E745F94; Wed, 21 Jun 2023 07:16:54 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f8735ac3e3so4832233e87.2; Wed, 21 Jun 2023 07:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687357013; x=1689949013; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3LR4PDkdrWuA9l6EMLBodrJpcuDoMtm6x2sjEnKK0/g=; b=gNpimUkP1cs4UTNo1wIvH1qZNiTeD/bZfYbPdos3JSpGi6pVBiYbcGA8IB9dm0Zr73 XcicJY5BcOs3K4ePaCTtc42IxwXTCnyTzWFyBLHZFwD3RKnBJvSEwRz3g9ey0LiRo2qU KlyUVg8PXt1UiEuzPkP+eReAHyzvSV32fG1wgveLWYh3klx4OA6Q5UzqPaNxldQjFtET gkkcM1JJjBDJAKG6WJOz2moSX2ZpxnSsuOA7l/NaqMwhABK9HcdpKZEDOgIqHYvaO1b9 3TjKKXBX8C3IurDigaqSNqETH+lGbcHDmz0nypKR7VtCjgCZHW0/9vaqvGfHWbL9oxao oMBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687357013; x=1689949013; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3LR4PDkdrWuA9l6EMLBodrJpcuDoMtm6x2sjEnKK0/g=; b=InbLtiMv+cqObhgMmCiPsMdCKL8V61yfdTOJoWyi+0m6wkI5eJRmw0hwSuk0LP6x+W zSow9r6NXnijRPqgYkUYbpmifXmVWsNilSjfqeNC/Tm1nbc7gn2+LF2l/61b3XrzENbq cIhXadJuTv8uZ4u7DbnslEvH1BKQptW89rt6hQEk1jTeVTGQSAD2upoM1ShlAXXeAIhf NczKj0g0gO0YyNiDbZO1udVSijBnTXfxy5YSDY2ZXcOPnzTdc0Erf6PvrlylGbqUSjZl cfIKCouNgHxDMOwdptq9K4zsVb6vBdSS2/2DoDvvypv+35OzM+rpMpCEiQrsjLMBlXVK Ko1A== X-Gm-Message-State: AC+VfDxZzdyM3oqRpkeKceJ37/EfqBXLqnpvPKTKhf0cZLtuppOn6034 X4nsVFeDKP0/F+DWcF8Njxxje9LnB5wv07fNPAFI54DkeO+tTC8b X-Received: by 2002:a05:651c:1048:b0:2b5:828c:bfc7 with SMTP id x8-20020a05651c104800b002b5828cbfc7mr1616891ljm.19.1687357012701; Wed, 21 Jun 2023 07:16:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Puranjay Mohan Date: Wed, 21 Jun 2023 16:16:41 +0200 Message-ID: Subject: Re: next: Rpi4: Unexpected kernel BRK exception at EL1 To: Naresh Kamboju Cc: Mark Rutland , Alexei Starovoitov , Song Liu , Linux ARM , open list , linux-rpi-kernel@lists.infradead.org, Netdev , lkft-triage@lists.linaro.org, Arnd Bergmann , Dan Carpenter , Linus Walleij , Catalin Marinas , Will Deacon , Anshuman Khandual , bpf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, On Wed, Jun 21, 2023 at 3:39=E2=80=AFPM Naresh Kamboju wrote: > > On Wed, 21 Jun 2023 at 18:27, Mark Rutland wrote: > > > > On Wed, Jun 21, 2023 at 06:06:51PM +0530, Naresh Kamboju wrote: > > > Following boot warnings and crashes noticed on arm64 Rpi4 device runn= ing > > > Linux next-20230621 kernel. > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > > boot log: > > > > > > [ 22.331748] Kernel text patching generated an invalid instruction > > > at 0xffff8000835d6580! > > > [ 22.340579] Unexpected kernel BRK exception at EL1 > > > [ 22.346141] Internal error: BRK handler: 00000000f2000100 [#1] PRE= EMPT SMP > > > > This indicates execution of AARCH64_BREAK_FAULT. > > I see kernel panic with kselftest merge configs on Juno-r2 and Rpi4. Is there a way to reproduce this setup on Qemu? I am able to build the linux-next kernel with the config given below. But the bug doesn't reproduce in Qemu with debian rootfs. I guess I would need the Rootfs that is being used here to reproduce it. Can you point me to the rootfs for this? Thanks, Puranjay > metadata: > git_ref: master > git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > git_sha: 15e71592dbae49a674429c618a10401d7f992ac3 > git_describe: next-20230621 > kernel_version: 6.4.0-rc7 > kernel-config: > https://storage.tuxsuite.com/public/linaro/lkft/builds/2RVAA4lj35ia3Y= DkqaoV6ztyqdW/config > artifact-location: > https://storage.tuxsuite.com/public/linaro/lkft/builds/2RVAA4lj35ia3Y= DkqaoV6ztyqdW/ > toolchain: gcc-11 > build_name: gcc-11-lkftconfig-kselftest > > > -- > Linaro LKFT > https://lkft.linaro.org