Commit Graph
34568 Commits
Author SHA1 Message Date
Zhi Wei Jian 6fa9629fe7 fix(ble/bluedroid): fix parameter validation and cleanup in ISO and CTE APIs
- Add parameter validation in esp_ble_iso_api and esp_ble_cte_api
- Delete unused ISO functions and incorrect parameter checks
- Add host status check in esp_ble_iso_get_callback()
- Fix CTE parameter handling when enable value is 0



(cherry picked from commit 562cd2eae5)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-04-24 15:12:53 +08:00
Jiang Jiang Jian 7c1fd3fbbf Merge branch 'bugfix/lp_io_clock_control_revert_v6.0' into 'release/v6.0'
fix(gpio): Revert the fix for RTCIO config should be written if LPIO clk exists (v6.0)

See merge request espressif/esp-idf!47605
2026-04-20 17:55:20 +08:00
Mahavir Jain 853a83cd82 Merge branch 'fix/esp_tee_srv_tbl_loc_v6.0' into 'release/v6.0'
change(esp_tee): Move the internal memory secure service call table to IRAM (v6.0)

See merge request espressif/esp-idf!47551
2026-04-20 11:42:31 +05:30
Song Ruo Jing 22c48ff2b7 fix(gpio): Revert the fix for RTCIO config should be written if LPIO clk exists
revert the main logic in acb49e9520
The fix causes deep sleep wakeup IO unable to reset back to GPIO after
waking up from deep sleep.
2026-04-20 12:09:22 +08:00
Laukik Hase 440a5d1906 change(esp_tee): Move the internal memory secure service call table to IRAM
- Using PMA, the TEE IRAM is marked as R/X while TEE DRAM is marked as R/W.
  Moving the internal memory secure service call table from DRAM to IRAM
  makes it immutable.
2026-04-17 17:33:11 +05:30
Kapil Gupta 9d7811b076 fix(esp_wifi): fail if ptk derivation fails 2026-04-16 23:20:04 +05:30
Jiang Jiang Jian db22058940 Merge branch 'fix/fix_ot_cli_loop_v6.0' into 'release/v6.0'
fix(openthread): avoid ot_cli_loop busy loop by using select-based linenoise read (v6.0)

See merge request espressif/esp-idf!47313
2026-04-09 20:01:19 +08:00
Jiang Jiang Jian 9f1b780bd0 Merge branch 'fix/remove_psa_key_export_from_enhack_gen_v6.0' into 'release/v6.0'
fix(openthread): pre-export PSA key bytes in task context to fix ISR mutex crash (v6.0)

See merge request espressif/esp-idf!47370
2026-04-09 20:01:00 +08:00
Jiang Jiang Jian 2f2be4386e Merge branch 'feat/dpp_crypto_optimization_v6.0' into 'release/v6.0'
fix(esp_wifi): Changes to make DPP crypto faster (v6.0)

See merge request espressif/esp-idf!47385
2026-04-09 19:51:37 +08:00
Kapil Gupta 57aec74146 fix(esp_wifi): Changes to make DPP crypto faster (v6.0) 2026-04-09 19:51:36 +08:00
Jiang Jiang Jian 78822efdb0 Merge branch 'bugfix/oob_read_in_continue_packet_v6.0' into 'release/v6.0'
fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments (v6.0)

See merge request espressif/esp-idf!47378
2026-04-09 14:36:57 +08:00
Mahavir Jain 7503c552f5 Merge branch 'fix/fix_protocomm_sec2_input_validations_v6.0' into 'release/v6.0'
fix(protocomm): fixes potential issues that can lead to crash during device provisioning (v6.0)

See merge request espressif/esp-idf!47305
2026-04-09 11:51:01 +05:30
Mahavir Jain a7e77cda1d Merge branch 'fix/esp_tee_bbp_v6.0' into 'release/v6.0'
fix(esp_tee): Add missing input validation checks for TEE service calls (v6.0)

See merge request espressif/esp-idf!47361
2026-04-09 11:00:28 +05:30
Mahavir Jain 247cafb2cf Merge branch 'feat/reenable_rsa_4096_key_perf_test_v6.0' into 'release/v6.0'
fix(mbedtls): reenable RSA 4096 bit key performance test (v6.0)

See merge request espressif/esp-idf!47387
2026-04-09 10:37:41 +05:30
Ashish Sharma bda099031e fix(mbedtls): reenable RSA 4096 bit key performance test 2026-04-09 10:26:10 +08:00
Jin Cheng 03c7e87202 fix(bt/bluedroid): moved L2CAP length check into start packets only 2026-04-08 20:39:55 +08:00
Jon Gilmore 051e0e671c fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments
The minimum length check in `reassemble_and_dispatch()` applied the START packet minimum (`HCI_ACL_PREAMBLE_SIZE + L2CAP_LENGTH_SIZE` = 8 bytes) to **all** ACL packets, including continuation fragments. Continuation fragments only carry the 4-byte ACL preamble (handle + length) with no L2CAP header, so small but valid continuations (5-7 bytes) were incorrectly rejected as "too short."

