Commit Graph
37239 Commits
Author SHA1 Message Date
Shu Chen d65661fcf6 Merge branch 'fix/initialize_s_spi_transaction_to_0' into 'master'
fix(openthread): use spi slave tx_length/rx_length and remove rx DMA bounce buffer

See merge request espressif/esp-idf!49808
2026-06-24 08:00:59 +00:00
zhiweijian e20d3f0197 feat(ble/bluedroid): add DBAF host support (Core 6.0) 2026-06-24 16:00:19 +08:00
Song Ruo Jing 37a08bd973 Merge branch 'contrib/github_pr_18677' into 'master'
uart: fix threshold configuration loss when interrupts are disabled (GitHub PR)

Closes IDFGH-17749 and IDFGH-12052

See merge request espressif/esp-idf!49943
2026-06-24 15:54:16 +08:00
zhanghaipeng 29ae92f4ef fix(ble/bluedroid): unblock sync HCI cmd on Command Status error
Release the BLE sync semaphore and record HCI status when a
synchronous command is rejected via Command Status, since no
Command Complete event follows.
2026-06-24 15:32:50 +08:00
Meet Patel 383e9adb82 feat(kasan): add Kernel Address Sanitizer (KASAN) support for ESP-IDF
Add KASAN support for detecting heap memory safety bugs (buffer
overflows, underflows, use-after-free) at runtime using compiler
instrumentation and shadow memory. Gated behind
CONFIG_IDF_EXPERIMENTAL_FEATURES, with touch points kept to esp_system
and heap so other components stay untouched.

- Core runtime (esp_system/kasan.c, esp_kasan.h): nibble-based shadow
  memory in DRAM, poison/unpoison, per-access validation, and __asan_*
  stubs; hot-path stubs in IRAM so they stay valid with the flash cache
  off. Shadow init runs before heap bring-up.
- Heap integration (heap/heap_kasan*.c): alloc/free hooks add redzones,
  a quarantine FIFO, and shadow updates.
- Panic handling: disable checks once at the panic handler entry so
  backtrace and stack dumps can read redzones without nested reports.
- Build system: -fsanitize=kernel-address for app code, with HAL, SoC,
  esp_rom, SPI flash, esp_hw_support, bootloader_support, FreeRTOS, and
  heap internals excluded from instrumentation.
- Test app (tools/test_apps/system/kasan_test): Unity tests for
  overflow, underflow, use-after-free, and all sized __asan_* stubs,
  with halt and no-halt configurations.
- Docs: document KASAN in the heap memory debugging guide (EN and CN).
2026-06-24 11:27:00 +05:30
muhaidong 4d33bcb4da feat(coex): add external coex unit test for esp32h4 and esp32h21 2026-06-24 13:56:22 +08:00
muhaidong e7b8677fa2 fix(coex): remove unsupported external coex soc caps 2026-06-24 13:56:22 +08:00
Akshat Agrawal 7a9acae345 Remove hardcoded GSP subattributes 2026-06-24 10:34:04 +05:30
yangfeng 169a29defc fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-06-24 11:20:09 +08:00
yangfeng 3210f4eea5 fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-06-24 11:20:09 +08:00
Island 005dd1ba8c Merge branch 'feat/spi_log_qa_frame_check' into 'master'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart

See merge request espressif/esp-idf!49433
2026-06-24 10:46:43 +08:00
Akshat Agrawal b7b54b3650 Fix unwanted encryption of NAFs 2026-06-23 22:12:44 +05:30
Nachiket Kukade d36416980c 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-23 22:08:06 +05:30
Akshat Agrawal c4b1e06057 Address review comments VNC 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2c134933ec Address review comments and fix build errors 2026-06-23 22:08:06 +05:30
Akshat Agrawal 601faef85b fix(nan): Add service hash to NVS to maintain pairing states after reset 2026-06-23 22:08:06 +05:30
Akshat Agrawal afd5a13e71 Change the NIRA verification logic 2026-06-23 22:08:06 +05:30
Akshat Agrawal e64f0d7b1d 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-23 22:08:06 +05:30
Nachiket Kukade 7d6d7ead9a 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-23 22:08:06 +05:30
Nachiket Kukade 11ac60fcbb refactor(nan): consolidate NIRA construction into esp_nan_construct_nira 2026-06-23 22:08:06 +05:30
Akshat Agrawal 713fee2929 Add pairing followup timeout and post CONFIRM Failure 2026-06-23 22:08:06 +05:30
Nachiket Kukade b45178e798 fix(nan): Move Pairing API's to private header 2026-06-23 22:08:06 +05:30
Nachiket Kukade 0d9225db5a fix(nan): address esp_ai_reviewer review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal 92a41a8f37 Address Review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal f68fb697f7 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-23 22:08:06 +05:30
Akshat Agrawal cd94023075 fix(nan): Add CLUSTER_JOIN Event and Cluster merging feat 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2a8c1b5b24 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-23 22:08:06 +05:30
Konstantin Kondrashov d06a91db18 fix(esp_image_format): verify length of segment #0 for app description 2026-06-23 15:22:03 +03:00
yangfeng 0dce2d707d fix(bt): Fix the critical issues related to A2DP from AI review report
AVDT:
- Roll back CCB allocation when cmd/rsp queue creation fails
- Free media packet on invalid handle in AVDT_WriteReqOpt
- Zero-init timeout failure message before GETCAP callback
- Initialize lcid_tbl to 0xFF to avoid mapping to tc_tbl[0]
BTA/AVRCP:
- Use size_t for AVRC message copy buffer allocation
- Allocate before register in BTA_AvEnable
- Guard BTA_AvRegister callback when enable never completed
- Remove invalid free of inline Cover Art image_descriptor
A2DP BTC/API:
- Default g_a2dp_on_deinit to true before profile init
- Reject source audio send when A2DP is deiniting
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-06-23 20:15:48 +08:00
zhanghaipeng 13926bb9bc fix(ble/bluedroid): set REQ_WAITING before GATTC service-change rediscovery
When service change cancels in-progress discovery, bta_gattc_disc_cmpl()
re-triggers discovery without marking auto_update as REQ_WAITING. If a
client command is queued in p_q_cmd, bta_gattc_start_discover() refuses
to restart and the command is never dispatched.
2026-06-23 20:08:14 +08:00
Adam Múdry fa8039b5ca Merge branch 'test/vfs_fix_register_check' into 'master'
test(vfs): Test changes regarding VFS register incorrect check fix and fix VFS host test not being run at all

