Commit Graph

51338 Commits

Author SHA1 Message Date
Vincent Hamp
f6ed4a607c fix(mocks): add missing esp_hal_* includes 2026-07-14 17:30:39 +08:00
Rahul Tank
8982238192 Merge branch 'bugfix/fix_bond_store_overflow_v6.0' into 'release/v6.0'
fix(nimble): Fix bond-store overflow when IRK is enabled (v6.0)

See merge request espressif/esp-idf!50624
2026-07-14 11:17:35 +05:30
Island
6d0268a375 Merge branch 'ble-log-console-migration-notice_v6.0' into 'release/v6.0'
Ble log console repository migration (6.0)

See merge request espressif/esp-idf!50607
2026-07-14 10:20:30 +08:00
morris
df9d2b7ab8 Merge branch 'refactor/move_regdma_entry_config_to_driver_layer_emac_v6.0' into 'release/v6.0'
refactor(emac): move sleep retention config into driver layer (v6.0)

See merge request espressif/esp-idf!50620
2026-07-13 17:15:22 +08:00
Jiang Jiang Jian
98bdf38ad6 Merge branch 'change/change_regdma_malloc_caps_v6.0' into 'release/v6.0'
change(esp_hw_support): change regdma malloc caps to allow getting memory in the DMA pool (v6.0)

See merge request espressif/esp-idf!50258
2026-07-13 10:34:55 +08:00
morris
9881bfd2c8 Merge branch 'fix/touch_read_check_v6.0' into 'release/v6.0'
fix(touch): fix hw_ver1 read data check (v6.0)

See merge request espressif/esp-idf!50639
2026-07-11 19:20:12 +08:00
Euripedes Rocha
d1933fd664 Merge branch 'fix/sec-347-hostname-null-check_v6.0' into 'release/v6.0'
fix(esp_netif): reject NULL hostname in esp_netif_set_hostname_api (SEC_347) (v6.0)

See merge request espressif/esp-idf!50588
2026-07-10 14:10:03 +02:00
Hu Rui
1a888a3175 fix(touch): fix hw_ver1 read data check
Closes https://github.com/espressif/esp-idf/issues/18811
2026-07-10 20:01:40 +08:00
morris
d6a7c96f4c Merge branch 'change/update_c61_gdma_header_v6.0' into 'release/v6.0'
change(ahb_dma): update c61 eco3 header files (v6.0)

See merge request espressif/esp-idf!49836
2026-07-10 18:06:40 +08:00
Mahavir Jain
17761025d8 Merge branch 'fix/fix_esp_tee_failing_deterministic_ecdsa_sign_v6.0' into 'release/v6.0'
fix(esp_tee): release SHA held by HMAC after crypto peripheral reset (v6.0)

See merge request espressif/esp-idf!50319
2026-07-10 14:09:22 +05:30
Mahavir Jain
e75fa250cb Merge branch 'contrib/github_pr_18734_v6.0' into 'release/v6.0'
Fix header value truncation detection in httpd_req_get_hdr_value_str (GitHub PR) (v6.0)

See merge request espressif/esp-idf!50537
2026-07-10 13:45:28 +05:30
morris
44e2e2477f refactor(emac): move sleep retention config into driver layer
Keep the EMAC regdma retention definitions in esp_eth so the backup
layout stays aligned with driver-owned sleep retention behavior.
2026-07-10 16:04:09 +08:00
Rahul Tank
732c19d77a fix(nimble): Fix bond-store overflow when IRK is enabled 2026-07-10 13:23:41 +05:30
morris
794f76ba95 Merge branch 'fix/uhci_rx_fsm_v6.0' into 'release/v6.0'
fix(uhci): rx fsm race condition (v6.0)

See merge request espressif/esp-idf!50578
2026-07-10 14:44:21 +08:00
Benedek Brandschott
f1e3677381 fix(esp_http_server): report truncation when header value length matches buffer size
httpd_req_get_hdr_value_str() detected truncation with `val_size < full_size`, where full_size is the strlcpy() return value. strlcpy() returns strlen() of the source (the terminating null is not counted), so truncation actually occurs when strlen(src) >= val_size. At strlen(src) == val_size the value is copied as val_size - 1 chars + NUL (i.e. truncated) yet ESP_OK was returned, so the caller never learned the value was cut.

