diff options
| author | John Stultz <[email protected]> | 2025-03-20 20:03:01 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-03-21 18:16:18 +0000 |
| commit | e40d3709c0225f5f681fd300f65a65ac63b10f83 (patch) | |
| tree | 33d790633c058d09f978f3809000725e616911a7 /fs/proc/base.c | |
| parent | timekeeping: Fix possible inconsistencies in _COARSE clockids (diff) | |
| download | kernel-e40d3709c0225f5f681fd300f65a65ac63b10f83.tar.gz kernel-e40d3709c0225f5f681fd300f65a65ac63b10f83.zip | |
selftests/timers: Improve skew_consistency by testing with other clockids
Lei Chen reported a bug with CLOCK_MONOTONIC_COARSE having inconsistencies
when NTP is adjusting the clock frequency.
This has gone seemingly undetected for ~15 years, illustrating a clear gap
in our testing.
The skew_consistency test is intended to catch this sort of problem, but
was focused on only evaluating CLOCK_MONOTONIC, and thus missed the problem
on CLOCK_MONOTONIC_COARSE.
So adjust the test to run with all clockids for 60 seconds each instead of
10 minutes with just CLOCK_MONOTONIC.
Reported-by: Lei Chen <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Closes: https://lore.kernel.org/lkml/[email protected]/
Diffstat (limited to 'fs/proc/base.c')
0 files changed, 0 insertions, 0 deletions
