)]}'
{
  "commit": "5d005ded2cb14531c4d4ab5d02383407c75dbee6",
  "tree": "5e6615723e1cccf129211a63e4400e351f28883a",
  "parents": [
    "1eebde8ecede18e351ccf438f17b53d3b62a75a9"
  ],
  "author": {
    "name": "Luiz Augusto von Dentz",
    "email": "luiz.von.dentz@intel.com",
    "time": "Wed Oct 21 13:49:35 2026 -0400"
  },
  "committer": {
    "name": "Luiz Augusto von Dentz",
    "email": "luiz.von.dentz@intel.com",
    "time": "Mon Nov 02 17:09:01 2026 -0500"
  },
  "message": "Bluetooth: L2CAP: Hold incoming data until encryption key size is known\n\nOnce encryption is enabled on an ACL link, the encryption key size is\nread from the controller, using hdev-\u003emin_enc_key_size in the meantime.\nData received before the reply is processed with that key size, so a\npeer starting SMP over BR/EDR right after encryption, which it may do,\ngets its Pairing Request rejected with \"Encryption Key Size\" whenever\nthe pending security level is FIPS, as that requires a 16 octet key:\n\n  \u003e HCI Event: Encryption Change (0x08) plen 4\n  \u003e ACL Data RX: Handle 1 flags 0x02 dlen 11\n        BR/EDR SMP: Pairing Request (0x01) len 6\n  @ MGMT Event: Authentication Failed (0x0011) plen 8\n        Status: Authentication Failed (0x05)\n  \u003c HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2\n  \u003e HCI Event: Command Complete (0x0e) plen 7\n        Key size: 16\n  \u003c ACL Data TX: Handle 1 flags 0x00 dlen 6\n        BR/EDR SMP: Pairing Failed (0x05) len 1\n        Reason: Encryption key size (0x06)\n\nMark the connection with HCI_CONN_ENC_KEY_SIZE_PEND while the key size\nis read and hold incoming L2CAP data back in pending_rx meanwhile,\nprocessing it once the reply is handled.\n\nFound with mgmt-tester \"Pairing Acceptor - SMP over BR/EDR 2\" under User\nMode Linux time travel, where the emulated peer always replies before\nthe key size is read.\n\nFixes: e3f6a257a73d (\"Bluetooth: Use actual encryption key size for SMP over BR/EDR\")\nAssisted-by: OpenCode:claude-opus-5.5\nSigned-off-by: Luiz Augusto von Dentz \u003cluiz.von.dentz@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1991de9eafca589f7bbc9b309a226332f89a8e1f",
      "old_mode": 33188,
      "old_path": "include/net/bluetooth/hci_core.h",
      "new_id": "3381abdcc28b4d6fa994b3d431c3fd813d19fbbc",
      "new_mode": 33188,
      "new_path": "include/net/bluetooth/hci_core.h"
    },
    {
      "type": "modify",
      "old_id": "ab8a0b1ab9a892e7ddbf8a84b0005da43b8eb3f4",
      "old_mode": 33188,
      "old_path": "net/bluetooth/hci_event.c",
      "new_id": "975c63df23c15f867e46c9f42e66267b63c29234",
      "new_mode": 33188,
      "new_path": "net/bluetooth/hci_event.c"
    },
    {
      "type": "modify",
      "old_id": "f4e93100e5d58d18df5f8896ace9b9e29483100f",
      "old_mode": 33188,
      "old_path": "net/bluetooth/l2cap_core.c",
      "new_id": "83b622a428118c921ac279d296528d7b1c2b09bc",
      "new_mode": 33188,
      "new_path": "net/bluetooth/l2cap_core.c"
    }
  ]
}
