Commit Graph
36919 Commits
Author SHA1 Message Date
Ashish Sharma a3398cb629 fix(esp_tee): fixes double panic when ESP-TEE panics 2026-07-03 11:29:55 +08:00
Ashish Sharma 298d763003 fix(esp_tee): release SHA held by HMAC after crypto peripheral reset 2026-07-03 11:29:55 +08:00
morris fdb5e07768 Merge branch 'refactor/driver_dac_common_v6.1' into 'release/v6.1'
refactor(dac): improve the DAC driver (v6.1)

See merge request espressif/esp-idf!50237
2026-07-03 11:16:57 +08:00
Mahavir Jain 40974f42a3 Merge branch 'fix/aes_dma_psram_encrypted_mem_s31_v6.1' into 'release/v6.1'
fix(mbedtls/aes): Fix AES-DMA over encrypted PSRAM on ESP32-S31 (v6.1)

See merge request espressif/esp-idf!50252
2026-07-03 08:45:02 +05:30
morris 897347eb58 Merge branch 'fix/flash_32bit_addr_v6.1' into 'release/v6.1'
fix(spi_flash): fix flash 32bit address operation on esp32s31

See merge request espressif/esp-idf!50295
2026-07-03 11:08:45 +08:00
Jiang Jiang Jian bc42eeed6c Merge branch 'test/vfs_fix_register_check_v6.1' into 'release/v6.1'
test(vfs): Test changes regarding VFS register incorrect check fix and fix VFS host test not being run at all (v6.1)

See merge request espressif/esp-idf!49945
2026-07-03 10:45:43 +08:00
Jiang Jiang Jian 07333f33b0 Merge branch 'bugfix/idfci-12308-fatfs-bdl-test-stack-overflow_v6.1' into 'release/v6.1'
fix(fatfs): avoid stack overflow in BDL diskio partition test (v6.1)

See merge request espressif/esp-idf!50247
2026-07-03 10:45:30 +08:00
Jiang Jiang Jian 271b2cda9b Merge branch 'bugfix/idfci-8839-remove-orphan-test-configs_v6.1' into 'release/v6.1'
fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests (v6.1)

See merge request espressif/esp-idf!50184
2026-07-03 10:45:17 +08:00
Mahavir Jain ffaf55cd6b Merge branch 'fix/align_sw_psa_drivers_and_hw_esp_psa_drivers_v6.1' into 'release/v6.1'
Align s/w and h/w PSA drivers (v6.1)

See merge request espressif/esp-idf!49704
2026-07-02 15:22:15 +05:30
Jiang Jiang Jian 88554f3551 Merge branch 'fix/backport_some_wifi_fixes_v6.1' into 'release/v6.1'
fix(wifi): backport some wifi fixes to v6.1

See merge request espressif/esp-idf!50183
2026-07-02 17:38:57 +08:00
C.S.M 57484d3a2f fix(spi_flash): fix flash 32bit address operation on esp32s31 2026-07-02 16:53:47 +08:00
Hu Rui 9c73af2261 refactor(dac): improve the DAC driver 2026-07-02 11:20:37 +08:00
harshal.patil 4e02ec217c test(mbedtls): move AES test vectors to a dedicated header 2026-07-01 16:51:30 +05:30
harshal.patil f5d68c1730 fix(mbedtls/aes): Fix AES-DMA over encrypted PSRAM on ESP32-S31
esp_crypto_shared_gdma_done() polled the AXI RX raw interrupt status
(in_done) but never cleared it, so after the first transfer the set bit
made every subsequent call return immediately without waiting.
2026-07-01 16:51:26 +05:30
Adam Múdry 758d17e1b8 test(vfs): Test changes regarding VFS register incorrect check fix 2026-07-01 12:06:13 +02:00
Adam Múdry f15011be4f fix(vfs): Fix __errno_r(__getreent()) correctness for Linux 2026-07-01 12:06:13 +02:00
Ashish Sharma 33cb603e02 fix(mbedtls/port): add additional hardening for PSA drivers 2026-07-01 17:41:48 +08:00
harshal.patil b5d16d86dc fix(mbedtls/port): align ESP PSA hardware drivers with software references
Audited every esp_* PSA driver against its corresponding software driver in
mbedtls/library (psa_crypto_cipher.c, psa_crypto_aead.c, psa_crypto_mac.c,
psa_crypto_hash.c, psa_crypto_ecp.c, psa_crypto_rsa.c) and fixed gaps in
workflow ownership, error-path cleanup, sensitive-data wiping, and BAD_STATE
gating per the PSA Crypto API spec.

