)]}'
{
  "commit": "021fae688d1e6d826e6e755ac10ae0e4126834c9",
  "tree": "20d0717d143777224868a1c65e6d6dbe0468647f",
  "parents": [
    "78f28a31d7d688054c95b5299845db8fb6e1308c"
  ],
  "author": {
    "name": "Tal Zussman",
    "email": "tz2294@columbia.edu",
    "time": "Mon Nov 16 16:06:54 2026 -0500"
  },
  "committer": {
    "name": "Martin K. Petersen (Oracle)",
    "email": "mkp@kernel.org",
    "time": "Fri Nov 20 21:46:12 2026 -0500"
  },
  "message": "scsi: scsi_debug: Reset protection information on zone reset\n\nzbc_rwp_zone() zeroes the data of a zone that is reset, but leaves the\nprotection information of its previous contents in place. Reads of a zoned\ndevice are not limited to the blocks below the write pointer, so with DIX\nenabled reading those blocks back fails the guard check.\n\nWrite to a zone, reset it and read it back:\n\n  # modprobe scsi_debug zbc\u003dmanaged sector_size\u003d4096 dev_size_mb\u003d64 \\\n        zone_size_mb\u003d4 dif\u003d1 dix\u003d1\n  # dd if\u003d/dev/urandom of\u003d/dev/sda bs\u003d1M count\u003d1 seek\u003d8 oflag\u003ddirect\n  # blkzone reset -o 16384 -c 1 /dev/sda\n  # dd if\u003d/dev/sda of\u003d/dev/null bs\u003d1M count\u003d1 skip\u003d8 iflag\u003ddirect\n  dd: error reading \u0027/dev/sda\u0027: Invalid or incomplete multibyte or wide character\n\nThe read fails with EILSEQ, and the guard tag that the device reports is\nstill that of the data that was written, while the block now holds zeroes:\n\nscsi_debug:dif_verify: GUARD check failed on sector 2048 rcvd 0x288f, data 0x0000\nprotection error, dev sda, sector 16384 op 0x0:(READ) flags 0x10800 phys_seg 256 prio class 2\n\nReset the protection information of the zeroed blocks to 0xff, as\nunmap_region() does, so that they are not checked until they are written\nagain.\n\nFixes: 2d62253eb1b6 (\"scsi: scsi_debug: Zero clear zones at reset write pointer\")\nSigned-off-by: Tal Zussman \u003ctz2294@columbia.edu\u003e\nReviewed-by: Damien Le Moal \u003cdlemoal@kernel.org\u003e\nLink: https://patch.msgid.link/20261116-scsi-debug-zone-reset-v2-2-83c8a9841f4c@columbia.edu\nSigned-off-by: Martin K. Petersen (Oracle) \u003cmkp@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7e78c158f73686423e5a11623b64db12b1bea1da",
      "old_mode": 33188,
      "old_path": "drivers/scsi/scsi_debug.c",
      "new_id": "f64cd701d64b251903c11285d0e1c4c648b09d5e",
      "new_mode": 33188,
      "new_path": "drivers/scsi/scsi_debug.c"
    }
  ]
}