See merge request espressif/esp-idf!49674
2026-06-23 14:02:16 +02:00
Konstantin Kondrashov d03f628da6 fix(esp_image_format): Verify image segment count 2026-06-23 14:57:05 +03:00
He Binglin 12ad118657 Merge branch 'change/esp_idf_dpd_optimize' into 'master'
Change/esp idf dpd optimize

Closes PM-765 and PM-728

See merge request espressif/esp-idf!49761
2026-06-23 19:55:08 +08:00
yangfeng 0211122300 fix(bt): Fix the critical issues related to HFP from AI review report
HFP AG:
- Fix mSBC EV3 second-packet payload length calculation to prevent OOB read and infinite loop
- Add init/deinit guards in HF AG helper functions to avoid NULL deref
- Return bt_status_t from btc_hf_ag_audio_data_send to avoid silent buffer leak on SLC failure
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_ag_del_records
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Bound AT Dial command string copy to BTA_AG_AT_MAX_LEN
HFP Client:
- Check osi_calloc result before use when reassembling split mSBC frames
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Free SDP db, collision/AT timers and queued AT cmds before scb reset on disable
- Fix mSBC EV3 second-packet payload length calculation (same as AG)
- Reject pcm_resample input smaller than overlap window (96 bytes) on filtered path
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_hf_client_del_record
2026-06-23 19:36:16 +08:00
Renz Christian Bagaporo ad1912642a Merge branch 'contrib/github_pr_18724' into 'master'
fix(heap_task_info): Fix incorrect current_usage subtraction on realloc() (GitHub PR)

Closes IDFGH-17818

See merge request espressif/esp-idf!49745
2026-06-23 17:21:15 +08:00
Jiang Jiang Jian 1c21efd181 Merge branch 'feat/update_esp32s31_phylib' into 'master'
feat(phy): update esp32s31 phy lib

See merge request espressif/esp-idf!49564
2026-06-23 17:09:28 +08:00
guozifan a81322a2ce feat(ble_log): Add frame check support for restart flow 2026-06-23 16:19:30 +08:00
hebinglin a6884a9d4d change(esp_hw_support): support optional delay for DPD entry and exit 2026-06-23 14:54:30 +08:00
hebinglin 619ac952b6 fix(spi_flash): fix dpd failed when spi hal placed in flash 2026-06-23 14:54:11 +08:00
Jiang Jiang Jian dc2fcf2c6c Merge branch 'bugfix/defering_post_disconnect_event_after_disassociation_tx_callback' into 'master'
fix(wifi): post disconnect event after disassociation tx callback

Closes WIFIBUG-1858

See merge request espressif/esp-idf!48796
2026-06-23 14:17:37 +08:00
Alexey Lapshin 4817812003 Merge branch 'feature/enable_zb_for_esp32p4' into 'master'
feat(soc): enable zb* extensions for esp32p4 greater v3

See merge request espressif/esp-idf!49822
2026-06-23 10:02:21 +04:00
Mahavir Jain cb56e6cbd9 Merge branch 'feat/esp_http_server-ws-strictness-foundation-and-handshake' into 'master'
feat(esp_http_server): update websocket server to check RFC6455 headers

See merge request espressif/esp-idf!48903
2026-06-23 11:10:58 +05:30
Ashish Sharma bc14daab3e fix(mbedtls): harden port layer to zeroize sensitive material 2026-06-23 11:15:01 +08:00
Wan Lei e5d57f55b4 Merge branch 'fix/twai_ci_job_pollution' into 'master'
fix(ci): twai test close board to fixed ci jobs pullotion

Closes IDFCI-4973

See merge request espressif/esp-idf!49894
2026-06-23 11:10:42 +08:00
C.S.M 3517052686 Merge branch 'fix/jpeg_over_size' into 'master'
fix(jpeg): Fix the jpeg size might exceed the buffer size

See merge request espressif/esp-idf!49799
2026-06-23 10:42:17 +08:00
Mahavir Jain bae7a9ee3a Merge branch 'fix/esp_tee_heap_poison' into 'master'
fix(esp_tee): Prevent TEE from dispatching the REE heap poisoning callback

See merge request espressif/esp-idf!49773
2026-06-22 19:09:01 +05:30
sonika.rathi 1d08a22a14 fix(fatfs): avoid stack overflow in BDL diskio partition test 2026-06-22 15:22:16 +02:00
morris ecd6425701 Merge branch 'bugfix/sdio_slave_buffer_size_limit' into 'master'
fix(sdio_slave): align buffer size checks with descriptor limits

See merge request espressif/esp-idf!49853
2026-06-22 21:15:38 +08:00
Adam Múdry 670fb68bc7 test(vfs): Test changes regarding VFS register incorrect check fix 2026-06-22 14:48:13 +02:00
Rahul Tank 7d33607e26 Merge branch 'feat/throughput_l2cap_coc' into 'master'
Added l2cap_coc example for throughput

Closes BLERP-2890

See merge request espressif/esp-idf!47284
2026-06-22 18:07:07 +05:30