Page MenuHomeFreeBSD

Don't allow the user to set RTF_RNH_LOCKED
ClosedPublic

Authored by tuexen on Apr 13 2019, 2:06 PM.

Details

Summary

When sending a routing message, don't allow the user to set the RTF_RNH_LOCKED in rtm_flags, since this flag is used only internally.

This issue was reported by syzbot.

Test Plan

Ensure reproducer does not trigger a panic on a GENERIC kernel.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tuexen created this revision.Apr 13 2019, 2:06 PM
tuexen edited the test plan for this revision. (Show Details)Apr 13 2019, 2:06 PM
ae accepted this revision.Apr 13 2019, 5:10 PM
This revision is now accepted and ready to land.Apr 13 2019, 5:10 PM
This revision was automatically updated to reflect the committed changes.