Use `val_size <= full_size` and correct the misleading comment about strlcpy()'s return value.

Same truncation-reporting class fixed for httpd_cookie_key_value in PR #16202; httpd_req_get_hdr_value_str was missed. No memory-safety impact: strlcpy() null-terminates if val_size > 0.
2026-07-10 14:40:24 +08:00
Laukik Hase
bef71a9724 ci(esp_tee): Fix tee_cli_app build failure due to heap size overflow
- Also fix the `unused variable` warning while builing the PSA
  AES tests with `tee_test_fw` app
2026-07-10 10:57:24 +05:30
Ashish Sharma
2c26dfc51b fix(esp_tee): fixes double panic when ESP-TEE panics 2026-07-10 10:32:32 +05:30
Ashish Sharma
dc48cc5059 fix(esp_tee): release SHA held by HMAC after crypto peripheral reset 2026-07-10 10:32:32 +05:30
wuzhenghui
8ff6ec32b0 fix(esp_hw_support): update memory pointer checks for SPM support 2026-07-10 12:38:47 +08:00
Mahavir Jain
59eab1080e Merge branch 'contrib/github_pr_18684_v6.0' into 'release/v6.0'
feat(httpd): avoid useless string copy by introducing httpd_req_get_url_query_str_ptr() (GitHub PR) (v6.0)

See merge request espressif/esp-idf!50539
2026-07-10 09:45:40 +05:30
Guo Zifan
7d904f636f docs(ble): rename BLE Log Console migration notice
(cherry picked from commit 9fb982d53b)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-07-10 10:43:57 +08:00
Guo Zifan
6621170151 docs(ble): update BLE Log Console repository link
(cherry picked from commit ce515cbc09)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-07-10 10:43:57 +08:00
Guo Zifan
4eb7dde736 remove(ble): migrate BLE Log Console out of ESP-IDF
(cherry picked from commit d8d7c3d904)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-07-10 10:43:56 +08:00
Jiang Jiang Jian
a217842919 Merge branch 'bugfix/idf_ci_hid_example_v6.0' into 'release/v6.0'
fix(bt/example): Add print the device name to verify if it matches in HID example (v6.0)

See merge request espressif/esp-idf!50483
2026-07-10 10:31:10 +08:00
Euripedes Rocha Filho
0314c6cd19 fix(esp_netif): reject NULL hostname in esp_netif_set_hostname_api
esp_netif_set_hostname_api() dereferenced hostname via strlen() without
checking it for NULL first, causing a NULL pointer dereference.
2026-07-09 15:44:18 +02:00
Hu Rui
4ece6f3d78 fix(uhci): rx fsm race condition
Closes https://github.com/espressif/esp-idf/issues/18746
2026-07-09 18:55:19 +08:00
Zhang Wen Xu
e18d27e480 Merge branch 'feat/update_openthread_submodule_and_br_lib_20260624_v6.0' into 'release/v6.0'
feat(openthread): update openthread submodule (v6.0)

See merge request espressif/esp-idf!50519
2026-07-09 10:18:13 +00:00
wuzhenghui
d3c628c759 change(heap): reserve DMA pool with low priority MALLOC_CAP_DEFAULT caps 2026-07-09 17:31:43 +08:00
Aditya Patwardhan
cbb9bf8f55 Merge branch 'backport/44987_v6.0' into 'release/v6.0'
feat(esp-tls): Added a PSA driver for Secure Element (backport v6.0)

See merge request espressif/esp-idf!50511
2026-07-09 14:40:27 +05:30
Mahavir Jain
ac3eb6bdf1 Merge branch 'fix/picolibc-disable-c11-annex-k_v6.0' into 'release/v6.0'
fix(libc): picolibc: disable C11 annex K in compatibility mode (v6.0)

