diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-11-03 11:06:05 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-11-09 20:15:58 +0100 |
| commit | c1b96ba87e3caaa701d6dba254e58db7cc3c99be (patch) | |
| tree | 8322da22f5f1683e611a3d9d1cd8f05e1307d37d /tools/perf/scripts/python | |
| parent | 67f1969e29b692ab3cfcc97ba175b9109212de00 (diff) | |
timekeeping: Refresh auxiliary base before offset validation
timekeeping_forward_now() can advance an auxiliary timekeeper across a
second boundary without refreshing tkr_mono.base. The negative-time
check in __timekeeping_inject_offset() then uses the stale base and
rejects valid ADJ_SETOFFSET adjustments with -EINVAL.
Refresh the derived timekeeper data before calculating the current
auxiliary time, as aux_clock_set() already does.
On 7.4-rc1, a valid negative adjustment fails at the first second
rollover. The patched kernel accepts all 12 tested rollover adjustments
and continues to reject invalid negative offsets.
Fixes: 2c8aea59c206 ("timekeeping: Add auxiliary clock support to __timekeeping_inject_offset()")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261103090605.1292660-1-thnkslprpt@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
