Page MenuHomeFreeBSD

vm_fault: move FAULT_* return codes out of range for Mach errors
ClosedPublic

Authored by kib on Jun 27 2023, 11:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 2 2024, 6:09 PM
Unknown Object (File)
Sep 24 2024, 10:07 AM
Unknown Object (File)
Sep 22 2024, 7:23 PM
Unknown Object (File)
Sep 19 2024, 3:27 AM
Unknown Object (File)
Sep 18 2024, 10:13 AM
Unknown Object (File)
Sep 16 2024, 12:15 PM
Unknown Object (File)
Sep 9 2024, 11:24 PM
Unknown Object (File)
Sep 8 2024, 7:15 AM
Subscribers

Details

Summary
This way a possible clash between FAULT_* and KERN_* numbering is
avoided, and panics checks for fault_status confusion become more
efficient.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Jun 27 2023, 11:45 AM

and panics checks for fault_status confusion become more efficient.

I'm not sure what you mean here?

This revision is now accepted and ready to land.Jun 27 2023, 1:56 PM

and panics checks for fault_status confusion become more efficient.

I'm not sure what you mean here?

switches with the key by fault_status enum or Mach error have the default: case with panic. If code confuses the enum with Mach error, now it should reliably hit the panic case instead of randomly interpret the value from different namespace.