esp_aes (cipher): fix padding oracle in cipher_finish by replacing leaky
branches with mbedtls_ct_* primitives; abort wipes the driver-level ctx,
not just the inner mbedtls_aes_context; setup routes errors through abort.

esp_aes_gcm (AEAD): zeroize the 16-byte full_tag scratch; restore the
*output_length = finish_output_size assignment that the SW reference keeps
for future ciphers; NULL the inner ctx pointer after free in abort; gate
update/finish on a live ctx with PSA_ERROR_BAD_STATE.

esp_ecdsa: keep abort-at-exit in the one-shot wrappers so the stack-copy
of the hash (needed for little-endian byte order on HW) is wiped per
PSA spec 6.3.3, drop the over-defensive public-key qx/qy wipes that the
SW driver does not perform.

esp_cmac / esp_hmac_transparent / esp_hmac_opaque (MAC): make abort
idempotent, route setup errors through abort, gate update/finish/
verify_finish on PSA_ERROR_BAD_STATE, wipe M_last and intermediate hmac[]
buffers on completion or HW failure. HMAC opaque gains alg + computed
fields to mirror the SW psa_crypto_mac.c state machine. HMAC transparent
explicitly aborts the inner SHA context before reusing it for the outer
hash.

esp_sha: switch the per-op live indicator to (sha_ctx != NULL) so the
public esp_sha_operation_type_t enum keeps its original ordinal values;
free + NULL sha_ctx on every error path; gate update/finish/clone on a
live ctx; wipe per-algorithm core/parallel-engine scratch buffers
(W[], A[], state) on HW-engine failure.

esp_md5: replace bare memset in abort with mbedtls_platform_zeroize.

esp_rsa_ds: complete() no longer frees sig_buffer (abort owns that);
start() routes failures through abort; asymmetric_decrypt funnels all
cleanup through a single exit: label. RSA-DS utilities wipe the
decrypted-plaintext scratch on v15 / OAEP unpad failure.
2026-07-01 17:41:48 +08:00
sonika.rathi 3eb7a298ec fix(fatfs): avoid stack overflow in BDL diskio partition test 2026-07-01 10:40:32 +02:00
morris 9583d6df06 Merge branch 'feat/async_color_converter_v6.1' into 'release/v6.1'
feat(esp_driver_dma): add async color convert driver (v6.1)

See merge request espressif/esp-idf!49747
2026-07-01 10:22:42 +08:00
Jiang Jiang Jian cf515d20d7 Merge branch 'feat/support_usb_wakeup_v6.1' into 'release/v6.1'
feat: support usb as wakeup source from light sleep (v6.1)

See merge request espressif/esp-idf!49497
2026-06-30 19:40:33 +08:00
Jiang Jiang Jian f71890ccec Merge branch 'bugfix/ai_review_btu_common_v6.1' into 'release/v6.1'
fix: Fix the critical issues of btu and bt_common from AI review report (v6.1)

