)]}'
{
  "commit": "769c8003ee85ac5fd89aea375db5f7b58a1ebce2",
  "tree": "423fc88971f360a4fd3ceb3e23357d8d92afd711",
  "parents": [
    "599f02195200133a278b689eb66b197b4a2c1e13"
  ],
  "author": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Tue Feb 06 17:18:21 2024 -0800"
  },
  "committer": {
    "name": "COS Cherry Picker",
    "email": "cloud-image-release@prod.google.com",
    "time": "Mon Mar 25 10:40:59 2024 -0700"
  },
  "message": "net: tls: handle backlogging of crypto requests\n\n[ Upstream commit 8590541473188741055d27b955db0777569438e3 ]\n\nSince we\u0027re setting the CRYPTO_TFM_REQ_MAY_BACKLOG flag on our\nrequests to the crypto API, crypto_aead_{encrypt,decrypt} can return\n -EBUSY instead of -EINPROGRESS in valid situations. For example, when\nthe cryptd queue for AESNI is full (easy to trigger with an\nartificially low cryptd.cryptd_max_cpu_qlen), requests will be enqueued\nto the backlog but still processed. In that case, the async callback\nwill also be called twice: first with err \u003d\u003d -EINPROGRESS, which it\nseems we can just ignore, then with err \u003d\u003d 0.\n\nCompared to Sabrina\u0027s original patch this version uses the new\ntls_*crypt_async_wait() helpers and converts the EBUSY to\nEINPROGRESS to avoid having to modify all the error handling\npaths. The handling is identical.\n\nBUG\u003db/326485556\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed CVE-2024-26584 in the Linux kernel.\n\ncos-patch: security-high\nFixes: a54667f6728c (\"tls: Add support for encryption using async offload accelerator\")\nFixes: 94524d8fc965 (\"net/tls: Add support for async decryption of tls records\")\nCo-developed-by: Sabrina Dubroca \u003csd@queasysnail.net\u003e\nSigned-off-by: Sabrina Dubroca \u003csd@queasysnail.net\u003e\nLink: https://lore.kernel.org/netdev/9681d1febfec295449a62300938ed2ae66983f28.1694018970.git.sd@queasysnail.net/\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\nReviewed-by: Simon Horman \u003chorms@kernel.org\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\nSigned-off-by: Sasha Levin \u003csashal@kernel.org\u003e\n(cherry picked from commit 13eca403876bbea3716e82cdfe6f1e6febb38754)\nSigned-off-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nChange-Id: Icc1d39df83e746a7e6cd4aec4bd02854612355dc\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/67111\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: Oleksandr Tymoshenko \u003covt@google.com\u003e\nMain-Branch-Verified: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a5e32039c8296b71fe68758c19b8d3ae4cace1db",
      "old_mode": 33188,
      "old_path": "net/tls/tls_sw.c",
      "new_id": "7b67402ec38b91747900a51e5463b9fdd4ef2cbc",
      "new_mode": 33188,
      "new_path": "net/tls/tls_sw.c"
    }
  ]
}
