Hi,
On Wed, Aug 19, 2026 at 02:28:51PM +0200, Vincent Lefevre wrote:
> Control: retitle -1 linux-image-7.1.6+deb14-amd64: st_mtime and time()
> inconsistency
>
> On 2026-08-19 13:48:48 +0200, Vincent Lefevre wrote:
> > Here's a simple program to reproduce the issue. On my machine,
> > a difference is output many times every second (apparently,
> > when the clock is very close to an integer number of seconds).
> [...]
>
> This also occurs in /dev/shm (tmpfs).
>
> And I cannot reproduce this issue under Debian 13 (trixie) with
> the 6.12.96+deb13-amd64 kernel.
I think this is a consequence of 4e40eff0b5737c ("fs: add
infrastructure for multigrain timestamps") and following in 6.13-rc1.
time(2) has only an accurancy in second, so the code might need to
use clock_gettime(2).
Regards,
Salvatore