Page MenuHomeFreeBSD

[PPC64] Fix wrong KASSERT in mphyp_pte_insert()
ClosedPublic

Authored by luporl on Apr 22 2019, 5:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 12 2025, 11:22 AM
Unknown Object (File)
Aug 6 2025, 11:41 AM
Unknown Object (File)
Aug 3 2025, 11:47 PM
Unknown Object (File)
Aug 3 2025, 1:17 PM
Unknown Object (File)
Jul 23 2025, 12:14 PM
Unknown Object (File)
Jul 22 2025, 9:56 PM
Unknown Object (File)
Jul 22 2025, 9:45 AM
Unknown Object (File)
Jul 21 2025, 7:29 AM

Details

Summary

As mphyp_pte_unset() can also remove PTE entries, and as this can
happen in parallel with PTEs evicted by mphyp_pte_insert(), there
is a (rare) chance the PTE being evicted gets removed before
mphyp_pte_insert() is able to do so. Thus, the KASSERT should
check wether the result is H_SUCCESS or H_NOT_FOUND, to avoid
panics if the situation described above occurs.

More details about this issue can be found in PR 237470.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable