HomeFreeBSD

rockchip: fix stack overflow in rk8xx_rtc

Description

rockchip: fix stack overflow in rk8xx_rtc

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.

PR: 296719
Reported by: jsm, "Tenkawa" on Discord
Reviewed by: mmel

(cherry picked from commit d387a43ec8e2663b2d8bc0c8cb02d3a2ff14b6e6)

Details

Provenance
kevansAuthored on Jul 12 2026, 2:51 PM
Parents
rG29a68ae63cac: kern: syscall_thread_enter() cannot fail
Branches
Unknown
Tags
Unknown