From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 804D7222584 for ; Thu, 9 Jan 2025 16:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736439387; cv=none; b=k0m0GEU2kTcsTH2DOQPzfjos7JMXQkKtMHif+b67jl0XhCgfgK1L/URzPkVNcSfCWNzYyPaZ0TJlbjKw3ZFNL8/90ixdHD+6YW19Q7N9YZVF6H2LOxQPMK1BmJoszKOlFidD12NV6HL/mdHADmz7z6GupSS0cKPcH2Nj8a6nbZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736439387; c=relaxed/simple; bh=0Q6MXujSGz6yICRaj7EkDAKrLg7PVKbwO+jva+Jk/Mo=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=ekm8IuNGitk1mTcsIJ31eo4gGW3oT25Ik/QarIRmFKMBf58igyDjRLab6TvZJDrSQxSHSUwb/lpZeonzCYz17wkB+baCdFMbGzm0w41RKYovWIMwjstJZanLdi1kurm5DnyFRq6ryZFSDgJPL899vgwLvjSEFEi8aSPHRIAmKQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HF284ZAk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HF284ZAk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 054C3C4CEE4; Thu, 9 Jan 2025 16:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736439387; bh=0Q6MXujSGz6yICRaj7EkDAKrLg7PVKbwO+jva+Jk/Mo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=HF284ZAkF2rZPyTN79EVs+NHha/78Sv9QRIdJ9649jlA6+z3Pi7N5C8rsWaSZ1bor 9s1NT3ZjdzT8dSsSRhk9L6akarJOLNDg1OVsBBsBE8gxGGKlty6Ia4CdvqUF1N+h65 hM/eJKF7Jvx7NExPVD3blCcWMutSHsT0eRr4ulaXLjOIPoEyIEnl9mcsW09JuCdd10 pph1PfVCz03IRzAzdN0FypQn0kwiMlULcudCavL9+TYcSnXOlw98QKOnDWGiN/Q0np wjpQMBPUQASwIR9Du6J8ssct5+SGLAc5GoaJIuxkGifWe5Cag22HnIPZTA5poLZkSI RLmllkl1cs3ng== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EAE29380A97D; Thu, 9 Jan 2025 16:16:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH RESEND v4] riscv: mm: Fix the out of bound issue of vmemmap address From: patchwork-bot+linux-riscv@kernel.org Message-Id: <173643940874.1375203.8254463448578997209.git-patchwork-notify@kernel.org> Date: Thu, 09 Jan 2025 16:16:48 +0000 References: <20250103092023.37083-1-luxu.kernel@bytedance.com> In-Reply-To: <20250103092023.37083-1-luxu.kernel@bytedance.com> To: Xu Lu Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, alexghiti@rivosinc.com, bjorn@rivosinc.com, lihangjing@bytedance.com, xieyongji@bytedance.com, linux-kernel@vger.kernel.org Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Fri, 3 Jan 2025 17:20:23 +0800 you wrote: > In sparse vmemmap model, the virtual address of vmemmap is calculated as: > ((struct page *)VMEMMAP_START - (phys_ram_base >> PAGE_SHIFT)). > And the struct page's va can be calculated with an offset: > (vmemmap + (pfn)). > > However, when initializing struct pages, kernel actually starts from the > first page from the same section that phys_ram_base belongs to. If the > first page's physical address is not (phys_ram_base >> PAGE_SHIFT), then > we get an va below VMEMMAP_START when calculating va for it's struct page. > > [...] Here is the summary with links: - [RESEND,v4] riscv: mm: Fix the out of bound issue of vmemmap address https://git.kernel.org/riscv/c/f754f27e98f8 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html