HomeFreeBSD

powerpc/pmap: Tighten condition for removing tracked pages in Book-E pmap

Description

powerpc/pmap: Tighten condition for removing tracked pages in Book-E pmap

There are cases where there's no vm_page_t structure for a given physical
address, such as the CCSR. In this case, trying to obtain the
md.page_tracked struct member would lead to a NULL dereference, and panic.
Tighten this up by checking for kernel_pmap AND that the page structure
actually exists before dereferencing. The flag can only be set when it's
tracked in the kernel pmap anyway.

MFC after: 3 weeks

Details

Provenance
jhibbitsAuthored on
Parents
rS353480: Use an event handler to notify the SCTP about IP address changes
Branches
Unknown
Tags
Unknown