See merge request espressif/esp-idf!48620
2026-07-09 13:16:46 +05:30
Aditya Patwardhan
2188d7b855 docs(esp-tls): clarify caller owns the PSA key in esp_key_config_t
(cherry picked from commit ed6f697ea8)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
aa70f6de09 fix(esp-tls): update secure element build hint for PSA integration
(cherry picked from commit 5f1074045f)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
5285c70499 fix(esp-tls): track opaque PSA key ownership and cover the secure-element path
Replace the key-lifetime check with explicit ownership tracking so a
caller-supplied volatile PSA key is also preserved on cleanup, and drop the
DS/HARDWARE_ECDSA compile guard so the ESP_KEY_SOURCE_PSA path is released on
pure secure-element builds.

(cherry picked from commit 7cdd0b5960)
2026-07-09 11:17:03 +05:30
Mike Szczys
2627f6e941 fix(esp-tls): only destroy volatile keys in DS/ECDSA cleanup
The DS/ECDSA cleanup added in 8cb64703 is intended for volatile PSA keys
created internally by the DS and ECDSA peripheral paths. Ensure that
during the cleanup, PSA_KEY_LIFETIME_IS_VOLATILE() is checked to avoid
destroying keys the user has added persistently to PSA.

This resolves an issue in the next commit (adding support for
clientkey_psa_id) where a user passes a PSA key id that is then silently
destroyed if CONFIG_ESP_TLS_USE_DS_PERIPHERAL or
CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN happen to be defined.

Signed-off-by: Mike Szczys <michael.szczys@canonical.com>
(cherry picked from commit da51d69013)
(cherry picked from commit f68cfbf8d4)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
d06dc9f607 fix(esp-tls): correct test_apps README to match manifest target restriction
.build-test-rules.yml restricts esp-tls test_apps to esp32c3 only.
Commit 19a544203b9 accidentally expanded the README to all targets.

(cherry picked from commit b7f53c3868)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
a7e7a1f6d8 fix(esp-tls): call mbedtls_pk_init before mbedtls_pk_wrap_psa in PSA key paths
Per mbedTLS API contract, mbedtls_pk_context must be explicitly initialized
with mbedtls_pk_init() before calling mbedtls_pk_wrap_psa(). Add the missing
init calls for both the server_key and client_key PSA-backed key code paths.

(cherry picked from commit 005072c87e)
2026-07-09 11:17:02 +05:30
Aditya Patwardhan
9c1dcca1af fix(esp-tls): address MR review comments for SE PSA driver
- esp_tls_mbedtls: require cert when PSA-backed server/client key is set
- esp_tls_mbedtls: drop redundant pk_init/x509_crt_init (calloc handles it)
- psa SE driver: copy callbacks/opaque_key by value (no lifetime coupling)
- psa SE driver: replace atomic CAS with simple null check on register
- psa SE driver: use sig_len from sign callback with bounds validation
- psa SE driver: validate pubkey_len returned by export_pubkey callback
- psa SE driver: check hash sub-alg in RSA PKCS1V15 branch of validate_request
- psa SE driver: align secure_element_register_callbacks doc with value-copy impl
- esp_https_server: initialize server_key in HTTPD_SSL_CONFIG_DEFAULT
- mbedtls: move SECURE_ELEMENT_DRIVER_ENABLED to esp_config.h for parity
  with ESP_ECDSA_DRIVER_ENABLED; drop target_compile_definitions
- docs: fix esp_tls_cfg_t -> esp_http_client_config_t cross-reference
- docs: check psa_import_key() status in ESP-TLS PSA example
- hints/error_output: point at CONFIG_MBEDTLS_SECURE_ELEMENT_DRIVER_ENABLED

(cherry picked from commit 08b567ef3b)
2026-07-09 11:17:02 +05:30
Aditya Patwardhan
6d7d89378c fix(esp-tls): Use runtime assignment for static key config length in examples
Linker symbol differences (prvtkey_pem_end - prvtkey_pem_start) are not
compile-time constants and cannot be used in static initializers.

