Re: [PATCH RESEND v4] riscv: mm: Fix the out of bound issue of vmemmap address

From: patchwork-bot+linux-riscv
Date: Thu Jan 09 2025 - 11:17:05 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:

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