Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3118969rdg; Tue, 17 Oct 2023 05:24:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERd8mSmks/rQt78DwnE6ZOqt/A0N1I12wQKpO/spF1yX1Jk0glIF2zO9G6C7KhGJE1T86g X-Received: by 2002:a17:90a:6fc7:b0:27c:e826:5038 with SMTP id e65-20020a17090a6fc700b0027ce8265038mr1851701pjk.14.1697545477053; Tue, 17 Oct 2023 05:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697545477; cv=none; d=google.com; s=arc-20160816; b=Ir7IPNO+Gy6IRbK4cg1G6rLnrN8r1kPItHXGwBM4Zh7nRn6fuLKctXR47Fk2hY1yKN LXpnSwx0Fs9Zt5tnguWGSesGdi6lObuIaBn+JJOHc50RAE1qE6+LVz0bHSJb1bxKjR3j egfnFwQ5OlcFU8+wsG6YxmihOHw/P8l/ang8E/YuwLnXetKS5x5b5bUdzX/PcRwPkTaK MPqeznVSCYcZPO6ZkZEONoAnakHxi1Zc9PxR6rE9teO93u0zZChOU5TTYOc6Sr6iK6HJ WFnXWuEHVgIEH7dx8UTnN6PtXr/runzeAMwWu2cbD/fVo5/8eilRH7drEdjrEDiCgCUs XANQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fGB4Rx3YUESUVlrQ4MldhF7QDsxEshfHgqRlKGS4kGk=; fh=TD31d07xZ88o37AyRp51QDUcllC5KMif0l+E5myaJfI=; b=iW1BwDDVXJKEJn2HtLjuKnIoRuy+SFjX7YICyahEXaoJQJjVOE8N099ei2qTh4zXac m0qQuA3xCAsLUBcAfdahG1skeyBgdv9ajeIGxEBroGUQ4jrZ8eSRcBPgg3f8564X5mVh MMQ1xDNpHHvIjCik4LAdO2OJnvNwt7YFiXxpC81F/sHXGSeL0k4Tqf3jGwGKQ2npWur8 fwVu/2YiUz0SKbbHJ3K7dz2VV9uB1gQi+llVCDOklTj26OvfBizPGeVg7r9fL2mwXLa+ o7ejPKx7iTkfmctp9LHv7+L2ojmW7MbssRUvcpYYbLnekqBLNV+ZkktOWW2Z7rbb916W E0Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ChBlyKPG; 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=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j5-20020a17090aeb0500b00263c4af31f2si1544413pjz.157.2023.10.17.05.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:24:37 -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=@kernel.org header.s=k20201202 header.b=ChBlyKPG; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9870B8087B48; Tue, 17 Oct 2023 05:24:34 -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 S235175AbjJQMY2 (ORCPT + 99 others); Tue, 17 Oct 2023 08:24:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235145AbjJQMYR (ORCPT ); Tue, 17 Oct 2023 08:24:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 040A2187; Tue, 17 Oct 2023 05:22:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E4B9C433C7; Tue, 17 Oct 2023 12:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697545339; bh=M00BvJirBo+mdXAXAKpgHd3oBO/bTMkIYD3+l9Xy8oM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ChBlyKPGb8GCIp6eNUPF1XPPHZDj+fZR2GBHysrDUsb+1Z6bkoZoFbdSbIHUj/Axb G9uP/YC/uMpzye2GvXDv4vsM8xsLaep8qtOtxb28+RCtAepaErNujCbQ+axyfH+R99 TARpH7IDgm+A6+h9oEzmr/bTzz/CUaiWvRvC86vPsbRQIYFV672t3PZGhIIO+aim14 Uf4JB8j3QNy4VHbriNlbOz8KgHDQAY3rkrnDbQShv6tI7Y+oKIkFGzA88ujq7OmEPA 1LYH2UhYJg1lIr5iEtbWk/1OwblE8PBhyHIIN8rMlUp0W7ZBmaZjDd6aJ+rrMU2ERa 6QBdStzt0FfVg== Date: Tue, 17 Oct 2023 13:22:14 +0100 From: Mark Brown To: Naresh Kamboju Cc: Linux ARM , open list , lkft-triage@lists.linaro.org, linux-stable , Greg Kroah-Hartman , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Marc Zyngier Subject: Re: selftests: ftrace: Internal error: Oops: sve_save_state Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="apekHljeOM9+sOYc" Content-Disposition: inline In-Reply-To: X-Cookie: Santa Claus is watching! X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Tue, 17 Oct 2023 05:24:34 -0700 (PDT) --apekHljeOM9+sOYc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? > [ 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? --apekHljeOM9+sOYc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUufHUACgkQJNaLcl1U h9Du4gf/RwBqZmgxZTFG61U5ZuvEedd7Ncv9OG5UjPNGuBlLM1KDg+t5xj5Zl+en LShQ6Hzccz4mxRfADxNIrWt4P+hEkgFvgSlmJvAZBJSc8LJm4OP/hiDD1Bx3Qikq W3nSjSa+uLW02+wF2zw2hJPK+8qv+09HFyb5bBOWavLRu45N4kzLjE3/NrDLR2vK j98xD+9RNYw4uUGZEy0CFqBeHTV+YOlOnH8IUOrDIzycKn17npDUIygiL3lMD8RH J+VyRqniWlGDkglCesuJdXMZSXTRx+YJQTExTJKvFyQiomdXjs5BMcxBtx8Ldec2 GM5ENkf0jVDClVZOWMsGBNV/zV0/rw== =oZtp -----END PGP SIGNATURE----- --apekHljeOM9+sOYc--