)]}'
{
  "commit": "d015faf684129a276f2137ad2e11c6c985294648",
  "tree": "86335d962b6cd83931b8fcf1e2c549e1444438c7",
  "parents": [
    "8524c3588fbb9d5c1b876e6f908c42926845650d"
  ],
  "author": {
    "name": "Chris Lu",
    "email": "chris.lu@mediatek.com",
    "time": "Thu Oct 22 11:21:49 2026 +0800"
  },
  "committer": {
    "name": "Luiz Augusto von Dentz",
    "email": "luiz.von.dentz@intel.com",
    "time": "Mon Nov 02 17:09:01 2026 -0500"
  },
  "message": "Bluetooth: btmtk: bound the ISO payload length by the controller\u0027s MTU\n\nbtmtk_recv_isopkt() bounds the Data_Total_Length reported by the\ncontroller with skb_tailroom(skb) \u003c hci_skb_expect(skb). That keeps the\nreassembly inside the skb, but it enforces no protocol limit: the head\nallocation is rounded up to the next kmalloc bucket and skb_tailroom()\nreports what the bucket can hold rather than what was requested, which is\nseveral hundred bytes more. An oversized length therefore passes, and the\nparser keeps pulling bytes out of the following transfers to fill it,\nswallowing the real ISO packets they carry until the frame is handed to\nhci_recv_frame().\n\nThe controller reports the largest ISO_Data_Packet_Length it will send in\nLE Read Buffer Size [v2], which hci_cc_le_read_buffer_size_v2() keeps in\nhdev-\u003eiso_mtu. Once that is available, bound the length by it and size the\nreceive skb to hold that much plus the 4-byte header. HCI_MAX_ISO_SIZE is\nkept only as a fallback for the window before the command completes.\n\nKeep the skb_tailroom() test as well, because a fragment started before\nhdev-\u003eiso_mtu was populated sits in an skb sized for the fallback.\n\nFixes: ceac1cb0259d (\"Bluetooth: btusb: mediatek: add ISO data transmission functions\")\nCo-developed-by: Hao Qin \u003chao.qin@mediatek.com\u003e\nSigned-off-by: Hao Qin \u003chao.qin@mediatek.com\u003e\nCo-developed-by: Wenlong Tian \u003cot_wenlong.tian@mediatek.com\u003e\nSigned-off-by: Wenlong Tian \u003cot_wenlong.tian@mediatek.com\u003e\nSigned-off-by: Chris Lu \u003cchris.lu@mediatek.com\u003e\nSigned-off-by: Luiz Augusto von Dentz \u003cluiz.von.dentz@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "01d5ad2479f47870c4c779e5da4313030522a29e",
      "old_mode": 33188,
      "old_path": "drivers/bluetooth/btmtk.c",
      "new_id": "f2224eb0bf6b0984a2a9a2602ccfe95447f16e13",
      "new_mode": 33188,
      "new_path": "drivers/bluetooth/btmtk.c"
    }
  ]
}
