Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-20935

Unaligned fallocate(punch_hole) on encrypted file returns 0 but corrupts data inside and outside the punched range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

      Silent data corruption occurs when fallocate(FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE) is used on encrypted files with a non-page-aligned offset or length.
      Users get no error, but the punched bytes are wrong and bytes outside the requested range are also corrupted. This can affect VM and disk images, databases, fallocate --dig-holes, sparse copy tools, and log compaction.

            bobijam Zhenyu Xu
            bobijam Zhenyu Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: