)]}'
{
  "commit": "a4845f077415ef32fe672c841e2fc58ae9e28273",
  "tree": "cf55bae5f04fd79bf752bf22cd6b5059fb743a2e",
  "parents": [
    "6b67cdb463b006e57f15e3fe4ea03b00f0ac9ee5"
  ],
  "author": {
    "name": "Zhao Gongyi",
    "email": "zhaogongyi@bytedance.com",
    "time": "Wed Nov 04 21:06:38 2026 +0800"
  },
  "committer": {
    "name": "Niklas Cassel",
    "email": "cassel@kernel.org",
    "time": "Sat Nov 07 14:35:25 2026 +0100"
  },
  "message": "ata: libata-scsi: reject data-in commands with a data-out buffer\n\nSG_IO can submit a data-in SCSI command with DMA_TO_DEVICE. The\nscatterlist can then contain pages pinned without write access.\nata_scsi_rbuf_fill() writes simulated replies to that scatterlist;\nin the reported case, the copy tried to write the shared zero page\nand faulted in the kernel.\n\nThe same mismatch can affect SG_IO commands translated by libata.\nZBC IN and GET PHYSICAL ELEMENT STATUS completion handlers can modify\nthe receive buffer even if the drive aborts the command. For ATAPI,\nthe successful INQUIRY completion also rewrites the buffer in\natapi_fixup_inquiry().\n\nReject these mismatched commands before the buffer is written or the\ncommand is issued. Report ABORTED COMMAND / DATA IN BUFFER ERROR because\nthe CDB itself can be valid; the supplied transfer direction is wrong.\n\nFixes: 1da177e4c3f4 (\"Linux-2.6.12-rc2\")\nLink: https://lore.kernel.org/r/20261027090809.94126-1-zhaogongyi@bytedance.com\nSuggested-by: Niklas Cassel \u003ccassel@kernel.org\u003e\nSuggested-by: Damien Le Moal \u003cdlemoal@kernel.org\u003e\nCc: stable@vger.kernel.org\nSigned-off-by: Zhao Gongyi \u003czhaogongyi@bytedance.com\u003e\nReviewed-by: Damien Le Moal \u003cdlemoal@kernel.org\u003e\nLink: https://lore.kernel.org/r/20261104130638.37882-1-zhaogongyi@bytedance.com\nSigned-off-by: Niklas Cassel \u003ccassel@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b1d5d822a9a20e215531de91748d70ec2ca1b57d",
      "old_mode": 33188,
      "old_path": "drivers/ata/libata-scsi.c",
      "new_id": "87a57495d2e4bf1bff67a70703006908fd9ebaf9",
      "new_mode": 33188,
      "new_path": "drivers/ata/libata-scsi.c"
    }
  ]
}
