Page MenuHomeFreeBSD

rockchip: fix stack overflow in rk8xx_rtc
ClosedPublic

Authored by kevans on Jul 12 2026, 1:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 10, 10:15 AM
Unknown Object (File)
Sat, Aug 8, 4:41 PM
Unknown Object (File)
Sat, Aug 8, 11:23 AM
Unknown Object (File)
Sat, Aug 1, 8:33 AM
Unknown Object (File)
Sat, Aug 1, 5:45 AM
Unknown Object (File)
Fri, Jul 31, 6:32 AM
Unknown Object (File)
Wed, Jul 29, 3:14 PM
Unknown Object (File)
Tue, Jul 28, 8:52 AM
Subscribers

Details

Summary

Presumably surfaced by -fstack-protector-strong, rk8xx_settime was
triggering SSP when ntpd set the time on the RockPro64, at the very
least. A minor oops meant that the weeks mask was getting tossed into
the wrong field, and the mask was never populated. The mask is 0x7 for
all three of these, thus overflowing the data array in settime by one
byte.

Reported by: jsm, "Tenkawa" on Discord

Diff Detail

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