Page MenuHomeFreeBSD

Check for excessively small times in kern_clock_settime().
ClosedPublic

Authored by markj on May 3 2019, 4:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 9:10 PM
Unknown Object (File)
Thu, Dec 5, 4:49 PM
Unknown Object (File)
Nov 30 2024, 7:25 AM
Unknown Object (File)
Oct 6 2024, 10:52 AM
Unknown Object (File)
Sep 18 2024, 7:12 PM
Unknown Object (File)
Sep 18 2024, 1:28 AM
Unknown Object (File)
Sep 17 2024, 1:48 PM
Unknown Object (File)
Sep 5 2024, 4:49 AM
Subscribers
None

Details

Summary

This addresses a panic hit by syzkaller if wall_cmos_clock is set.

Diff Detail

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

Event Timeline

If this causes a panic, maybe it shouldn't be conditional on allow_insane_settime? After all, syzkaller may eventually discovered sysctls.

Otherwise, LGTM.

This revision is now accepted and ready to land.May 3 2019, 4:37 PM
In D20151#433908, @cem wrote:

If this causes a panic, maybe it shouldn't be conditional on allow_insane_settime? After all, syzkaller may eventually discovered sysctls.

The commit log message for r312702 hints that allow_insane_settime already prevents a privileged user from panicking the system.

syzkaller would probably discover debug.kdb.panic first. :)

I forget why we left that knob, then. :)

This revision was automatically updated to reflect the committed changes.