Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp754110rwd; Thu, 8 Jun 2023 07:19:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5eI9tOS2BtM6qEwPQFnVjgWOqLX2asdnuYyOM2PPPDRXPLOuTwHk+Cr8c7FVVO13lKywjH X-Received: by 2002:a05:6a00:13a8:b0:64d:f5a:3fd2 with SMTP id t40-20020a056a0013a800b0064d0f5a3fd2mr9040735pfg.28.1686233980687; Thu, 08 Jun 2023 07:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686233980; cv=none; d=google.com; s=arc-20160816; b=pukBaLRechkKq2IS9uC7d31khBlRf8GF6qcBLtrdExeTwLBgAIV/v3ZHokW29Ohoq7 c6UBSIqQEbF/uqbXlnRRSM2Hpd7ITQZVO11XNkCnvodJahOuFn5Z9H7oRrt7EpX/aeJ6 RXMNb8ztNL18R+2srk91LJMbhXO/GnMjFBr0PA/Efn9dfiSu5OGNmawJRuum/RXmjmgW UTE5+H6K27XHfO2/ZSPcBUwz2yxqDvuGDS2LJB74SDqLiMkfMO/5UATysdEnK7Lf0Dvc DjfsnPFMCk2xlgD0Lwd3U5MBZ5ocbQodHjxareAwRSpbFA+QIY7d9Y/vEESHseYBHFE+ zqqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=T7l2pBGs0F2OKcmltcSPv9Usm86EsbsOvuFk6idnC68=; b=IFLYH4MMxwp57U+whAFI5mEnYZpoddBqopBPOt5ktGBqu0d9HMPYMn5FDiFNQQ7AQQ euv5qPAKxnJf8fVUrOOanzVk5VSg0c3oHCtSYP4PNAeZe2Jj9hLFnvXKkHWlBogRuVLD 405jJaRSCDIY69hK1RbYIypwW1L8RbzgzRvTRC5jmZugNbSDqOUrPAGmCJCHFnqT23it +RXDvPi3j1ItzKBXL6NGxJ3CXBirdXZMI8gbyagLpiiAXg9/bpgNxcjNHu55KTcETKy3 8AXYQHefm0uDO19FLyAYP7jSJphvmF8O2mNEiLg2LAe6xEfObeVru9DPx8TgRa9a+Ht0 QY5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SHK5/HCP"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a637a56000000b0053f4a814953si1021532pgn.870.2023.06.08.07.19.26; Thu, 08 Jun 2023 07:19:40 -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=@kernel.org header.s=k20201202 header.b="SHK5/HCP"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236918AbjFHOKn (ORCPT + 99 others); Thu, 8 Jun 2023 10:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236907AbjFHOKl (ORCPT ); Thu, 8 Jun 2023 10:10:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A1B2D71 for ; Thu, 8 Jun 2023 07:10:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 38C7264E0B for ; Thu, 8 Jun 2023 14:10:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 910F0C4339E; Thu, 8 Jun 2023 14:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686233421; bh=M2hdkj/aqger+2hxUCmWq7hrnZFgudHDHrlIG8mCorA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=SHK5/HCPiCK7LLA9ghCjDWIWcqFKwE+hFRmZqnRFs7eSPR+j2fjG6N619VtOqonyz i2XOUZjlQ31LKy//mmJQEbmK9m2lgFam1mCxeep5bf450SHKizPYblnR4hcVp2fqRd Zz/y+o/5FmxlXKp+rwEqvNhOHEiSX1ilMBRDeziJTR0tTD+1pryHV4iFgNCELv0egl ZmyGGUIcNB28cVBoGDij2FThim8FBA38wrPOckAmgGN64PRyswO3DDnb27K9frdNPO ZGpL5n8HY4o91Ky9LP5BhvIkVaUmk6tHQ04YDO5T+pundJabJqMoNLJCb+5PgSdMry XF+weIEX8dyBw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 739DFE4D031; Thu, 8 Jun 2023 14:10:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH -fixes] riscv: Check the virtual alignment before choosing a map size From: patchwork-bot+linux-riscv@kernel.org Message-Id: <168623342146.30670.13170012353498536520.git-patchwork-notify@kernel.org> Date: Thu, 08 Jun 2023 14:10:21 +0000 References: <20230607125851.63370-1-alexghiti@rivosinc.com> In-Reply-To: <20230607125851.63370-1-alexghiti@rivosinc.com> To: Alexandre Ghiti Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, ajones@ventanamicro.com, robh@kernel.org, anup@brainfault.org, linux-kernel@vger.kernel.org, songshuaishuai@tinylab.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Wed, 7 Jun 2023 14:58:51 +0200 you wrote: > We used to only check the alignment of the physical address to decide > which mapping would fit for a certain region of the linear mapping, but > it is not enough since the virtual address must also be aligned, so check > that too. > > Fixes: 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping") > Reported-by: Song Shuai > Link: https://lore.kernel.org/linux-riscv/tencent_7C3B580B47C1B17C16488EC1@qq.com/ > Signed-off-by: Alexandre Ghiti > > [...] Here is the summary with links: - [-fixes] riscv: Check the virtual alignment before choosing a map size https://git.kernel.org/riscv/c/49a0a3731596 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html