{
  "schemaVersion": 1,
  "experiment": "linux-memfd-file-seals",
  "generatedAt": "2026-10-18T01:08:36.576668+00:00",
  "environment": {
    "kernel": "6.8.0-146-generic",
    "python": "3.12.3",
    "pageSizeBytes": 4096,
    "initialSealMask": 32,
    "memfdFlags": [
      "MFD_CLOEXEC",
      "MFD_ALLOW_SEALING",
      "MFD_NOEXEC_SEAL"
    ]
  },
  "repetitions": 3,
  "casesPerRepetition": 7,
  "sourceSha256": "ff2eb554c1da5904049d3e7b4063a5ea68462a88812a1af14af004124d32b03d",
  "observations": [
    {
      "write_mapping_busy": {
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "readonly_mapping_busy": {
        "mapping_protection": "PROT_READ",
        "descriptor_access": "O_RDWR",
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "future_write": {
        "existing_shared_file_byte": "B",
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "private_byte": "P",
        "file_after_private": "B",
        "upgrade_while_mapped": "EBUSY",
        "upgrade_after_unmap": "WRITE installed"
      },
      "write_without_size": {
        "grown_bytes": 8192,
        "shrunk_bytes": 2048,
        "file_byte": "A"
      },
      "fixed_content_size": {
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "shrink": "EPERM",
        "grow": "EPERM",
        "private_byte": "P",
        "file_byte": "A",
        "file_bytes": 4096
      },
      "seal_list_only": {
        "add_write_via_duplicate": "EPERM",
        "write_via_duplicate": "B",
        "grown_bytes": 8192,
        "same_seals": true
      },
      "shrink_only": {
        "shrink": "EPERM",
        "shared_file_byte": "B",
        "grown_bytes": 8192
      }
    },
    {
      "write_mapping_busy": {
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "readonly_mapping_busy": {
        "mapping_protection": "PROT_READ",
        "descriptor_access": "O_RDWR",
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "future_write": {
        "existing_shared_file_byte": "B",
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "private_byte": "P",
        "file_after_private": "B",
        "upgrade_while_mapped": "EBUSY",
        "upgrade_after_unmap": "WRITE installed"
      },
      "write_without_size": {
        "grown_bytes": 8192,
        "shrunk_bytes": 2048,
        "file_byte": "A"
      },
      "fixed_content_size": {
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "shrink": "EPERM",
        "grow": "EPERM",
        "private_byte": "P",
        "file_byte": "A",
        "file_bytes": 4096
      },
      "seal_list_only": {
        "add_write_via_duplicate": "EPERM",
        "write_via_duplicate": "B",
        "grown_bytes": 8192,
        "same_seals": true
      },
      "shrink_only": {
        "shrink": "EPERM",
        "shared_file_byte": "B",
        "grown_bytes": 8192
      }
    },
    {
      "write_mapping_busy": {
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "readonly_mapping_busy": {
        "mapping_protection": "PROT_READ",
        "descriptor_access": "O_RDWR",
        "while_shared_mapping": "EBUSY",
        "after_unmap": "WRITE installed",
        "file_byte": "A"
      },
      "future_write": {
        "existing_shared_file_byte": "B",
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "private_byte": "P",
        "file_after_private": "B",
        "upgrade_while_mapped": "EBUSY",
        "upgrade_after_unmap": "WRITE installed"
      },
      "write_without_size": {
        "grown_bytes": 8192,
        "shrunk_bytes": 2048,
        "file_byte": "A"
      },
      "fixed_content_size": {
        "pwrite": "EPERM",
        "new_shared_mapping": "EPERM",
        "shrink": "EPERM",
        "grow": "EPERM",
        "private_byte": "P",
        "file_byte": "A",
        "file_bytes": 4096
      },
      "seal_list_only": {
        "add_write_via_duplicate": "EPERM",
        "write_via_duplicate": "B",
        "grown_bytes": 8192,
        "same_seals": true
      },
      "shrink_only": {
        "shrink": "EPERM",
        "shared_file_byte": "B",
        "grown_bytes": 8192
      }
    }
  ],
  "limits": [
    "Sequential operations on one host; no concurrent writers or descriptor passing between processes.",
    "No reboot, power loss, device I/O, crash recovery, performance or reliability-rate measurement.",
    "No huge pages, executable mappings, asynchronous I/O or memory-pinning test.",
    "Each case uses a fresh volatile memfd; no existing files or block devices are modified."
  ]
}
