{
  "schemaVersion": 1,
  "kind": "native-controlled-observations",
  "title": "Transfer offset copyback: error, bytes and retry",
  "published": "2026-11-09",
  "updated": "2026-11-09",
  "caseCount": 29,
  "snapshotCount": 50,
  "environment": {
    "kernel": "6.8.0-147-generic",
    "machine": "x86_64",
    "python": "3.12.3",
    "libc": [
      "glibc",
      "2.39"
    ],
    "compiler": "cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0",
    "compiler_flags": [
      "-std=c11",
      "-O2",
      "-Wall",
      "-Wextra",
      "-Werror",
      "-pedantic"
    ],
    "filesystem_magic_label": "ext2/ext3:ef53",
    "page_size": 4096,
    "scope": "one host/kernel; filesystem magic is not mount identification"
  },
  "capturedAt": "2026-11-09T08:25:39.321073+00:00",
  "method": "Separate readable-but-nonwritable offset pages from inaccessible input; observe result, positions and bytes before one permission-repaired retry.",
  "limits": [
    "One Linux host; no cross-kernel or independent external replication.",
    "Deliberately invalid caller buffers and synthetic payloads; no device failure, power-loss or performance test.",
    "EFAULT occurs with and without byte movement; no universal retry procedure is tested."
  ],
  "license": "CC0-1.0 for original Hesela code and observations; linked third-party sources retain their rights.",
  "article": "https://hesela.com/analyses/zero-copy-source-lifetime/#offset-copyback-failure",
  "packetPath": "/research/transfer-copyback.zip",
  "csvPath": "/research/transfer-copyback/summary.csv",
  "observationsPath": "/research/transfer-copyback/capture-o2.json",
  "sourcesPath": "/research/transfer-copyback/sources.json",
  "rows": [
    {
      "case": "sendfile-ro",
      "label": "sendfile: input read-only",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "CDEFGH",
      "retryPayload": "CDEFGHCDEFGH",
      "effect": "Earlier input duplicated"
    },
    {
      "case": "copy-ro-rw",
      "label": "copy_file_range: input read-only",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "CDEFGH",
      "retryPayload": "CDEFGHCDEFGH",
      "effect": "Earlier input duplicated"
    },
    {
      "case": "copy-rw-ro",
      "label": "copy_file_range: output read-only",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "CDEFGH",
      "retryPayload": "IJKLMN",
      "effect": "Later input replaces earlier output"
    },
    {
      "case": "splice-out-ro",
      "label": "splice from pipe: output read-only",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "CDEFGH",
      "retryPayload": "IJKLMN",
      "effect": "Later pipe bytes replace earlier output"
    },
    {
      "case": "copy-ro-ro",
      "label": "copy_file_range: both read-only",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "CDEFGH",
      "retryPayload": "CDEFGH",
      "effect": "Same range rewritten; not a recovery guarantee"
    },
    {
      "case": "sendfile-none",
      "label": "sendfile: input inaccessible",
      "firstResult": "-1 / EFAULT",
      "firstPayload": "",
      "retryPayload": "CDEFGH",
      "effect": "First payload appears only after repair"
    }
  ],
  "sha256": {
    "README.md": "34ecd5a11f9216aed0812f2c155466f8ccf89c86fe69010a53bb65fb611b337f",
    "capture-o0.json": "ebfbe2c3f13266b70fec0a8a72d541e5c473c5553b08ede769d72547103c4d5e",
    "capture-o2.json": "b378f4ec8ebdede6996b3eb923af4648bb975a1a2910571f4183772d2ad82211",
    "claims.json": "cec9045e97d4f849253175196cb7c63598b2ebf8fefd85e4689a4cbff50ff301",
    "collect_sources.py": "659e55603ee81a79361151088d2e90a229800a62b8792852a76d0b96d1598573",
    "integration.json": "489b74de08a65dad4fa5a6b078e731b935392491dbb3fb11cf451aee0c366fb6",
    "manifest.json": "c384134df147dbf7673bc136eb9cb9f99376d70ce937f74212b2754405920dd5",
    "observe.py": "58abfc2d2de77af10813359cee002e6f05ad702c148889505253529328a814ec",
    "probe.c": "f7e0964481f073093844185a83a6e7f63a899d9cd6108c986e682e4e01aa782b",
    "sources.json": "a1c3214ca4bdf1256762b05d4bd195e4767c3ce93b7424feb05a620791d4d873",
    "summarize.py": "cc4c5b57ae64611d741d50ed9d08e4781e40d01c1090d44bfef0bd07758cfc88",
    "summary.csv": "4a5a09d0cef1bbc069293502ecfd6a533fbff8a1fea9f158a6052b9fd3b29c01",
    "test_verify.py": "1abad0467502f5117b720d18fdf9f0fe1cbd416a046279a37a0af374b5f659df",
    "trace.py": "ea3f4f388b2d6cdb0b5133c0dbe9d2697a4d1261821be54c7704324e7bbefd92",
    "traces.json": "571da1e4ad3ee64fedb8bca94f36c285d235bfb28ffa4362dc1ae7722477c14c",
    "verify.py": "4f351d004796f5bfad8894d70d70c2e744c97778777a19061d73b3c9c84e6951"
  }
}
