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)
Sat, May 9, 5:40 PM
Unknown Object (File)
Sat, May 9, 11:59 AM
Unknown Object (File)
Fri, May 8, 12:46 PM
Unknown Object (File)
Fri, May 1, 9:50 PM
Unknown Object (File)
Apr 27 2026, 2:15 PM
Unknown Object (File)
Apr 24 2026, 3:55 PM
Unknown Object (File)
Apr 13 2026, 6:00 PM
Unknown Object (File)
Apr 9 2026, 8:46 PM
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.