Page MenuHomeFreeBSD

fix TRAPF_USERMODE macro
ClosedPublic

Authored by br on Jul 27 2018, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 26, 3:48 AM
Unknown Object (File)
Mar 4 2025, 11:02 AM
Unknown Object (File)
Feb 21 2025, 2:45 PM
Unknown Object (File)
Feb 20 2025, 2:24 AM
Unknown Object (File)
Dec 13 2024, 6:05 PM
Unknown Object (File)
Dec 10 2024, 7:33 PM
Unknown Object (File)
Nov 16 2024, 4:43 PM
Unknown Object (File)
Nov 13 2024, 2:34 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.