Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9502807rwd; Wed, 21 Jun 2023 08:13:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zzvymBXpomxNTYzKkR7nODJARAIEbPDLTyKgXfDss3rjowct5tQh4jW2LsCQSafyg4syJ X-Received: by 2002:a17:902:c24c:b0:1b0:e0a:b7ab with SMTP id 12-20020a170902c24c00b001b00e0ab7abmr10785217plg.31.1687360382328; Wed, 21 Jun 2023 08:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360382; cv=none; d=google.com; s=arc-20160816; b=SwuR1NNLUDu+4Ggq0BAMBT21xZBlAp9Gr/CsckMPk7Eobp9zoDQut3a0cuOm2FDSj6 XeCt58VTACKKyvrTvkq3Z+rdKBcDuFCr8z2TLHHtFiBUDLlGGL42VErkZxkCuIBqyo8Y rGYAZNd0l5BNu5jgXH9qJUHccumRWh7ollZ97/09mkJ6LWkIQX/EiUzc62ENxWryXekD COOHiB50gXtc+oEOiiPCN0hkflHH8oHLaG55LpSIjBUIq4nCqQmk2Uz8JBovdXnSwqRa jMFICA92oFG/nUqio84J0ZUtZPlFFAiUmAM5JWIyEclEucl8y3Jr+hquh/PaxQiOW16B ruYQ== 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=9+4gmWWpq7Djs7g2QPfPh4TUyGT/CtkLCGk8CipnQN0=; b=pXtEW21CUKLFllMwFLQiQsUS7Hz6R4g22cTlTr/lQaJUYKLLqQ1juAkIDGT3bA2Pqc nMviukLbs8cLXpW2MnPiZx/ARfUP1q/7lXYErY9WCA1mVnKl1KCoLq89musnqNpAgAx3 6n1RXOLWB+j1PcHx4XJf+sm2iLuqBAxaZRrTWNhfetLEZ7m4dsE81Uw+X6YnH5WLHjdK aW1/ZrVCZLOsc4nv2IfF5cAuLEJ5/gVjfkV/Ckcro1bz9AYx0EkEtXuRL6aBDa14/+Xn MhKN2kVVx/Xj7YiZEuzZGAMFY0nn+9JnggoyTOxJ8e5nMhT70Lubm2x0ezfV+lXNgdNU YTog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PDUMfmFQ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a1709027c0500b001b3f66b71a8si4381936pll.322.2023.06.21.08.12.48; Wed, 21 Jun 2023 08:13:02 -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=@linaro.org header.s=google header.b=PDUMfmFQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231931AbjFUOlm (ORCPT + 99 others); Wed, 21 Jun 2023 10:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbjFUOlb (ORCPT ); Wed, 21 Jun 2023 10:41:31 -0400 Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808A31FC8 for ; Wed, 21 Jun 2023 07:41:09 -0700 (PDT) Received: by mail-ua1-x936.google.com with SMTP id a1e0cc1a2514c-76d846a4b85so2150029241.1 for ; Wed, 21 Jun 2023 07:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687358468; x=1689950468; 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=9+4gmWWpq7Djs7g2QPfPh4TUyGT/CtkLCGk8CipnQN0=; b=PDUMfmFQYAMB9vCmB0Ttn4YY59y81gbLnOttuI3SXA3hvMlhcNUlMys3cJxMKNvkIn R0jyaB2SqQFBVjvACAj8dvUUMmZAXHpF9aJeD3ojF92pNf7oBSdvyYk5tq6g1Ux86zkQ 9JWneBdpO5hhTq0dvZYdUDMbAF/aQ5QQHliarM5V6a25fv31RWp3+Ess0ufl6nRRaXtz tfJI3RMDuC6LBt/zQD0lsJHRJMesm4CTp3QJKF/vGKt5rDjl5Ei1Q5UpHghp/VSkf887 UwOvoyATy6XdSDzN1sUR6KGdyX9fN1kCKfS5NZWY6dZIJlPAuRCjGk20P4/h42gXLiPJ 4xxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687358468; x=1689950468; 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=9+4gmWWpq7Djs7g2QPfPh4TUyGT/CtkLCGk8CipnQN0=; b=NZJVCk1h5N45DU6KGroYXJb0VSRuXPCs8GJdf1r1lsSZ6aBAmG/nS55bURo2TTLXX3 4Bw7SglKnD+/61B1sjKhN/Fjfb2ONrVFuITPdtN/ww8lWeNGUXDNLCsTveShSPBbYUgs /gJlSngOU5zhjVi2REHuvRawUz9897UGmuHIRMG62za1xT8uGttRvn0Z0ph1zd6pcuhc EYaZQXpU7YrZBc1EFA66ZjcMPQqrsA4J9LNycyrMy4/YCOI8IIk5VbSQUu8cgIpoqKoz OSu+NvYXADWEVBd+jMiFgIOZZd2siofVWt3ePIFF3YDsn7rzZZuZAgJ6Run3VWv+csng G8wQ== X-Gm-Message-State: AC+VfDyg6yAorTN9hvQLDd4W4rgDOwD2lqcpZMuY2EMuw8HZe2b0Vsy3 grBdi8mQ69YoaX3vm/8IQKN0jDeoreRIwDOTRwjmRQ== X-Received: by 2002:a67:f99a:0:b0:440:92ac:a909 with SMTP id b26-20020a67f99a000000b0044092aca909mr6641454vsq.28.1687358468495; Wed, 21 Jun 2023 07:41:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Wed, 21 Jun 2023 20:10:57 +0530 Message-ID: Subject: Re: next: Rpi4: Unexpected kernel BRK exception at EL1 To: Puranjay Mohan 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Wed, 21 Jun 2023 at 19:46, Puranjay Mohan wrote: > > 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 ru= nning > > > > Linux next-20230621 kernel. > > > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > > > > boot log: > > > > > > > > [ 22.331748] Kernel text patching generated an invalid instructio= n > > > > at 0xffff8000835d6580! > > > > [ 22.340579] Unexpected kernel BRK exception at EL1 > > > > [ 22.346141] Internal error: BRK handler: 00000000f2000100 [#1] P= REEMPT 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? Not reproducible on Qemu-arm64. I see only on arm64 devices Juno-r2 and Rpi4. > > 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? Here is the link for rootfs - OE one. https://storage.tuxsuite.com/public/linaro/lkft/oebuilds/2RVA7dHPf73agY0gDJ= D6XEdBQBI/images/juno/ > > 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/2RVAA4lj35ia= 3YDkqaoV6ztyqdW/config > > artifact-location: > > https://storage.tuxsuite.com/public/linaro/lkft/builds/2RVAA4lj35ia= 3YDkqaoV6ztyqdW/ > > toolchain: gcc-11 > > build_name: gcc-11-lkftconfig-kselftest > > > > > > -- > > Linaro LKFT > > https://lkft.linaro.org - Naresh