nuttx-apps/system/nxpkg
aviralgarg05 f363a8f444 system/nxpkg: Protect live locks from filesystem clock skew.
Record a per-boot token and owner PID in every package, installed-database, and synchronization lock. A contender now keeps a lock held while its recorded owner task is alive, regardless of unreliable FAT modification timestamps.

Reclaim locks from exited owners or earlier boots immediately, while retaining timestamp-based migration handling for legacy empty lock files. This prevents a just-created live lock from being mistaken for a decades-old stale file on targets whose mounted filesystem clock does not match CLOCK_REALTIME.

Assisted-by: OpenAI Codex:gpt-5.6-sol
Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
2026-07-24 15:25:58 +05:30
..
CMakeLists.txt system/nxpkg: network sync, install hardening, and CLI completion. 2026-07-24 15:25:57 +05:30
Kconfig system/nxpkg: address lifecycle review findings. 2026-07-24 15:25:58 +05:30
Make.defs system/nxpkg: add local package lifecycle helper 2026-06-20 15:05:28 -03:00
Makefile system/nxpkg: network sync, install hardening, and CLI completion. 2026-07-24 15:25:57 +05:30
pkg.h system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_compat.c system/nxpkg: network sync, install hardening, and CLI completion. 2026-07-24 15:25:57 +05:30
pkg_hash.c system/nxpkg: add local package lifecycle helper 2026-06-20 15:05:28 -03:00
pkg_install.c system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_log.c system/nxpkg: network sync, install hardening, and CLI completion. 2026-07-24 15:25:57 +05:30
pkg_main.c system/nxpkg: address lifecycle review findings. 2026-07-24 15:25:58 +05:30
pkg_manifest.c system/nxpkg: address lifecycle review findings. 2026-07-24 15:25:58 +05:30
pkg_metadata.c system/nxpkg: Address follow-up review findings. 2026-07-24 15:25:58 +05:30
pkg_repo.c system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_store.c system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_txn.c system/nxpkg: add local package lifecycle helper 2026-06-20 15:05:28 -03:00