)]}'
{
  "commit": "7ea67149af719895ddf003cb8e9d2b287ef0a223",
  "tree": "dc0a632b3dcfada562ad531e5b16c758c34e11ff",
  "parents": [
    "6042a966e047ea9fc5b54937ba436a0d68f34750"
  ],
  "author": {
    "name": "Stig Hornang",
    "email": "stig@hornang.me",
    "time": "Fri Jun 12 16:38:18 2026 +0200"
  },
  "committer": {
    "name": "Luiz Augusto von Dentz",
    "email": "luiz.von.dentz@intel.com",
    "time": "Thu Jul 02 13:24:28 2026 -0400"
  },
  "message": "Bluetooth: L2CAP: fix tx ident leak for commands without a response\n\nCommit 6c3ea155e5ee (\"Bluetooth: L2CAP: Fix not tracking outstanding\nTX ident\") changed ident allocation to use an IDA, releasing idents in\nl2cap_put_ident() when the matching response command is received.\n\nBut identifiers allocated for commands that have no response defined\nare never released. In particular L2CAP_LE_CREDITS is sent repeatedly for\nthe lifetime of an LE CoC channel, so a peer streaming data to the\nhost exhausts the 1-255 ident range after 254 credit packets. From\nthen on l2cap_get_ident() fails:\n\n    kernel: Bluetooth: Unable to allocate ident: -28\n\nand every subsequent L2CAP_LE_CREDITS packet is sent with ident 0,\nwhich is invalid (Core Spec, Vol 3, Part A, Section 4: \"Signaling\nidentifier 0x00 is an invalid identifier and shall never be used in\nany command\"). Remote stacks that validate the ident drop these\ncommands, never receive new credits, and the channel stalls\npermanently. With default socket buffers this happens after roughly 0.5 MB\nof received data (the exact amount depends on the socket receive buffer):\n\n  \u003c ACL Data TX: Handle 2048 flags 0x00 dlen 12\n        LE L2CAP: LE Flow Control Credit (0x16) ident 0 len 4\n          Source CID: 64\n          Credits: 1\n\nRelease the ident immediately after sending L2CAP_LE_CREDITS since no\nresponse will ever release it. Use a local variable instead of\nchan-\u003eident so that an ident that an EXT_FLOWCTL channel may be waiting on\n(e.g. a pending reconfigure) is not overwritten by a credit packet.\n\nAlso add the missing L2CAP_LE_CONN_RSP case to l2cap_put_ident() so\nidents allocated for outgoing L2CAP_LE_CONN_REQ commands are released\nwhen the response arrives.\n\nFixes: 6c3ea155e5ee (\"Bluetooth: L2CAP: Fix not tracking outstanding TX ident\")\nLink: https://bugzilla.kernel.org/show_bug.cgi?id\u003d221629\nAssisted-by: Claude:claude-opus-4.8\nAssisted-by: Fable:5\nSigned-off-by: Stig Hornang \u003cstig@hornang.me\u003e\nSigned-off-by: Luiz Augusto von Dentz \u003cluiz.von.dentz@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "519cd9552d867be223841171b991f4d9da6ed0a8",
      "old_mode": 33188,
      "old_path": "net/bluetooth/l2cap_core.c",
      "new_id": "538ae9aa34794312e5b8cd95f4e8ef5661b2e98a",
      "new_mode": 33188,
      "new_path": "net/bluetooth/l2cap_core.c"
    }
  ]
}
