Page MenuHomeFreeBSD

fix TRAPF_USERMODE macro
ClosedPublic

Authored by br on Jul 27 2018, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 18, 10:03 AM
Unknown Object (File)
Sun, Oct 11, 8:43 PM
Unknown Object (File)
Sun, Oct 11, 6:35 PM
Unknown Object (File)
Sun, Oct 11, 2:15 PM
Unknown Object (File)
Tue, Oct 6, 6:32 AM
Unknown Object (File)
Tue, Oct 6, 6:32 AM
Unknown Object (File)
Tue, Oct 6, 6:31 AM
Unknown Object (File)
Sun, Sep 27, 1:03 PM
Subscribers

Details

Summary

Use SPP (supervisor previous privilege) bit in sstatus register to determine if trap is from userspace.

Otherwise if we jump to kernel address from userspace, then TRAPF_USERMODE failed to detect usermode and then do_ast triggers a panic "ast in kernel mode"

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jul 27 2018, 3:50 PM
This revision was automatically updated to reflect the committed changes.