lizeyu-xydt
1e878dde7c
#92109: [Bug]: EmbeddedAttemptSessionTakeoverError caused by Btrfs ctimeNs instability (#92123)
* fix(session-lock): remove ctimeNs from session file fingerprint comparison
Btrfs background maintenance (snapshots, scrub, quota) updates ctime
without any file content change. Including ctimeNs in the fingerprint
causes false-positive EmbeddedAttemptSessionTakeoverError on all Btrfs
filesystems, breaking cron jobs and subagent spawns with 100% failure.
dev + ino + size + mtimeNs are sufficient to detect external writes —
any content change will also update mtimeNs and/or size. ctimeNs only
tracks metadata changes and adds no meaningful protection.
Closes #92109
* test(session-lock): cover ctime-only fence drift
* fix(session-lock): narrow ctime drift acceptance
* fix(session-lock): trust verified ctime drift
* fix(session-lock): bound ctime drift digest
* fix(session-lock): skip absent ctime digest
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-06-11 18:40:38 +09:00
..
2026-06-10 16:34:06 +09:00
2026-06-11 18:40:38 +09:00
2026-06-11 13:57:39 +05:30
2026-06-10 16:30:25 +05:30
2026-06-10 21:47:20 -07:00
2026-06-10 21:47:20 -07:00
2026-06-11 11:10:00 +09:00
2026-06-11 09:59:57 +09:00
2026-06-10 10:51:19 +05:30
2026-06-10 21:47:20 -07:00
2026-06-11 11:10:00 +09:00
2026-06-10 14:54:32 +05:30
2026-06-09 15:34:28 +09:00
2026-06-11 02:18:47 +01:00
2026-06-11 11:15:47 +09:00
2026-06-11 09:59:22 +09:00
2026-06-11 08:27:45 +09:00
2026-06-07 19:09:49 +09:00
2026-06-11 10:00:02 +09:00
2026-06-09 20:12:25 +09:00
2026-06-07 02:33:06 -07:00
2026-06-11 11:11:21 +09:00
2026-06-10 21:47:20 -07:00
2026-06-11 09:59:22 +09:00
2026-06-07 04:06:26 +02:00
2026-06-11 02:30:35 +01:00
2026-06-10 13:05:24 +05:30
2026-06-09 13:15:48 -07:00
2026-06-11 08:28:21 +09:00
2026-06-11 11:15:47 +09:00
2026-06-09 12:27:53 +09:00
2026-06-11 08:20:42 +09:00
2026-06-10 01:32:33 +09:00
2026-06-09 01:22:29 +01:00
2026-06-10 16:34:06 +09:00
2026-06-11 08:30:04 +09:00
2026-06-11 11:11:23 +09:00
2026-06-09 11:30:28 -07:00
2026-06-08 22:03:11 +05:30
2026-06-05 02:12:53 +01:00
2026-06-07 02:33:06 -07:00