Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think pmap_change_attr_locked needs changing otherwise you'll fault rather than return EINVAL for bogus VAs that aren't covered by an L0 entry? The function doesn't currently do anything other than exist for LKPI and do a no-op walk in order to give back the right errors.
Comment Actions
Hmm, I don't see why we'd fault - pmap_l1() will return NULL in that case (see D34276) and pmap_change_attr_locked() handles that by returning EINVAL.
Comment Actions
Hm, indeed, misremembered how those work. I guess you only need to do the walk explicitly if you care about distinguishing !V from !RX, i.e. if you expect to have L0 leaves, which we don't.