LoongArch: mm: Add p?d_leaf() definitions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: mm: Add p?d_leaf() definitions
When I do LTP test, LTP test case ksm06 caused panic at break_ksm_pmd_entry -> pmd_leaf (Huge page table but False) -> pte_present (panic)
The reason is pmd_leaf() is not defined, So like commit 501b81046701 ("mips: mm: add p?d_leaf() definitions") add p?d_leaf() definition for LoongArch.
From the CVE record · Linux
The Linux kernel's LoongArch memory management code lacks p?d_leaf() definitions, which can cause a panic when the LTP ksm06 test reaches a huge page table entry. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel on LoongArch should check their systems; affected versions are not specified.