(cherry picked from commit 4196734d1a)
2026-07-09 11:17:02 +05:30
Aditya Patwardhan
b6bc9710a1 docs(esp-tls): Update documentation for unified key interface and SE driver
Update esp_tls, esp_http_client docs and migration guide to reflect
the new esp_key_config_t interface and secure element PSA driver.

(cherry picked from commit 37808e2386)
2026-07-09 11:17:01 +05:30
Aditya Patwardhan
e889a304c5 feat(mbedtls): Add PSA Crypto driver for external secure elements
Add generic secure element PSA driver with runtime callback registration.
Consolidate Kconfig into single MBEDTLS_SECURE_ELEMENT_DRIVER_ENABLED option.

Closes https://github.com/espressif/esp-idf/issues/18388

(cherry picked from commit 1c20f525b4)
2026-07-09 11:14:15 +05:30
Aditya Patwardhan
d93ab71681 feat(esp-tls): Add unified private key interface via esp_key_config_t
Add ESP_KEY_SOURCE_BUFFER and ESP_KEY_SOURCE_PSA key sources so all
hardware backends (DS, ECDSA, secure element) are accessed via PSA
key IDs through a single esp_tls_cfg_t.client_key field.

(cherry picked from commit 36090b7161)
2026-07-09 11:14:11 +05:30
morris
e9718d57c9 Merge branch 'bugfix/dma2d_dequeue_mechanism_v6.0' into 'release/v6.0'
fix(dma2d): add a dequeue mechanism for dma2d driver (v6.0)

See merge request espressif/esp-idf!50513
2026-07-09 13:27:20 +08:00
Euripedes Rocha
011ebc5186 Merge branch 'feat/eth_test_component_v6.0' into 'release/v6.0'
feat(esp_eth): updated test_apps to use Ethernet test component (v6.0)

See merge request espressif/esp-idf!49659
2026-07-09 06:50:52 +02:00
Jiang Jiang Jian
98609d1fa2 Merge branch 'coredump_test_fixes_v6.0' into 'release/v6.0'
Coredump fixes (v6.0)

See merge request espressif/esp-idf!50475
2026-07-09 12:37:06 +08:00
Jiang Jiang Jian
c931322083 Merge branch 'fix/fatfs_vulnerabilities_v6.0' into 'release/v6.0'
fix(fatfs): harden against runZero 2026 FatFs bugs (v6.0)

See merge request espressif/esp-idf!50425
2026-07-09 12:36:44 +08:00
Jiang Jiang Jian
11e4196a49 Merge branch 'fix/ble_mesh_fixed_issues_v6.0' into 'release/v6.0'
Resolve reported BLE mesh stack issues (6.0)

See merge request espressif/esp-idf!50407
2026-07-09 12:36:16 +08:00
Jiang Jiang Jian
52198d19a2 Merge branch 'docs/ulp_fsm_instruction_v6.0' into 'release/v6.0'
docs(ulp): clarify ULP FSM instruction cycle timing (v6.0)

See merge request espressif/esp-idf!50367
2026-07-09 12:34:46 +08:00
Jiang Jiang Jian
fdb33a4ce7 Merge branch 'fix/lp_periph_init_fail_with_cpp_v6.0' into 'release/v6.0'
fix(ulp): make LP peripheral default config macros C++ compatible (v6.0)

See merge request espressif/esp-idf!50211
2026-07-09 12:34:03 +08:00
Jiang Jiang Jian
20792c5ada Merge branch 'feat/seperate_ot_citest_tags_v6.0' into 'release/v6.0'
ci: seperate openthread test cases (v6.0)

See merge request espressif/esp-idf!50170
2026-07-09 12:33:14 +08:00
Jiang Jiang Jian
4193c391f2 Merge branch 'fix/lp_core_noreset_under_debug_option_v6.0' into 'release/v6.0'
fix(lp_core): fix build for CONFIG_ULP_NORESET_UNDER_DEBUG=n (v6.0)

See merge request espressif/esp-idf!49868
2026-07-09 12:31:38 +08:00