This caused the first L2CAP PDU in a rapid burst of BLE GATT indications to be silently dropped. The partial reassembly was orphaned, then discarded when the next indication's START fragment arrived, producing:

```
E BT_HCI: ACL packet too short (len=5)
W BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
```

Parse the ACL preamble first (requires only 4 bytes) to determine the boundary flag, then apply the L2CAP length check only to START packets. Continuation packets are now accepted with the correct minimum of `HCI_ACL_PREAMBLE_SIZE` (4 bytes).

- ESP32-S3 connected to a BLE peripheral that fragments indications at 40 bytes per L2CAP PDU
- Peripheral sends 8+ indications within ~200ms (burst of state changes)
- The final continuation fragment of the first indication is small (5-6 bytes after type stripping)
- 100% reproducible on every burst; confirmed on ESP-IDF 5.5.3, 5.5.4, and 6.0.0

Verified on ESP32-S3 with a Sub-Zero wall oven (SO3050PESP, firmware 8.5):
- **Before fix:** First indication in every burst lost (ACL reassembly failure)
- **After fix:** All indications in burst delivered correctly, including when the final continuation fragment is 5-6 bytes

Closes https://github.com/espressif/esp-idf/issues/18414
2026-04-08 20:39:55 +08:00
zwx df41428fbf fix(openthread): pre-export PSA key bytes in task context to fix ISR mutex crash 2026-04-08 18:13:53 +08:00
Laukik Hase 7867f4a575 fix(esp_tee): Add missing input validation checks for TEE service calls
- MULTI_HEAP_ASSERT for TEE now aborts on failure, instead of ignoring the condition
- Prevent potential TEE OTA write bounds overflow
2026-04-08 14:05:28 +05:30
zhaoweiliang ea68016cd1 fix(ble): fixed timeout disconnect issue on ESP32-C6 and ESP32-H2 2026-04-08 11:07:10 +08:00
zhaoweiliang f7eae67f25 fix(ble): fixed timeout disconnect issue on ESP32-C5 2026-04-08 11:02:45 +08:00
Jiang Jiang Jian 61f6e2720b Merge branch 'feature/bdl_nand_extensions_v6.0' into 'release/v6.0'
feat(esp_blockdev): Updated BDL documentation (v6.0)

See merge request espressif/esp-idf!47287
2026-04-07 16:42:06 +08:00
Xu Si Yu c9725b2300 fix(openthread): avoid ot_cli_loop busy loop by using select-based linenoise read 2026-04-07 14:52:25 +08:00
Jiang Jiang Jian c4555d2afe Merge branch 'fix/picolibc_setvbuf_ionbf_workaround_v6.0' into 'release/v6.0'
fix(esp_libc): picolibc: add workaround for setvbuf on _IONBF (v6.0)

See merge request espressif/esp-idf!47162
2026-04-07 12:01:48 +08:00
Ashish Sharma 9b4cacf9cb fix(protocomm): fixes potential issues that can lead to crash during device provisioning 2026-04-07 11:09:37 +08:00
Martin Vychodil 38e1ec4aae feat(esp_blockdev): Updated BDL interface documentation 2026-04-06 21:16:54 +02:00
Mahavir Jain 6bf6897d0d Merge branch 'bugfix/external_mem_enc_docs_v6.0' into 'release/v6.0'
docs: update PSRAM and flash encryption docs with per-page and separate key capabilities (v6.0)

See merge request espressif/esp-idf!46955
2026-04-02 19:05:36 +05:30
Jiang Jiang Jian 621d47f602 Merge branch 'fix/remove_rwdt_workaround_for_p4_rev3.2_v6.0' into 'release/v6.0'
change(esp_rom): remove wdt_hal_config_stage API workaround for P4 ECO7 (v6.0)

See merge request espressif/esp-idf!47169
2026-04-02 15:56:19 +08:00
Mahavir Jain 64c744abb7 docs: update PSRAM and flash encryption docs with per-page and separate key capabilities 2026-04-02 12:20:24 +05:30
Mahavir Jain 6efad80468 Merge branch 'fix/ds_ctx_efuse_key_id_type_v6.0' into 'release/v6.0'
Preserve flash compatibility by reverting the modified `esp_ds_data_ctx_t` size (v6.0)

See merge request espressif/esp-idf!47032
2026-04-02 11:32:09 +05:30
Mahavir Jain 49231ec638 Merge branch 'bugfix/docs_anti_rollback_v6.0' into 'release/v6.0'
docs: clarify anti-rollback secure version bits for c2/c5 (v6.0)

See merge request espressif/esp-idf!47123
2026-04-02 11:29:30 +05:30
Jiang Jiang Jian b563fe2766 Merge branch 'fix/esp32c61_rom_stack_addr_v6.0' into 'release/v6.0'
fix(soc): Correct the ESP32-C61 ROM stack start address (v6.0)

