Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp439396rdb; Thu, 19 Oct 2023 08:37:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFN1Sb5k5cFo3p7QAmQAd7yfiN1DOObv0u5xcKAFSrDYJSDqcDxrA9B0hmkhPxtS+ZpQCoc X-Received: by 2002:a17:90a:ba15:b0:27d:1a75:5b98 with SMTP id s21-20020a17090aba1500b0027d1a755b98mr3543048pjr.12.1697729845823; Thu, 19 Oct 2023 08:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697729845; cv=none; d=google.com; s=arc-20160816; b=pcjJtVLs0gB/q90IlPYSSqZTobLLb5SreyjH642+GwZW2VC1/Wqh0R2vlbDwiYD44W N1r0sOILQyE5PVFRt+W7LZgD2fNlkQOwlAd0h2Lz8zdOwQ6cOloGRwDNSlq2rkCOP2wI vR1eY81DvFKiwYh5VcD5mGIFDF3rdxqgc56wnwV8z1By3xCxo2k8bfmFbkViD7XZLABp +C4uBSb3nyrXkhS/ON8jNexQixCo3WeE7Ot/by1lD19sFs9C/EMEsuobBWVebqmE1NUy Kw7IEACKtb3j4Yb3Ao8QfEvZSyg4KfTsyzyHf5SzBc7M7ZZMPC4OnEU4vMkW6gyaKOIp r2aQ== 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=49fagu2cnGMwxsc7JEmJZKgqBj5vWAdKuaR8p7iEFTY=; fh=aC14vg0Fg68BtfA54bgMEMwmTKQz4wIEj2RKu0gGAsE=; b=aSadk6cqpA/agJ0/t2KrRKAH/UkGIcM7FnYqtoxQt4WuKZG+jloi9wZW289W1b4JWB U5ua8NWUHexgCfZpJ9LXAyzVVnC4Cr3DHwgHFWzFGJgcL5K3TY1HeblX3gWwrh9ZAkib N7+PHlR8B7lVWUVeWpdCdFrWvVwCi2ecuJ5UY4Wq85zKF+BScYeKYgK88RdpO2inIij8 GjnasMdMT5HF/UME932x8F5SWq8K66K8Mft48Dh0SUgIjXz8e0IZ6SuFqHwGVS2+62Cw r0bwwe0ofXo7HAP+MTwYsIT7gpjLzJ1vHXEQd998QTbdtPtvGOfkqmcrw76S0S3Vywcz kTsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddQLSnFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id my5-20020a17090b4c8500b0027b348ac5c2si2641122pjb.50.2023.10.19.08.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 08:37:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddQLSnFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2F1DF83B81A1; Thu, 19 Oct 2023 08:37:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346329AbjJSPhR (ORCPT + 99 others); Thu, 19 Oct 2023 11:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346115AbjJSPhQ (ORCPT ); Thu, 19 Oct 2023 11:37:16 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F2DCF for ; Thu, 19 Oct 2023 08:37:14 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-7b6e3dc54e0so613664241.1 for ; Thu, 19 Oct 2023 08:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697729833; x=1698334633; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=49fagu2cnGMwxsc7JEmJZKgqBj5vWAdKuaR8p7iEFTY=; b=ddQLSnFzIvwVsIo2Ys1PVINSvPHTUf2oaahS6o6d1mb8bzZarRthNI6jJPWZW9/N0P K4dY5c5Y43BQO3UmcmKqJ7zfL4iBW+qUqGfug53tZXxh0/tkbGbXh8iOsSblwewubawL WzrqZG5FpCM31vfYnO3VC16ZX48yJ/M2lZjVHWrgE1Qe/XUw57NJUS+UqNI0HxmRvY+V zdH5tXEMh4g/uDBeMEwKPn/2opEJ+9roIBlC+MU3CXC16esSpsegAizZ5+OWwYIIH2uN L/uySStsQah5KDRZnEQ567yVy2FxIigz0RwkwNjiEFYSlj5dsCk5Sy8JTnHmYdGvf8Zm 3uDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697729833; x=1698334633; h=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=49fagu2cnGMwxsc7JEmJZKgqBj5vWAdKuaR8p7iEFTY=; b=rRYZfzTkP8KCyC8lm5lor73GeiarJvPlWL/gtHYj33WDKktsnLuxa+2DVaWFxv8Fs6 T4+eIfJxe9mDmvAzbzByrBb7yhZ3hRHGrF4hnUp1rHkAY4dCZ067LnZn4R1asvPHLvZd mEG9AlEgl1cWDbwmnlA9NHB5+a2epXbreeFgH7USicTn+/dDTlxYxEJT3Uc/CxDbnBRa NeKR71yccQSvk4lBvhwYltyWD5HSuttZaLhcR7W6TXWS0pVQ0eCRvNdXmPAZok4rd/fb ZrY/WOrZM0nSWkAhV03slWjyskV2oxzY1GTdPpt90D/SUrwb31ufVfWTwBvp+ZwKhOnj gfjg== X-Gm-Message-State: AOJu0YzgMID90MLrvULJTquDn3u2Zmng++Qmu4M3VcAyzdwfgEQjwkXE t47ZTrYTyXU+mAd06rSdLWXmPdy4IuZnIpVeWTPUZg== X-Received: by 2002:a05:6122:459e:b0:48d:11d1:9feb with SMTP id de30-20020a056122459e00b0048d11d19febmr1317623vkb.8.1697729833434; Thu, 19 Oct 2023 08:37:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Thu, 19 Oct 2023 21:07:02 +0530 Message-ID: Subject: Re: selftests: ftrace: Internal error: Oops: sve_save_state To: Mark Brown Cc: Linux ARM , open list , lkft-triage@lists.linaro.org, linux-stable , Greg Kroah-Hartman , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Marc Zyngier Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 19 Oct 2023 08:37:23 -0700 (PDT) On Tue, 17 Oct 2023 at 17:52, Mark Brown wrote: > > On Tue, Oct 17, 2023 at 01:34:18PM +0530, Naresh Kamboju wrote: > > > Following kernel crash noticed while running selftests: ftrace: > > ftracetest-ktap on FVP models running stable-rc 6.5.8-rc2. > > > This is not an easy to reproduce issue and not seen on mainline and next. > > We are investigating this report. > > To confirm have you seen this on other stables as well or is this only > v6.5? For how long have you been seeing this? This is only seen on 6.5.8-rc2 and seen only once. I have checked on mainline / next and other stable branches and this crash is not seen anywhere else. However, I will keep checking them on other branches and next and mainline. > > > [ 764.987161] Unable to handle kernel NULL pointer dereference at > > virtual address 0000000000000000 > > > [ 765.074221] Call trace: > > [ 765.075045] sve_save_state+0x4/0xf0 > > [ 765.076138] fpsimd_thread_switch+0x2c/0xe8 > > [ 765.077305] __switch_to+0x20/0x158 > > [ 765.078384] __schedule+0x2cc/0xb38 > > [ 765.079464] preempt_schedule_irq+0x44/0xa8 > > [ 765.080633] el1_interrupt+0x4c/0x68 > > [ 765.081691] el1h_64_irq_handler+0x18/0x28 > > [ 765.082829] el1h_64_irq+0x64/0x68 > > [ 765.083874] ftrace_return_to_handler+0x98/0x158 > > [ 765.085090] return_to_handler+0x20/0x48 > > [ 765.086205] do_sve_acc+0x64/0x128 > > [ 765.087272] el0_sve_acc+0x3c/0xa0 > > [ 765.088356] el0t_64_sync_handler+0x114/0x130 > > [ 765.089524] el0t_64_sync+0x190/0x198 > > So something managed to get flagged as having SVE state without having > the backing storage allocated. We *were* preempted in the SVE access > handler which does the allocation but I can't see the path that would > trigger that since we allocate the state before setting TIF_SVE. It's > possible the compiler did something funky, a decode of the backtrace > might help show that? We have not uploaded vmlinux and System.map to this specific build. However, I have requested to have these files get uploaded for upcoming builds. - Naresh