)]}'
{
  "commit": "78ded647d43e335891f981f68c5992a2e763cfcc",
  "tree": "bae2b824959ba593eda7bc43ec77ca553021f63f",
  "parents": [
    "14368b9aa1017fee35d2589be7b17e0485c0f93e"
  ],
  "author": {
    "name": "Chuck Lever",
    "email": "cel@kernel.org",
    "time": "Mon Oct 26 18:52:14 2026 -0700"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Wed Oct 28 16:50:20 2026 -0700"
  },
  "message": "tls: Honor O_NONBLOCK in tls_sw_splice_read()\n\ntls_sw_splice_read() takes its blocking behavior from\nSPLICE_F_NONBLOCK alone. When splicing from a socket to a pipe,\ndo_splice() sets that flag from the pipe\u0027s O_NONBLOCK, not the\nsocket\u0027s. On a nonblocking socket, a splice(2) call without\nSPLICE_F_NONBLOCK therefore sleeps in tls_rx_rec_wait() until a\nrecord arrives. tcp_splice_read() instead reads sock-\u003efile-\u003ef_flags\nand returns -EAGAIN.\n\nPolling first does not avoid the sleep once tls_sw_splice_read()\nconsumes zero-length records, as it does after a later patch in this\nseries. tls_sw_sock_is_readable() reports the socket readable while\nany record sits on rx_list, including a zero-length record that\ndelivers no bytes to the pipe. For TLS 1.3 the strparser announces a\nrecord before decryption, when its plaintext length is still unknown,\nso the readiness test cannot screen such a record out. A splice that\nconsumes the record and waits for the next stalls every connection\nan event loop multiplexes.\n\nAn LLM audit of the TLS read paths found this defect.\n\nTreat the socket\u0027s O_NONBLOCK as nonblocking too. A caller that\nsets O_NONBLOCK on the socket and splices without SPLICE_F_NONBLOCK\nnow gets -EAGAIN where the splice blocked before. sendfile(2) from\na TLS socket changes the same way, because do_sendfile() leaves the\ninput file\u0027s O_NONBLOCK out of the splice flags. Both now behave as\nthey do on a plain TCP socket.\n\nFixes: c46234ebb4d1 (\"tls: RX path for ktls\")\nSigned-off-by: Chuck Lever \u003ccel@kernel.org\u003e\nLink: https://patch.msgid.link/20261027015215.605919-2-kuba@kernel.org\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "312e51270f293dc4df8efbec498473c4c3b48d15",
      "old_mode": 33188,
      "old_path": "net/tls/tls_sw.c",
      "new_id": "771e02bff519997243b9cc73e169ad92c8b7b366",
      "new_mode": 33188,
      "new_path": "net/tls/tls_sw.c"
    }
  ]
}
