Message ID | 20220921194629.1480202-15-stillson@rivosinc.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VoXq1cj2; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=omoiTuTv; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20210112.gappssmtp.com header.i=@rivosinc-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=fLo/25hZ; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MXpqB1D8Gz1yqL for <incoming@patchwork.ozlabs.org>; Thu, 22 Sep 2022 05:47:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mryWvJovzq9y5YFqYStNf6pCCrl7Zn5G5TnbA5GBDDs=; b=VoXq1cj2FqjNpG 0lEIFHQaavRfGBwogtwLDvdH99oQSjwbTGqTWxUhvwqzw4fb8JL/bCRXfSntuLa53LuPiKbIgN1cy TQXGRX/lQuth4WmtfeMnG+OLpd6mIxp5ut0R+fl698Zq5ejzlkI5nTr73HTnFP1q6JL24GwszgXIl giPRIbDrC3UijziU20lL0aODTIkl3VAXUBeI/3PMYQSoh2SxQO5k3YMXd9eBCjOPGUxUz42EycVIP ixZmOEBsspG42OwWSQxFezdwCJX7XrL0P++hNPZ8vCBoaRhj7ji27CuxcHxQyfGpM/YwemfJzNi3r nVNfoXgCYMhNcBPwEkAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob5hA-00CUuz-Dm; Wed, 21 Sep 2022 19:47:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob5h8-00CUsr-4y for kvm-riscv@bombadil.infradead.org; Wed, 21 Sep 2022 19:47:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=LZQfptf+iYOUQ8McXiQWO1D3Z3+wk/s8KlPsiOQszMo=; b=omoiTuTvjOf9LE73eEH6IKEjM9 ZISruvSCEIsnwi5erKlv1jTUYLTfD+KJm3048NEto9nR0TMpIahmai7Xgtjqfn6mdjZph12hpOJ+x 9lnbJuHMkDwmS5vrWaRnXlpxl+F4rddOZiu301W6A0rhdHUIGWxsyFuH5DrGkpXoCfx/TxN7Qwix3 sv7cA9nu2LxgXzmak1l4M487VHs77IHFCdabbqJhTV7y1eH3VtfhI2bmWFDzOhJv14Iqj2qBLA/us DqxOWEEQgMEekI84KcMcDwJDRU7ykGtKj4/J5G3BQSPladKfulTwS0JwoCreFQlJ/RTo6tvsyqTP/ +PUC/Jiw==; Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob5ga-00EkAE-D0 for kvm-riscv@lists.infradead.org; Wed, 21 Sep 2022 19:47:35 +0000 Received: by mail-pl1-x62b.google.com with SMTP id v1so6689375plo.9 for <kvm-riscv@lists.infradead.org>; Wed, 21 Sep 2022 12:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=LZQfptf+iYOUQ8McXiQWO1D3Z3+wk/s8KlPsiOQszMo=; b=fLo/25hZZvbqAWWrfCa9AR09JZTbZvA/eWoemQieM8qvfSGK7wd1M82idmT80Z6blc sZ5gk7fJRwh8tUXA5Bv8rFj4StdGykFCYRlCdbsP5rP7XDsdpllvRg7pqEjjhaVBIK1C djB/zQIPrb2ePapJthYG6h6lV5RRZuSC/QSNvj+hTz+MnCJSTx2aF5B23Hlzu1VCH+Kl Tu9z6g1JRsqqc3niqxguPv/GGuUn4/gnDo6aqaYWCHwYQ7Egj4nxH+bsOfknDyx67J5U noir1IWH6xIL1TUvi8bVJW3MhXWNEPzWG9IGVU98zT1Lk4W0T/EBerSot0gUpiHiTcAa WECA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=LZQfptf+iYOUQ8McXiQWO1D3Z3+wk/s8KlPsiOQszMo=; b=ns1STff5YFt9eY1ZiM+x7w+xxAduhSziUCj6SBBwfZe7AFQbdjkGBadeshZ2SiD+rW 7Z4SB9UMr7Qy5Sx5ilWINaanWnWp/aP+irBn6gBZCNgkPU108+8boUnd5icgI29GYlf5 PM8u+f2yHbCRtFySmEn/VnjLU+F1sjSnaNREwkX2Ds62yl602MUf6F3T51ZX105a1ntZ Ly8XJCAbqdA6+pEYK6xvb28+HWlff0axGrNjU/VXM8Nv8o/JnunD30N5KjGP9lzk6Sye ObSsvlgSqWoSa4FtmYcAj46Koo5ZUZdauKrORRtTjx2WHvXVsFt6M+Zxq8l1Uqv9Peko U4CA== X-Gm-Message-State: ACrzQf2E+ynbuBnLG4Kgd9iKtqGkUSYJ4p1s7xYd9heHKr3mcqSAnsCU qUi+Bi7TXsekTUvpM+AB93fsSw== X-Google-Smtp-Source: AMsMyM4X4GYl48FGLsx4hQkWZvRn7D130krIaHsqhGZXIX/ZJ5qyDwvK1bJ69zqn79p7/OmvSFFW7Q== X-Received: by 2002:a17:902:aa8b:b0:178:8f1d:6936 with SMTP id d11-20020a170902aa8b00b001788f1d6936mr6393259plr.168.1663789619250; Wed, 21 Sep 2022 12:46:59 -0700 (PDT) Received: from stillson.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id o2-20020aa79782000000b0054aa69bc192sm2551057pfp.72.2022.09.21.12.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 12:46:58 -0700 (PDT) From: Chris Stillson <stillson@rivosinc.com> To: linux-riscv@lists.infradead.org, jpalmer@dabbelt.com, kvm-riscv@lists.infradead.org Cc: Greentime Hu <greentime.hu@sifive.com>, ShihPo Hung <shihpo.hung@sifive.com>, Vincent Chen <vincent.chen@sifive.com> Subject: [PATCH 14/17] riscv: Fix a kernel panic issue if $s2 is set to a specific value before entering Linux Date: Wed, 21 Sep 2022 12:46:26 -0700 Message-Id: <20220921194629.1480202-15-stillson@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921194629.1480202-1-stillson@rivosinc.com> References: <20220921194629.1480202-1-stillson@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220921_204730_187541_519E82D6 X-CRM114-Status: GOOD ( 16.12 ) X-Spam-Score: -0.0 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Greentime Hu <greentime.hu@sifive.com> Panic log: [ 0.018707] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 0.023060] Oops [#1] [ 0.023214] Modules linked in: [ 0.023725] CPU: 0 PID: 0 Comm: swapper [...] Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62b listed in] [list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <kvm-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/kvm-riscv/> List-Post: <mailto:kvm-riscv@lists.infradead.org> List-Help: <mailto:kvm-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" <kvm-riscv-bounces@lists.infradead.org> Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Prctl to enable vector commands, previous vector patches rebased
|
expand
|
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 2c81ca42ec4e..c7effef23f41 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -301,6 +301,7 @@ clear_bss_done: la tp, init_task la sp, init_thread_union + THREAD_SIZE XIP_FIXUP_OFFSET sp + addi sp, sp, -PT_SIZE #ifdef CONFIG_BUILTIN_DTB la a0, __dtb_start XIP_FIXUP_OFFSET a0 @@ -318,6 +319,7 @@ clear_bss_done: /* Restore C environment */ la tp, init_task la sp, init_thread_union + THREAD_SIZE + addi sp, sp, -PT_SIZE #ifdef CONFIG_KASAN call kasan_early_init