Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp51231rwb; Mon, 28 Nov 2022 17:02:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6psSNTJia0BLVaCoKk8t6QTinqLV6Lo48WMIPfEfm6ml/URVttomtT39fsPY/oV4olvPJG X-Received: by 2002:aa7:cd91:0:b0:469:2f36:fd with SMTP id x17-20020aa7cd91000000b004692f3600fdmr36174843edv.385.1669683720091; Mon, 28 Nov 2022 17:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669683720; cv=none; d=google.com; s=arc-20160816; b=iywWCX/pp8g2rne/w3V5hYlDscmy7357buYIdUMJE0EkMQV94/LyjAIamK4MWuznrn lm6uFC7WHXDEVskMO1WrXgtEmoOg/HyucOG0s5UacOfFRYVOiPCJfdQ4eT2SqOOl4QB1 nYEaNSUlwiMWePWshLJdCT/B28k7Ca6KO01dFBocQwa1ROyhJm8lneoKnmrfWMc5TfpS ThOHGsi2fo3o3ow3Z+tNuuUmv6eh0AX/3wkDU59uQ/+NrkQuLoF0WxSiCdXxStgWKjn4 QAg/FIs/LDSl1YQrIr7Uqq4IsDENCTqSQMSU5Pf89Wp8ZPvpVTE4F8i/LmAXjKc6oBsd ehJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:content-transfer-encoding:mime-version :date:message-id:subject:references:in-reply-to:dkim-signature; bh=Tsit4tlwMOX7OLaXEWLPn1yxtLp/SKg+N7GuTQ1fWwA=; b=UKPoUe7wkvjDWND8TeWN12cxw6YFW0YG7i9R+XTSiwNgaymjmWdEtyTbH8qKqpC7X2 6oPmRebnPRgkPw0ejZ/ZgrD3DDxy5KnfTGhRZ/oezRVbS2kEr5VGRuyjvHLHOZffDPwD gGanB/VMYwT9IkQ4MmuIjv/x51dMjqO8+FXmsOJTaKuLC+W/TOcY2bEnzgJkxXx+lJ69 O0QH1otpb2HeZxVst32C4rrl0syF79tWoz4bvFye1MkhyornwGnr4z6OpnAaHUJ9BVYY G9Zf153VYJBcJK0nTQ4+JZ98JeNuJlr3TX62gRJaMp2HWgSIqmf/AZG1SWr1TNDfxegg SO0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=VmXH+uk3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a056402191100b0046ad4b0b10csi9843869edz.394.2022.11.28.17.01.39; Mon, 28 Nov 2022 17:02:00 -0800 (PST) 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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=VmXH+uk3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234740AbiK2Akp (ORCPT + 84 others); Mon, 28 Nov 2022 19:40:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbiK2Akn (ORCPT ); Mon, 28 Nov 2022 19:40:43 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB381303F5 for ; Mon, 28 Nov 2022 16:40:41 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id k7so11841862pll.6 for ; Mon, 28 Nov 2022 16:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=Tsit4tlwMOX7OLaXEWLPn1yxtLp/SKg+N7GuTQ1fWwA=; b=VmXH+uk31ZdNwX/cNTPka1aAEVDXQNUPZwrVaAEMj3Y6uZep2GmQe2ifDTyyAcTKES u4pLCmzOmdvp7ykaqCNn/q0KFDaTfL8yaPBAfeCHS6DaGLZ7wur36JaO1qPM7W9zX8q1 bhCHA23BR/xNdNc1NIaiXxNHJg8L31sMvjYnnjttkNau6Y6aZ3QJF1582mCuyZuKOo++ GaCysIPDnJ91QtUdtVuTSPO1drQT0SPN3A81t0W09cwUmQ2ZxvO1bL0/8ht2EVTT0YFH g1k6JZKZEUrsG24X5fjG3MbmjmLRzKjOB/joyQq7DNMAIZBzXMPlnELahd5q8zER7w1Y BQHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tsit4tlwMOX7OLaXEWLPn1yxtLp/SKg+N7GuTQ1fWwA=; b=YNZnXnc2xjgyLYfHbnTk/q1WwDYEqlK3I6JpfOHajkcvlrg0OlQRhfiaW44zD24eX2 eSwUPdv69Xv2PpGTs3xNVboTdWtMGRhil6RL9A9twmHoFAyNzUDbD9+MEBvOTpgPspe5 VqkbWYLmOFNfDYgNC08O0OzJt+chFRK1Eo1jyS7p1hGdQXfGAu5pQdr+KVdVNG8jkMWz NjA+2sRc1lCUMPIlwWVd6ANy1AVHYooT4H3etmd1S1Dw8QaAqTC72KF5+EJQ0owfIsTz 2nVd9l/379K6ORk0pDEzgTbRlVLLnHfwd3Qfm33EifVKVfHN+WcoOOKtYDVF8PWf7tMZ edaQ== X-Gm-Message-State: ANoB5pl1mtCrhrM2T8YUMSdF0iL3eRnSD7Iaic39qJ91/SZQptRhBWJy puJYSsUNbhRyJHxCQ0FCZ6ocqg== X-Received: by 2002:a17:90b:4b4a:b0:214:6fc:31cf with SMTP id mi10-20020a17090b4b4a00b0021406fc31cfmr60966051pjb.21.1669682441361; Mon, 28 Nov 2022 16:40:41 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id c2-20020a170903234200b001708c4ebbaesm9337622plh.309.2022.11.28.16.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 16:40:40 -0800 (PST) In-Reply-To: <20221121133303.1782246-1-alexghiti@rivosinc.com> References: <20221121133303.1782246-1-alexghiti@rivosinc.com> Subject: Re: [PATCH] riscv: Sync efi page table's kernel mappings before switching Message-Id: <166968223551.19322.16657482033494349394.b4-ty@rivosinc.com> Date: Mon, 28 Nov 2022 16:37:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-e660e From: Palmer Dabbelt To: Ard Biesheuvel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Ghiti , linux-efi@vger.kernel.org, Heinrich Schuchardt , Albert Ou , Emil Renner Berthing , Palmer Dabbelt , Paul Walmsley X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Nov 2022 14:33:03 +0100, Alexandre Ghiti wrote: > The EFI page table is initially created as a copy of the kernel page table. > With VMAP_STACK enabled, kernel stacks are allocated in the vmalloc area: > if the stack is allocated in a new PGD (one that was not present at the > moment of the efi page table creation or not synced in a previous vmalloc > fault), the kernel will take a trap when switching to the efi page table > when the vmalloc kernel stack is accessed, resulting in a kernel panic. > > [...] Applied, thanks! [1/1] riscv: Sync efi page table's kernel mappings before switching https://git.kernel.org/palmer/c/3f105a742725 Best regards, -- Palmer Dabbelt