See merge request espressif/esp-idf!50121
2026-06-30 17:37:34 +08:00
yinqingzhao 5e3d5f8303 fix(wifi): fix tx issues introduced by keeping alive optimization 2026-06-30 15:13:36 +08:00
yinqingzhao e08a582209 fix(wifi): comment out functions from ld files 2026-06-30 15:13:26 +08:00
sonika.rathi ddd4e7c3a3 fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests 2026-06-30 09:09:58 +02:00
igor.udot 183273899f ci: skip h21 for coex_unit_test 2026-06-30 14:58:42 +08:00
zhangyanjiao 525928eee6 fix(wifi): added start check when calling smartconfig stop 2026-06-30 14:57:57 +08:00
Akshat Agrawal 6a22a21687 Remove hardcoded GSP subattributes 2026-06-30 14:57:04 +08:00
Akshat Agrawal 2151a0003f Fix unwanted encryption of NAFs 2026-06-30 14:56:55 +08:00
Nachiket Kukade 478be42bd1 feat(nan): Add aes_wrap/unwrap crypto callbacks
- Use crypto callbacks instead of calling internal API's
- Clean up of unused code, flags. Re-arrange functions
2026-06-30 14:56:45 +08:00
Akshat Agrawal 7475e1bced Address review comments VNC 2026-06-30 14:56:35 +08:00
Akshat Agrawal ff5df2e245 Address review comments and fix build errors 2026-06-30 14:56:26 +08:00
Akshat Agrawal 8a69a08567 fix(nan): Add service hash to NVS to maintain pairing states after reset 2026-06-30 14:56:18 +08:00
Akshat Agrawal fb56779fd1 Change the NIRA verification logic 2026-06-30 14:56:10 +08:00
Akshat Agrawal f3c2ff4019 fix(nan): Disable/Enable Pairing setup bit based on NIK stored in NVS
- Only send pairing followup only if nik caching is enabled
2026-06-30 14:56:00 +08:00
Nachiket Kukade ebf7dc9b31 feat(nan): persist NIK/NPK credentials in NVS
Replace nik/nik_valid in wifi_nan_sync_config_t with reset_current_nvs_creds
and use_nvs_for_caching. On NAN start, load the saved own NIK and peer
credentials from NVS (or erase them when reset is requested); generate and
persist a fresh own NIK only when none is valid and caching is enabled.

PASN reuses the SAE module (PWE/crypto and the comeback-token mechanism),
so define CONFIG_SAE whenever SoftAP-SAE or PASN is enabled. This fixes the
undefined references to check_comeback_token()/auth_build_token_req() when
SOFTAP config is disabled.
2026-06-30 14:55:51 +08:00
Nachiket Kukade e70033e6a7 refactor(nan): consolidate NIRA construction into esp_nan_construct_nira 2026-06-30 14:55:39 +08:00
Akshat Agrawal e9c4cfa0a5 Add pairing followup timeout and post CONFIRM Failure 2026-06-30 14:55:30 +08:00
Nachiket Kukade cf95c2ad90 fix(nan): Move Pairing API's to private header 2026-06-30 14:55:18 +08:00
Nachiket Kukade fd550bd66b fix(nan): address esp_ai_reviewer review comments 2026-06-30 14:55:08 +08:00
Akshat Agrawal 2e2e63e3d3 Address Review comments 2026-06-30 14:54:58 +08:00
Akshat Agrawal 3e81bc86c7 fix(nan): fix NAN pairing NIK/NIRA exchange and verification
Register esp_nan_verify_nira, cache NIRA for publish frames, send own_nik
in pairing follow-up, and complete pairing only after peer NIK is stored.
2026-06-30 14:54:14 +08:00
Akshat Agrawal 8ae605b70f fix(nan): Add CLUSTER_JOIN Event and Cluster merging feat 2026-06-30 14:54:05 +08:00
Akshat Agrawal b027033c98 fix(nan): Add NDP Setup timeout at the publisher side
- fix PASN initiator pmksa_cache_get() usage with the extra argument
- Add attributes to secured NDP frames according to Specs
- Resolve M2 MIC verification failure in secured datapath
2026-06-30 14:53:56 +08:00
muhaidong ba9f628f88 feat(coex): add external coex unit test for esp32h4 and esp32h21 2026-06-30 14:52:33 +08:00
muhaidong d7ac95f709 fix(coex): remove unsupported external coex soc caps 2026-06-30 14:52:19 +08:00
Sajia a1ab8394cc feat(ftm): Update ftm calibration values esp32s31 2026-06-30 14:52:08 +08:00
muhaidong 84beb7abcd fix(wifi): post disconnect event after disassociation tx callback 2026-06-30 14:51:56 +08:00
yinqingzhao 09589e3425 fix(wifi): fix still performing active scan on unsupported channels in auto policy 2026-06-30 14:51:35 +08:00
yinqingzhao 7a06b7db28 fix(wifi): fix cache access error in wifi interrupt with psram enabled 2026-06-30 14:51:09 +08:00