Skip to content

Fix ARM stat64 timestamp units - #1704

Open
carlosqwqqwq wants to merge 1 commit into
qilingframework:devfrom
carlosqwqqwq:issue-1682-fstat64-ns
Open

carlosqwqqwq wants to merge 1 commit into
qilingframework:devfrom
carlosqwqqwq:issue-1682-fstat64-ns

Conversation

@carlosqwqqwq

@carlosqwqqwq carlosqwqqwq commented Nov 25, 2026 •

Copy link
Copy Markdown

Fixes #1682.

ARM Linux stat64 timestamp nanosecond fields contain the subsecond nanoseconds, while the corresponding seconds fields carry the epoch seconds. Convert the ARM timestamp fields to their subsecond values during serialization, and add coverage for little-endian ARM, big-endian ARM, and ARM stat64 layouts.

Validation:

  • python -m unittest tests.test_arm_stat64_timestamps (3 tests)
  • ARM32 Linux guest fstat64 check: timestamp seconds and subsecond nanoseconds match the host file metadata.

Checklist

Which kind of PR do you create?

  • This PR only contains minor fixes.
  • This PR contains major feature update.
  • This PR introduces a new function/api for Qiling Framework.

Coding convention?

  • The new code conforms to Qiling Framework naming convention.
  • The imports are arranged properly.
  • Essential comments are added.
  • The reference of the new code is pointed out.

Extra tests?

  • No extra tests are needed for this PR.
  • I have added enough tests for this PR.
  • Tests will be added after some discussion and review.

Changelog?

  • This PR doesn't need to update Changelog.
  • Changelog will be updated after some proper review.
  • Changelog has been updated in my PR.

Target branch?

  • The target branch is dev branch.

One last thing

  • I have read the contribution guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant