HomeFreeBSD

Restore nofaulting operations after r352807

Description

Restore nofaulting operations after r352807

The TDP_NOFAULTING flag should be checked in vm_fault(), not in
vm_fault_trap(). Otherwise kernel accesses to userspace, like
vn_io_fault(), enter vm locking when it should not.

Reported and tested by: pho
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D21992

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D21992: Restore nofaulting operations after r352807
Parents
rS353462: Fix the botched field ordering in the last commit. While here, fix
Branches
Unknown
Tags
Unknown