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
Kconfig system/nxpkg: address lifecycle review findings. 2026-07-24 15:25:58 +05:30
Make.defs
Makefile
pkg.h system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_compat.c
pkg_hash.c
pkg_install.c system/nxpkg: Protect live locks from filesystem clock skew. 2026-07-24 15:25:58 +05:30
pkg_log.c
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