• W
    arm64: vdso: check sequence counter even for coarse realtime operations · f84a935d
    Will Deacon 提交于
    When returning coarse realtime values from clock_gettime, we must still
    check the sequence counter to ensure that the kernel does not update
    the vdso datapage whilst we are loading the coarse timespec as this
    could potentially result in time appearing to go backwards.
    
    This patch delays the coarse realtime check until after we have loaded
    successfully from the vdso datapage. This does mean that we always load
    the wtm timespec, but conditionalising the load and adding an extra
    sequence test is unlikely to buy us anything other than messy code,
    particularly as the sequence test implies a read barrier.
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
    f84a935d
gettimeofday.S 5.0 KB