Page MenuHomeFreeBSD

Avoid re-check of usermode condition.
ClosedPublic

Authored by kib on Jan 1 2018, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 7:33 PM
Unknown Object (File)
Oct 12 2024, 12:19 AM
Unknown Object (File)
Oct 3 2024, 5:06 AM
Unknown Object (File)
Oct 3 2024, 2:49 AM
Unknown Object (File)
Sep 28 2024, 3:36 AM
Unknown Object (File)
Sep 27 2024, 9:18 PM
Unknown Object (File)
Sep 8 2024, 1:36 AM
Unknown Object (File)
Sep 7 2024, 10:01 PM
Subscribers

Details

Summary

This change should not change anything in the behavior of trap_pfault(), while eliminating obfuscation of jumping to the code which checks for reversed condition.

Diff Detail

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

Event Timeline

Fix amd64 portion of the patch.

sys/amd64/amd64/trap.c
663 ↗(On Diff #37366)

The unconditional initialization of the variable "rv" to zero is now redundant. Arguably, zero was never a value of the correct type for its initialization, because it's not a KERN_*.

Remove initialization of rv.

This revision is now accepted and ready to land.Jan 1 2018, 8:25 PM
This revision was automatically updated to reflect the committed changes.