Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ppc64: do page traversal if vmemmap_list not populated
Currently 'crash-tool' fails on vmcore collected on upstream kernel on PowerPC64 with the error: crash: invalid kernel virtual address: 0 type: "first list entry Presently the address translation for vmemmap addresses is done using the vmemmap_list. But with the below commit in Linux 6.6-rc1, vmemmap_list can be empty, in case of Radix MMU on PowerPC64. 368a0590d954: (powerpc/book3s64/vmemmap: switch radix to use a different vmemmap handling function) In case vmemmap_list is empty, then it's head is NULL, which crash tries to access and fails due to accessing NULL. Instead of depending on 'vmemmap_list' for address translation for vmemmap addresses, do a kernel pagetable walk to get the physical address associated with given virtual address. Tested-by: Sachin Sant <sachinp@linux.ibm.com> Reviewed-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
- Loading branch information