See merge request espressif/esp-idf!47150
2026-04-02 13:57:15 +08:00
yinqingzhao bff4bb0faa fix(ci): fix ci issue related to bss max idle test 2026-04-01 10:34:48 +08:00
wuzhenghui 909cc41d9a change(esp_rom): wdt_hal_config_stage fixed in rom_version: esp32p4-eco7-20260109 2026-03-31 16:00:01 +08:00
Alexey Lapshin f5f531b7b2 fix(esp_libc): picolibc: add workaround for setvbuf on _IONBF 2026-03-31 12:28:27 +07:00
Laukik Hase 2f0e634586 fix(soc): Correct the ESP32-C61 ROM stack start address 2026-03-30 18:30:22 +05:30
Mahavir Jain 830e39ca68 docs: clarify anti-rollback secure version bits for c2/c5 2026-03-30 10:33:55 +05:30
harshal.patil ca3b9ca7d3 fix(mbedtls/rsa_ds): Preserve compatibility by reverting the modified esp_ds_data_ctx_t size 2026-03-26 14:06:07 +05:30
Jiang Jiang Jian 5c2e7bbc29 Merge branch 'bugfix/fix_some_bt_coex_bugs_v6.0' into 'release/v6.0'
fix(coex): fix some esp32 coexistence bugs (Backport v6.0)

See merge request espressif/esp-idf!46970
2026-03-25 18:03:26 +08:00
Jiang Jiang Jian 14a0b9aa24 Merge branch 'fix/efuse_regs_store_operations_v6.0' into 'release/v6.0'
feat(hal): Adds half-word read/write checks for efuse (v6.0)

See merge request espressif/esp-idf!45341
2026-03-25 17:22:40 +08:00
Marius Vikhammer d0f1ae4be5 Merge branch 'fix/freertos_riscv_px_end_of_stack_alignment_v6.0' into 'release/v6.0'
fix(freertos): fix riscv pxEndOfStack offset alignment (v6.0)

See merge request espressif/esp-idf!46535
2026-03-25 16:13:15 +08:00
Jiang Jiang Jian 9d3893303c Merge branch 'fix/enable_key_mgr_clk_for_efuse_key_ops_v6.0' into 'release/v6.0'
Enable Key Manager clock even for efuses-based key operations (v6.0)

See merge request espressif/esp-idf!46754
2026-03-25 16:02:08 +08:00
Ashish Sharma 6e08270b4a Merge branch 'fix/fix_esp32p4_key_mgr_efuse_key_rev_le_3_v6.0' into 'release/v6.0'
fix(esp_hal_security): fixes failing hmac_hal_configure with efuse_key for p4 rev < 3 (v6.0)

See merge request espressif/esp-idf!46892
2026-03-25 10:38:30 +08:00
Konstantin Kondrashov e34be7afd5 feat(hal): Adds half-word read/write checks for efuse 2026-03-25 10:31:10 +08:00
morris 3bd7ec9fe9 Merge branch 'fix/tsens_float_isr_v6.0' into 'release/v6.0'
fix(temperature_sensor): Fix the float calculation in temperature sensor isr (backport v6.0)

See merge request espressif/esp-idf!46946
2026-03-25 10:26:22 +08:00
Martin Vychodil f560502e5e Merge branch 'feat/unify_vfs_api_v6.0' into 'release/v6.0'
feat(storage/vfs): Unify VFS API by removing context-less APIs (v6.0)

See merge request espressif/esp-idf!46747
2026-03-24 22:49:06 +08:00
linruihao 8bc55358c2 fix(coex): fix some esp32 coexistence bugs
- fix ble scan may restart twice in coex scenarios
- fix bredr page/pscan coex request/release not match
- fix bredr incorrect inquiry length calculation
- update bredr page/inquiry pti
- add coex pti protection for entire page/inquiry event
2026-03-24 20:47:10 +08:00
Jiang Jiang Jian 5793218f98 Merge branch 'bugfix/ap_5g_phy_bw_v6.0' into 'release/v6.0'
fix(wifi): Update channel bandwidth when ap adjust from 2g to 5g (v6.0)

See merge request espressif/esp-idf!46957
2026-03-24 20:43:30 +08:00
morris 51f3ed05c7 Merge branch 'fix/fix_parlio_tx_sample_edge_v6.0' into 'release/v6.0'
change(parlio_tx): use shift edge instead sample edge (v6.0)

See merge request espressif/esp-idf!46935
2026-03-24 19:14:33 +08:00
Martin Vychodil dddc72dae2 Merge branch 'contrib/github_pr_17642_v6.0' into 'release/v6.0'
feat(sdmmc): support multi-block read/writes (GitHub PR) (v6.0)

See merge request espressif/esp-idf!46776
2026-03-24 19:10:58 +08:00